android - Retrieve all folders using root (su) in ADB -


how retrieve folders using su in 1 command? without root use

adb shell "ls -r / | grep /" 

and when try

adb shell su "ls -r / | grep /" 

it doesn't work. how must syntax work?

use -c option of su execute command. need 2 levels of quotes --

adb shell "su -c 'ls -r / | grep /'" 

Comments

Popular posts from this blog

unix - grep command not match start of new line with another regex -

sql - calculate weighted average for each day and id based on time intervals in PostgreSQL -

Sort a complex associative array in PHP -