android:allowBackup=”false”

Posted on

Google why did you do that? Seriously?

Today I was about to get my Nexus5, which was on a CM 12.1 nightly, anyhow updated to Marshmallow but to keep my all my apps and data and the data of the apps on the device without the need to re-configure every single app. Honestly, I was focused to have at least all the settings and data from WhatsApp and Google Authenticator on my device without the need to reconfigure them.

Everything else I could deal with.

Well that wasn’t that easy as I thought it will may be.

Usually you can get your apps and its settings backed up easily with adb using: Bildschirmfoto vom 2015-12-29 22:46:23

adb backup -apk -obb -all -f filename.ab

And after you’ve finished your stuff, simply issue:Bildschirmfoto vom 2015-12-29 22:44:59

adb restore filename.ab

to restore your backed data, apps and their data. I did this a couple of times some months ago and it went very good, even for WhatsApp.

But I sucked at WhatsApp and the Google Authenticator which were the most important ones for me to have backed.

What have I tried so far?

Well, after digging around a bit, I’ve read that there is a flag in the Android Manifest which can be set to disable apps to be backed up.

android:allowBackup=”false”Bildschirmfoto vom 2015-12-29 22:42:01

So, I’ve extracted the apk’s for WhatsApp and Google Authenticator and decompiled them to see into the Manifest. Well, I wasn’t surprised that much when I’ve seen in both apk’s that Backups were set to “false”. Well I thought: “that’ll be easy boy, simply set the flag to “true”, recompile the apps and replace them in

      • /data/app/com.whatsapp < = for WhatsApp
      • /data/app/com.google.android.apps.authenticator2-2/ <= for Google Authenticator

reboot the phone, create the backup (incl. WhatsApp and GA), flash Marshmallow on it, install the modded apps and restore your backup.”

Well. I have to tell you guys, this didn’t work at all. It was working fine on the same OS (CM 12.1). I’ve

  1. replaced the .apk files
  2. rebooted the phone,
  3. created a backup
  4. deleted the data for those ones
  5. rebooted the phone
  6. restored the backup
  7. rebooted again

and it was working fine. Just as expected!

Google. Seriously for what ***king reason did you build in such a great BackUp-Option in your OS but also allow app developer to disable a full backup of their apps. Just imagine every singel dev would do that! Why the *F* do I need a backup function in Android?

Can you anyhow remove this stupid flag? That would be great dudes!

Thank god I’ve made a TWRP Backup before I’ve started doing anything on my Nexus5. After I’ve tried lots of stuff I gave up. I’ve flashed Lollipop again on my device, flashed TWRP Recovery, pushed all my files to the SdCard and then restored my BackUp via TWRP.

I’m really fed up with this. Does anyone, anyhow may have a better idea how to get this done?

Let me know your suggestions in the comments!

UPDATE: Dec. 30th 2015

Finally I was able to get almost what I wanted. Finally!

Screenshot_20151230-174750

Titanium Backup was able to backup my WhatsApp and Google Authenticator data and restore it successfully after upgrading to CM13.

Related Articles
Find out how Mod_Pagespeed is working and helping to fix without the need to touch code. Mod_Pagespeed can help you to optimize Images, CSS code, Read more
With this post I will show you how you can serve Google Fonts on your own server or web hosting package, to speed up your Read more
In case you wonder, how can to get all the nice apps from Google play, without an account, or, even without flashing the whole GApps Read more
Me myself I'm very careful with my private data. Data I want to share - I share it. However. To get some things done you Read more
In Case you bump into one of these error messages while you try to flash the latest Google stock image for your NEXUS device - Read more

2 thoughts on “android:allowBackup=”false”

  1. Thanks for posting this, I was running into the same problem. As you were rooted anyway, using Titanium would have been first choice ( since ever 😉 ) but this adb backup being made optional is a serious problem for power users who do not want to root their phones. Well, there is no choice now I guess.

  2. I guess iOS and iTunes and Apple are far superior in this regard. Probably they do that for security reasons, so you don’t backup sensitive banking data and what not. In any case, there should be an option in developer setting to allow to override that.

    Also, having a rooted phone is not the most secure thing in the world.

Leave a Reply to rob Cancel reply

Your email address will not be published. Required fields are marked *