- open a command prompt
- enter 'adb shell', you might need to run this inside a folder that has adb.exe if that is not accessible globally
- enter 'run-as your.application.name'
- enter 'chmod 777 targeted_File_Path' in order to give full access to the file
So after entering these commands, the command prompt would look like this:
C:\Users\Me>adb shell shell@zara:/ $ run-as your.application.name run-as your.application.name shell@zara:/data/data/your.application.name $ chmod 777 /data/data/your.application.name/files/filename.jpg data/data/your.application.name/files/filename.jpg < shell@zara:/data/data/your.application.name $- quit the adb shell or open a new command prompt window
- enter 'adb pull targeted_File_Path destination_Desktop_Folder'
On command prompt, it will be something like:
C:\Users\Me>adb pull /data/data/your.application.name/files/filename.jpg c:/DestinationDirectory 2097 KB/s (19335 bytes in 0.009s)
References:
http://stackoverflow.com/questions/13006315/how-to-access-data-data-folder-in-android-device
http://www.codeproject.com/Articles/825304/Accessing-internal-data-on-Android-device
No comments:
Post a Comment