I am trying to make a batch file to run adb commands. I want to use su -c , but I get an error:
su -c
su: invalid uid/gid '-c'.
I saw somewhere that my su version does not support -c , how can I enable this?
su
-c
In a batch file, it should be something like this:
adb shell "su 0 <command args>"
For instance:
adb shell "su 0 mount -o rw,remount /system"
The standard Android su much simpler than its regular linux counterpart. It does not support any commands other than -c , so it becomes redundant.
linux
usage: su [UID[,GID[,GID2]...]] [COMMAND [ARG...]]
Source: https://habr.com/ru/post/1233021/More articles:JQuery dialog not working with Datepicker - javascriptrspec-specified error `Then` is not available from the example (for example,` it`) - ruby ββ| fooobar.comWarnings Thrown When Accessing Reference Class Methods Through RStudio - rlogstash for elasticsearch show - loggingOverlaying two canvases "on top of each other" + event "click" - javascriptMultiple columns in one StaggeredGridView? - androidUnable to understand strategy template - java(datagrip) Connecting to a database with multiple schemas - postgresqlHow long can an XMPP server store offline messages - xmppHow to make autocomplete = off work in the login / password field in Firefox - htmlAll Articles