mrrfv / open-android-backup

Back up your device without vendor lock-ins, using insecure software or root. Supports encryption and compression out of the box. Works cross-platform.
http://openandroidbackup.me/
GNU General Public License v3.0
809 stars 41 forks source link

Support for backup of Work profile #128

Open gus4rs opened 3 months ago

gus4rs commented 3 months ago

I haven't found any info about backing up apps, data, contacts from a Work Profile (https://support.google.com/work/android/answer/6191949?hl=en), is that doable?

mrrfv commented 3 months ago

Most likely yes. Android's CLI package manager pm supports managing apps in specific profiles with --user — and according to this StackExchange answer, pulling data from specific users is also doable. The script could get the list of profiles on the device using adb shell pm list users and that way figure out there's a work profile that needs to be backed up (but the easiest implementation would be to have individual backups for each profile).

I'll think about adding support for this, however the demand for this feature is in all likelihood very low. Generally I don't like saying this, but you're welcome to submit a PR if you manage to get it working; the building blocks are already there.