I made a backup of app data in a rooted device with
tar -czvf example.app.back.tar.gz /data/data/com.example.app/
And after decompress the tar in other rooted devices with
cd /
tar -xvf example.app.back.tar.gz /data/data/com.example.app/
The app get this data working after I did
chmod -R 777 /data/data/com.example.app/
and when I reboot its like a factory reset ,all the app data is gone and the apk that can be installed only in sd and when reboot again the app are deleted and the start wizard appears agains
I think that the tar command create a /data folder or mess in some way the mount points
Maybe I omit in the example some flags in the tar command that i originally typed
The destination device have Android 4.1.1
adb backup -noapk
(and its restore) would have addressed the same action in a more safe way.adb restore
it's data from what you captured withadb backup -noapk -f app_data.ab com.package.name
(wherecom.package.name
is the app's package name – usually the same as the directory name you've dealt with before). If it broke more, factory-reset will be a last resort – especially if you really dealt "with the full/data
".