Skip to main content
deleted 6 characters in body
Source Link
Robert
  • 21k
  • 6
  • 49
  • 69

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the app can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Update for Android 12+

On Android 12+, apps that have a targetSDK of 31 or higher (are developed for Android 12+) app data backup via adb backup seems to be no longer possible:

For apps that target Android 12 (API level 31) or higher, when a user runs the adb backup command, app data is excluded from any other system data that is exported from the device.

https://developer.android.com/about/versions/12/behavior-changes-12#adb-backup-restrictions

adb backup on Android 12 only work if targetSDK is lower than 31 or the app is marked as debuggable=true. Apps downloaded from Play Store are never never debuggable and Google enforces apps to set targetSDK to the latest API level. Therefore apps from Google Play Store that has been updated in 2022 or later should no longer allow app data backup using adb backup.

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the app can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Update for Android 12+

On Android 12+, apps that have a targetSDK of 31 or higher (are developed for Android 12+) app data backup via adb backup seems to be no longer possible:

For apps that target Android 12 (API level 31) or higher, when a user runs the adb backup command, app data is excluded from any other system data that is exported from the device.

https://developer.android.com/about/versions/12/behavior-changes-12#adb-backup-restrictions

adb backup on Android 12 only work if targetSDK is lower than 31 or the app is marked as debuggable=true. Apps downloaded from Play Store are never never debuggable and Google enforces apps to set targetSDK to the latest API level. Therefore apps from Google Play Store that has been updated in 2022 or later should no longer allow app data backup using adb backup.

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the app can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Update for Android 12+

On Android 12+, apps that have a targetSDK of 31 or higher (are developed for Android 12+) app data backup via adb backup seems to be no longer possible:

For apps that target Android 12 (API level 31) or higher, when a user runs the adb backup command, app data is excluded from any other system data that is exported from the device.

https://developer.android.com/about/versions/12/behavior-changes-12#adb-backup-restrictions

adb backup on Android 12 only work if targetSDK is lower than 31 or the app is marked as debuggable=true. Apps downloaded from Play Store are never debuggable and Google enforces apps to set targetSDK to the latest API level. Therefore apps from Google Play Store that has been updated in 2022 or later should no longer allow app data backup using adb backup.

added 826 characters in body
Source Link
Robert
  • 21k
  • 6
  • 49
  • 69

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the app can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Update for Android 12+

On Android 12+, apps that have a targetSDK of 31 or higher (are developed for Android 12+) app data backup via adb backup seems to be no longer possible:

For apps that target Android 12 (API level 31) or higher, when a user runs the adb backup command, app data is excluded from any other system data that is exported from the device.

https://developer.android.com/about/versions/12/behavior-changes-12#adb-backup-restrictions

adb backup on Android 12 only work if targetSDK is lower than 31 or the app is marked as debuggable=true. Apps downloaded from Play Store are never never debuggable and Google enforces apps to set targetSDK to the latest API level. Therefore apps from Google Play Store that has been updated in 2022 or later should no longer allow app data backup using adb backup.

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the app can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the app can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Update for Android 12+

On Android 12+, apps that have a targetSDK of 31 or higher (are developed for Android 12+) app data backup via adb backup seems to be no longer possible:

For apps that target Android 12 (API level 31) or higher, when a user runs the adb backup command, app data is excluded from any other system data that is exported from the device.

https://developer.android.com/about/versions/12/behavior-changes-12#adb-backup-restrictions

adb backup on Android 12 only work if targetSDK is lower than 31 or the app is marked as debuggable=true. Apps downloaded from Play Store are never never debuggable and Google enforces apps to set targetSDK to the latest API level. Therefore apps from Google Play Store that has been updated in 2022 or later should no longer allow app data backup using adb backup.

added 1 character in body
Source Link
Firelord
  • 25.2k
  • 21
  • 125
  • 289

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the apapp can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the ap can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data.

The only part that seem to have changed by the deprecation is that the help text of adb backup has been removed from the adb binaries. So to show the help text with all options of adb backup you have to execute now: adb shell bu help

However adb backup has a problem with app that disallow backup via it's AndroidManifest.xml. The main problem you don't get any warnings or errors for such apps. hence it is totally unclear if a backup was successful by just looking at the messages printed on the console while creating the backup.

From an app perspective there is also the way to allow only partial backups. By a configuration file the app can specify certain paths or file types to be included or excluded from backup.

Therefore my recommendations is to backup only single apps without APK. Based on the size of the created backup archive you can see if the backup was potentially successful or not.

An alternative is to create a full backup (with or without APKs) and in the end convert the created backup archive using Android Backup Extractor to a tar archive and check that archive for the most relevant apps what files have been backuped.

bu help info added
Source Link
Robert
  • 21k
  • 6
  • 49
  • 69
Loading
Source Link
Robert
  • 21k
  • 6
  • 49
  • 69
Loading