Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
479 views
in Technique[技术] by (71.8m points)

Connected to my android device using ADB but not able to use ls command, it says permission denied

I connected to my android device (stock android, 10) using ADB on ubuntu, now when I go to /data/ and do ls, it says permission denied.

Why? How to solve this problem?

question from:https://stackoverflow.com/questions/65913625/connected-to-my-android-device-using-adb-but-not-able-to-use-ls-command-it-says

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The user id used in adb shell sessions is different from the one that created the data folder (and subfolders). The permissions' set are drwxrwx--x that means --x for everyone, i.e., execute only.

What you can do is to go into the different folders using cd command or using Android Studio's Device File Explorer, more info here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...