1

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?

3
  • Is the device rooted? You have use sudo but you have not indicated if the device is rooted. Feb 6, 2021 at 7:44
  • How to root my android phone?
    – showkey
    Feb 6, 2021 at 8:43
  • sudo on host side is pointless, adb binary is already running with sufficient permissions
    – alecxs
    Feb 6, 2021 at 11:18

0

Browse other questions tagged .