Skip to content

Commit b6f82a0

Browse files
committed
update some code
1 parent 268d67f commit b6f82a0

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.2.7
2+
- [优化]提升获取其他设备的图标速度
3+
- [修复]图标未全部获取也能使用launcher
4+
- [修复]修复图标错乱的bug
5+
- [优化]支持获取小米10s/小米平板5类的设备名称
6+
- [优化]减少server的体积
17
## 1.2.6
28
- [改动]切换adb二进制为自编译版本(因为ndk-adb这个库的adb首次启动很慢,并且不能支持`adb pair ip:port code`)
39
- [优化]死循环申请USB权限的问题

assets/app_server

341 Bytes
Binary file not shown.

lib/utils/dex_server.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@ class DexServer {
5252
);
5353
Log.d('localPort -> $localPort');
5454
// 这样才能保证列表正常
55-
final AppChannel appChannel = AppManager.globalInstance.appChannel;
56-
appChannel.port = localPort;
57-
if (appChannel is RemoteAppChannel) {
58-
appChannel.serial = devicesId;
59-
}
55+
final RemoteAppChannel channel = RemoteAppChannel();
56+
channel.port = localPort;
57+
channel.serial = devicesId;
58+
AppManager.globalInstance.appChannel = channel;
6059
AppManager.globalInstance.process = YanProcess()
6160
..exec('adb -s $devicesId shell');
6261
}

0 commit comments

Comments
 (0)