PiRogueToolSuite / pirogue-cli

CLI interface to control the PiRogue
https://pts-project.org/
GNU General Public License v3.0
6 stars 2 forks source link

Adb root not enabled in production builds #2

Closed LVerneyPEReN closed 1 year ago

LVerneyPEReN commented 1 year ago

Hi,

https://github.com/PiRogueToolSuite/pirogue-cli/blob/main/pirogue_cli/android/device.py#L36-L44 fails whenever the adb root command exits with a non-zero exit code.

However, when using a production build without adb root support, it transparently fails:

pi@raspberrypi:~ $ adb root
adbd cannot run as root in production builds
pi@raspberrypi:~ $ echo $?
0

In this case, the adb shell subcommand to run fridaxx-server should be

$ adb shell
phone:/ $ su -c /data/local/tmp/frydaxx-server