-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android target: su command required #26
Comments
Please could you describe the issue in more detail? Which part is failing? What device are you running on? For rooted devices and dev boards, |
I'm running experiments on a N5X. The device is rooted and Hence, I had to pull the binary in the device to make it work. Now, since in my case executing commands as root is not necessary because I already get a root shell, I thought we could just ignore the def execute(self, command, timeout=None, check_exit_code=True, as_root=False):
if self.connected_as_root:
as_root = False
return self.conn.execute(command, timeout, check_exit_code, as_root) If you want I can send a PR with this modification. What do you think? |
It might be a good idea to use |
When the target is an Android device the
su
command is needed on the target.In my case, I pushed the
su
binary from the AOSP repository I have in my work environment. It would be necessary to either tell the user he needs to do something similar or provide that binary with devlib and deploy it on the target right after connecting to it (as it is done withbusybox
for example).The text was updated successfully, but these errors were encountered: