I would like to take an installed app, including its data, from a rooted Android device and produce from it an APK suitable for installing on a non-rooted Android device.
Is this possible?
Edit: Existing answers/comments seem to reinforce the idea that existing apps do not support embedding an app's data within an APK. Perhaps the more fundamental question is,can an APK embed files destined for /data/data/[appname]
, or are they restricted to being self-contained when installed?
Notes:
- I assumed that, if it were possible, this functionality would be built into an app such as Titanium Backup. Titanium Backup can back up app+data to a single file, but that file is not an APK and can only be restored by Titanium Backup itself - which is no help for me as the destination device is not rooted and so cannot run TB.
- Solutions that require use of the terminal on the phone or ADB are fine.
Thanks.
.apk
plain (so at least you can take that). I need to look into the data files; AFAIR this were simply stored properties, but I cannot remember the format used. However, restoring data on a non-rooted device is probably very hard to achieve for the same reason as backup is: no access to the data folders...