Question: Use the Android Studio terminal window to log into the phone using adb shell. From the command line, type run-as package-name. Then navigate to /data/data/package-name/shared_prefs,

  1. Use the Android Studio terminal window to log into the phone using "adb shell". From the command line, type "run-as package-name". Then navigate to "/data/data/package-name/shared_prefs", and display the shared preferences using "more filename.xml"
generic_x86:/$ run-as com.example.lab3 generic_x86: /data/user/0/com.example.lab3 $ /data/data/com.example.lab3/shared_prefs sh: /data/data/com.example.lab3/shared_prefs: can't execute: Is

I don't know how to fix this error. Please help

generic_x86:/$ run-as com.example.lab3 generic_x86: /data/user/0/com.example.lab3 $ /data/data/com.example.lab3/shared_prefs sh: /data/data/com.example.lab3/shared_prefs: can't execute: Is a directory 126| generic_x86: /data/user/0/com.example.lab3 $ 0

Step by Step Solution

3.47 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It seems like you are encountering an issue while trying to access the shared preferences of an Andr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!