App data transfer
1.0 · GitHub
More about this app
Backup/restore private app data of debuggable apps using Shizuku
debuggable-app-data-backup
This application can backup and restore private app data of debuggable apps using Shizuku without root. This includes credential-encrypted app data (/data/data/{pkg}) and device-encrypted app data (/data/user_de/0/{pkg}).
Exported data will be saved to /sdcard/AppData.
See releases for downloads.
Again, this only applies to apps marked as debuggable. My personal use case for this was in combination with a system-level exploit that allowed me to execute arbitrary code as Android's system_server. Using its privileges, it was possible to rewrite Android's package manifest caches and trick the system into believing that any app was debuggable. As a consequence, it allowed any apps private data to be read and written using run-as or this tool.
How Shizuku is used
Can back up and restore private data of debuggable apps via `run-as` shell commands through Shizuku
This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.
How this app uses Shizuku
Shizuku is used to copy private app files in and out of protected storage for apps marked debuggable.
- Back up app data: export the private files of a selected debuggable app to a backup folder on shared storage, copying both credential encrypted and device encrypted data with
run-as,cp,chmod,mkdir,mvandfindshell commands through Shizuku. - Restore app data: import a previously saved backup back into the selected app's private data areas with
run-asandcpshell commands through Shizuku, with an optional clean restore that deletes current data withrmbefore copying.
Android APIs or commands used
run-asshcpchmodmkdirmvrmlsfind
Notable details
Only apps marked debuggable are listed for backup and restore; other apps are hidden. Restore needs an existing backup for that app or it shows an error.
Changelog
What's new for version 1.0
- Initial release
Permissions
3 permissions requested