Please sign in to comment.
Reworked the root check.
0 = root immediatey. 1 = root after 'su'. 2 = shell user 3 = what is this I don't even Instead of calling adb shell directly in each function, the wrapper 'command()' will facilitate auto-su elevation for each command. Instead of running comands via adb shell "$*", now we create a temp file, push it to temp location, and execute that via adb shell 'sh file'. This allows us to handle su elevation more easily. : Need to place a check for location of temp files. /data/local/tmp/ is probably good for remote temp, but local tmp folder needs a check. Some cleaning of code?
- Loading branch information...
Showing with 63 additions and 37 deletions.