Are there any way to access the files in /data/data
and copy them into memory card? I do not have root access.

- 4,176
- 9
- 35
- 60

- 331
- 1
- 2
- 3
1 Answers
Without root access you have 2 options. Both options (may) allow you to access the files for a particular app, e.g. the folder /data/data/com.app.packagename
.
If the application is debuggable you can use the
run-as
command in adb shell (more info about what adb is and how to install it can be found here)adb shell run-as com.your.packagename` cp /data/data/com.app.packagename/
If the application is not debuggable, you can use Android's backup function.
adb backup -noapk com.app.packagename
You will now be prompted to 'unlock your device and confirm the backup operation'. It's best NOT to provide a password, otherwise it becomes more difficult to read the data. Just click on 'backup my data'. The resulting 'backup.ab' file on your computer contains all the app's data in android backup format. Basically it's a compressed tar file. This page explains how you can use OpenSSL's zlib command to uncompress it. You can use the
adb restore backup.db
command to restore the backup.

- 10,065
- 6
- 41
- 101

- 956
- 12
- 27
android:allowbackup="false"
? – Key-Six Jan 09 '15 at 09:40adb backup -noapk com.app.packagename
You will get backup.ab then you will need to convert to tar (to open it with 7zip) You can convert it with https://sourceforge.net/projects/adbextractor/ - there is jar inside thi called abe.jar. Then You can run command
java -jar abe.jar unpack backup.ab backup.tar
– Igor Vuković Jun 10 '19 at 08:01adb backup
produces a tiny (41-47 byte) file, then it may be that the APK is marked asallowBackup=0
. Runaapt dump xmltree whatever.apk AndroidManifest.xml | grep allowBackup
. – Jonathon Reinhart May 04 '20 at 00:10allowBackup="false"
, you can back up to a secondary device of your choice (i.e. a rooted one) and get the files from there. – Bip901 May 26 '23 at 13:12