{"action":"opened","issue":{"url":"https://api.github.com/repos/openatx/uiautomator2/issues/109","repository_url":"https://api.github.com/repos/openatx/uiautomator2","labels_url":"https://api.github.com/repos/openatx/uiautomator2/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/openatx/uiautomator2/issues/109/comments","events_url":"https://api.github.com/repos/openatx/uiautomator2/issues/109/events","html_url":"https://github.com/openatx/uiautomator2/issues/109","id":325132703,"number":109,"title":"Mix2 MIUI9.5.6 uiautomator2 init 报错,会影响以往脚本运行","user":{"login":"Archer456","id":18392901,"avatar_url":"https://avatars0.githubusercontent.com/u/18392901?v=4","gravatar_id":"","url":"https://api.github.com/users/Archer456","html_url":"https://github.com/Archer456","followers_url":"https://api.github.com/users/Archer456/followers","following_url":"https://api.github.com/users/Archer456/following{/other_user}","gists_url":"https://api.github.com/users/Archer456/gists{/gist_id}","starred_url":"https://api.github.com/users/Archer456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archer456/subscriptions","organizations_url":"https://api.github.com/users/Archer456/orgs","repos_url":"https://api.github.com/users/Archer456/repos","events_url":"https://api.github.com/users/Archer456/events{/privacy}","received_events_url":"https://api.github.com/users/Archer456/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-22T03:57:30Z","updated_at":"2018-05-22T03:57:30Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\n```\r\n(ATX365) cmd@TR:~$ adb devices -l\r\nList of devices attached\r\nmyno               device usb:3-1 product:chiron model:MIX_2 device:chiron transport_id:33\r\n\r\n(ATX365) cmd@TR:~$ python -m uiautomator2 init\r\n2018-05-22 11:17:35,767 - __main__.py:269 - INFO - Detect pluged devices: ['45806625']\r\n2018-05-22 11:17:35,768 - __main__.py:286 - INFO - Device(45806625) initialing ...\r\n2018-05-22 11:17:35,960 - __main__.py:113 - INFO - install minicap\r\n2018-05-22 11:17:36,057 - __main__.py:120 - INFO - install minitouch\r\nError output: \r\nException occurred while executing:\r\njava.lang.IllegalArgumentException: Unknown package: com.github.uiautomator\r\n\tat com.android.server.pm.Settings.isOrphaned(Settings.java:4429)\r\n\tat com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:21922)\r\n\tat com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:18939)\r\n\tat com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:913)\r\n\tat com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:912)\r\n\tat com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:134)\r\n\tat android.os.ShellCommand.exec(ShellCommand.java:96)\r\n\tat com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22229)\r\n\tat android.os.Binder.shellCommand(Binder.java:576)\r\n\tat android.os.Binder.onTransact(Binder.java:476)\r\n\tat android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2657)\r\n\tat com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3610)\r\n\tat android.os.Binder.execTransact(Binder.java:677)\r\n\r\nError output: \r\nException occurred while executing:\r\njava.lang.IllegalArgumentException: Unknown package: com.github.uiautomator.test\r\n\tat com.android.server.pm.Settings.isOrphaned(Settings.java:4429)\r\n\tat com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:21922)\r\n\tat com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:18939)\r\n\tat com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:913)\r\n\tat com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:912)\r\n\tat com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:134)\r\n\tat android.os.ShellCommand.exec(ShellCommand.java:96)\r\n\tat com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22229)\r\n\tat android.os.Binder.shellCommand(Binder.java:576)\r\n\tat android.os.Binder.onTransact(Binder.java:476)\r\n\tat android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2657)\r\n\tat com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3610)\r\n\tat android.os.Binder.execTransact(Binder.java:677)\r\n\r\n2018-05-22 11:17:36,403 - __main__.py:143 - INFO - app-uiautomator.apk(1.0.14) installing ...\r\napp-uiautomator.apk |################################| 1.7M / 1.7M\r\n2018-05-22 11:17:57,987 - __main__.py:148 - INFO - app-uiautomator-test.apk installing ...\r\napp-uiautomator-test.apk |################################| 964.7K / 964.7K\r\n2018-05-22 11:18:20,969 - __main__.py:181 - INFO - atx-agent(0.3.0) need to update\r\n2018-05-22 11:18:20,970 - __main__.py:189 - INFO - atx-agent(0.3.2) is installing, please be patient\r\natx-agent_0.3.2_linux_armv7.tar.gz |################################| 3.3M / 3.3M\r\n2018-05-22 11:19:16,116 - __main__.py:212 - INFO - launch atx-agent daemon\r\n2018-05-22 11:19:17,267 - __main__.py:228 - INFO - atx-agent output: server started, listening on 172.25.0.163:7912\r\n2018-05-22 11:19:17,317 - __main__.py:232 - INFO - success\r\n\r\n```\r\n\r\n## Versions (版本)\r\n`(ATX365) cmd@TR:~$ pip show uiautomator2\r\nName: uiautomator2\r\nVersion: 0.1.2.dev16\r\nSummary: Python Wrapper for Android UiAutomator2 test tool\r\nHome-page: https://github.com/codeskyblue/uiautomator2\r\nAuthor: codeskyblue\r\nAuthor-email: codeskyblue@gmail.com\r\nLicense: MIT\r\nLocation: /home/cmd/.pyenv/versions/3.6.5/envs/ATX365/lib/python3.6/site-packages\r\nRequires: requests, six, humanize, fire, progress, retry, whichcraft\r\nRequired-by: atx\r\n`\r\n\r\n## Issue and steps to reproduce (复现步骤)\r\n脚本未变,以往手机系统 和 atx u2 下均可运行通过\r\n\r\n- MIX2  MIUI9.5.6\r\n- 脚本端错误:\r\n   \r\n![image](https://user-images.githubusercontent.com/18392901/40341318-1a9dab48-5db7-11e8-999d-d504a8ac9cfd.png)\r\n\r\n\r\n\r\n## Screenshots （相关截图）\r\n能有尽量有\r\n\r\n## Additional Details （其他信息）\r\n同样脚本,放到genymotion 一个7.0.0的 镜像下 可执行通过,  u2 init未报错.脚本执行未报错."}}
{"actor":{"display_login":"Archer456"}}