Skip to content

Commit

Permalink
update some code
Browse files Browse the repository at this point in the history
  • Loading branch information
mengyanshou committed Nov 30, 2021
1 parent 268d67f commit b6f82a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.2.7
- [优化]提升获取其他设备的图标速度
- [修复]图标未全部获取也能使用launcher
- [修复]修复图标错乱的bug
- [优化]支持获取小米10s/小米平板5类的设备名称
- [优化]减少server的体积
## 1.2.6
- [改动]切换adb二进制为自编译版本(因为ndk-adb这个库的adb首次启动很慢,并且不能支持`adb pair ip:port code`)
- [优化]死循环申请USB权限的问题
Expand Down
Binary file modified assets/app_server
Binary file not shown.
9 changes: 4 additions & 5 deletions lib/utils/dex_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ class DexServer {
);
Log.d('localPort -> $localPort');
// 这样才能保证列表正常
final AppChannel appChannel = AppManager.globalInstance.appChannel;
appChannel.port = localPort;
if (appChannel is RemoteAppChannel) {
appChannel.serial = devicesId;
}
final RemoteAppChannel channel = RemoteAppChannel();
channel.port = localPort;
channel.serial = devicesId;
AppManager.globalInstance.appChannel = channel;
AppManager.globalInstance.process = YanProcess()
..exec('adb -s $devicesId shell');
}
Expand Down

0 comments on commit b6f82a0

Please sign in to comment.