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
{{ message }}
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
pr #387 ('su -c') seems to break command execution for me #405
changed the title [-]commit #387 ('su -c') seems to break command execution for me[/-][+]pr #387 ('su -c') seems to break command execution for me[/+]on Jul 25, 2019
[ins] In [6]: a = devlib.AndroidTarget(working_directory=s)
[...]
[ins] In [8]: a.execute("whoami")
Out[8]: 'shell\n'
[ins] In [9]: a.execute("whoami", as_root=True)
Out[9]: 'root\n'
Activity
[-]commit #387 ('su -c') seems to break command execution for me[/-][+]pr #387 ('su -c') seems to break command execution for me[/+]marcbonnici commentedon Jul 26, 2019
Would you be able to provide the version of
suthat you are using and also the error output that attempting to use that parameter produces?v0lker commentedon Jul 29, 2019
i'm using a different version but visually, it looks like this one: https://android.googlesource.com/platform/system/extras/+/refs/tags/android-q-preview-5/su/su.cpp
the error message is
su: invalid uid/gid '-c'marcbonnici commentedon Jul 30, 2019
A fallback mechanism has been added with #409, would you be able to try this out and see if it resolves your issue?
v0lker commentedon Jul 30, 2019
thanks, that seems to work for me: