I try to make batch file to run adb commands. I want to use su -c
, but I get the error:
su: invalid uid/gid '-c'.
I saw somewhere that my su
version doesn't support -c
, how can I enable this?
I try to make batch file to run adb commands. I want to use su -c
, but I get the error:
su: invalid uid/gid '-c'.
I saw somewhere that my su
version doesn't support -c
, how can I enable this?
In batch file it should be like this:
adb shell "su 0 <command args>"
For example:
adb shell "su 0 mount -o rw,remount /system"
The standard Android su
is much simpler than its regular linux
counterpart. It does not support any commands other than -c
- so it's become redundant.
su -c 'command args'
becomes su 0 command args
in Android –
Schwab © 2022 - 2024 — McMap. All rights reserved.