List all directory in storage with adb :
adb shell ls -a /storage
.
..
emulated
sdcard0
self
I want to list all directory located in /storage/emulated:
adb shell ls -a /storage/emulated
ls: /storage/emulated: Permission denied
Add sudo to list again:
sudo adb shell ls -a /storage/emulated
ls: /storage/emulated: Permission denied
How can i get the permission then?
sudobut you have not indicated if the device is rooted. – Reddy Lutonadio Feb 06 '21 at 07:44sudoon host side is pointless,adbbinary is already running with sufficient permissions – alecxs Feb 06 '21 at 11:18