You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adb encounters an error, typically when the devices isn't authorised, the program fails with a Trackback.
It should be clearer if it prints the adb error message and stop gracefully.
The trackback in my case was :
➜ python amdh.py -sA -a /home/nicolas/Android/Sdk/platform-tools/adb
[-] INFO: List of devices:
[-] INFO: The device 97UAY124RZ will be used.
Traceback (most recent call last):
File "amdh.py", line 408, in<module>amdh()
File "amdh.py", line 209, in amdh
packages = adb_instance.list_installed_packages(arguments.app_type)
File "/home/nicolas/Dev/playground/python/AMDH/core/adb.py", line 48, in list_installed_packages
output_command = self.adb_exec(adb_command)
File "/home/nicolas/Dev/playground/python/AMDH/core/adb.py", line 25, in adb_exec
result = run(commands_array,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/nicolas/Android/Sdk/platform-tools/adb', '-s', '97UAY124RZ', 'shell', 'pm', 'list', 'packages', '-3']' returned non-zero exit status 1.
And the adb message was:
➜ adb shell pm list packages -3
adb: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not setTry 'adb kill-server' if that seems wrong.Otherwise check for a confirmation dialog on your device.
The text was updated successfully, but these errors were encountered:
When adb encounters an error, typically when the devices isn't authorised, the program fails with a Trackback.
It should be clearer if it prints the adb error message and stop gracefully.
The trackback in my case was :
And the adb message was:
The text was updated successfully, but these errors were encountered: