How to back up Angry Birds on Android devices

(Rooted and Non-Rooted)


/!\ I M P O R T A N T /!\

- Turn off automatic updates !!!

Show

Hide

At the time of writing this article, Rovio is getting ready to roll out their cloud syncing software. It is unknown if any of these back up methods will work after this update, but I would say that it would be highly unlikely.

The latest versions of Angry Birds require Android 2.2 (Froyo) or later. If you have scores on a pre 2.2 device that you wish to move over, now is the time to do so, whilst you still can.

You can either disable the update on each app individually or disable it for everything. These features are dependent on your version of the Play Store (or Android Market) and will be in different places


Android Market

Show

Hide

On older devices running the Android Marketplace, applications can only be controlled individually. To do this, open the Android Market app then go to: Menu > My Apps, select the desired App and uncheck the box next to Allow automtic updating.

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Play Store

Show

Hide

On devices running the Play Store, updates can be controlled individually or globally. Below I show 2 different versions of the Play Store.


Individual Settings

Show

Hide

The individual settings on the older Play Store up are much the same as the Android Market settings. Open the Play Store app then go to: Menu > My Apps, select the desired App and uncheck the box next to Allow automtic updating.

Mouse over the images for a larger view or click to open in a new window/tab

or

The individual settings on the newer Play Store adds an extra step.

Open the Play Store app then go to: Menu > My Apps, select the desired App, press Menu again and then uncheck the box next to Allow automtic updating.

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Global Settings

Show

Hide

The global settings are the same for both versions of the Play Store. Open the Play Store app then go to: Menu > Settings and uncheck the box next to Auto-update apps.

Mouse over the images for a larger view or click to open in a new window/tab

or

Hide


Hide


Hide


/!\ Disclaimer /!\

Show

Hide

I cannot guarantee the methods described here will work for everyone, nor can I guarantee that they are 100% safe. However I am 99.9% certain that they will work and they are safe. That said, I cannot take responsibility for loss of scores, loss of data, bricked devices, voided warranties or acts of war, terrorism or God.

Please also note that whilst I am compiling this guide - there is a lot about the apps and processes below that I do not know. I am merely a messenger who is recompiling this information into a, hopefully easy to follow, all-in-one guide. I may not be able to help you with the finer points or troubleshooting. If you do have any problems getting anything to work, please follow the links to the forums where this information was obtained and ask questions from the much more knowledgeable peeps who lie within.

Much of the information I present here has come from other sources, and it would be very remiss of me if I did not give credit where credit is due. I cannot thank everyone personally as I will end up accidentally leaving someone out and offending them. Instead, I will link my main sources of inspiration. Also, the second link below has more information on getting some of these processes to work on non-Windows OS's.

First up is the thread on the Angry Birds Network forums that started it all: Is there an Angry Birds backup app that works on Jelly Bean?

Secondly is a thread over at the XDA Developers forum, who were very helpful in ironing out some of the smaller kinks for me: [GUIDE] How to extract, create or edit android adb backups

Thank you.

Hide


Overview

Show

Hide

This guide covers the backing up of scores on Android devices of the following games:

It may be possible to adapt the methods below to work with other games such as Amazing Alex or Bad Piggies, but as yet, I have not tried this.

In this guide I will be differentiating between the different games (AB:O, AB:S, AB:R, AB:Sp & AB:SW), their versions (free, premium & HD) and their updates. The reason I make the distinction on these different definitions now is to save confusion later, as is it is very easy to say "different versions" of AB: O, S & R and just mean version numbers (herein called updates) but more confusing to say "different versions" of AB: Sp & SW when this could be the difference between an update or the game model such as free, premium or HD.

This guide will cover backing up, restoring and migrating Angry Birds scores on all versions of Android. The methods will vary depending on your device and OS version. The guide will be broken down into sections:

Hide


Preparing your device

Show

Hide


Enable USB Debugging

Show

Hide

To prepare your device to work with some of the steps below, you will need to enable USB debugging. The steps to achieve this differ depending on your version of Android.


v1.6-3.2

(Donut, Eclair, Froyo, Gingerbread and Honeycomb)

Show

Hide

On Android devices running 2.0-3.2 (Eclair, Froyo, Gingerbread and Honeycomb) and possibly 1.6 (Donut), it is under:

Settings > Applications > Development > USB Debugging

Mouse over the images for a larger view or click to open in a new window/tab

Hide


v4.0+

(Ice Cream Sandwich, Jelly Bean and beyond)

Show

Hide

On Android devices running 4.0 & later (Ice Cream Sandwich & Jelly Bean for now), it is under:

Settings > Developer Options > USB Debugging

you may need to activate the Developer Options by using the toggle at the top of the screen.

Mouse over the images for a larger view or click to open in a new window/tab

A side note for Android devices running the 4.2 & later revisions, Developer Options is hidden by default. To make it visible go to:

Settings > About Device

Then tap the Build number 7 times. Press back to return to the previous screen and Developer Options should have appeared.

Hide


Hide


Helium

(formerly Carbon)

Show

Hide

Note [1]:

Helium will only work on Android v4.0 (Ice Cream Sandwich) or later.

Note [2]:

If you wish to save your backups to anything other than your devices internal storage (e.g. Drop Box or Google Drive), you will need to purchase the Premium version. But there is nothing stopping you saving the file to your device then manually copying it elsewhere.

Note [3]:

Rooted devices do not need to be connected to a computer to enable backup and restore.

For those of you who wish to use Helium, you will first need to enable USB debugging as mentioned above. Then it is a simple case of downloading and installing the Helium app from the Play Store, and connecting your device to your PC - see "Preparing Your Computer" below.

Here are the links to the Helium App in the play store:

Helium App Sync and Backup: https://play.google.com/...

Helium (Premium): https://play.google.com/...

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Create a savegame

(restoration only)

Show

Hide

Before doing any of the restore actions, you need to complete at least 1 level of each game first. I am not entirely sure of the reason for this - and some restoration methods may actually work without following this step, feel free to experiment. However, it is generally no hardship to complete the 1st level of any of the games.

Hide


Hide


Preparing your computer

Show

Hide

These steps, with the exception of Helium, form the basis of the only universal method. It is however, a little involved and will require a little work.

Firstly you will need to download and install some software (if it is not already present on your machine). This software should work on all versions of Windows from XP onwards, but has only been tested by me on a Windows Vista machine.


Drivers

(Needed for both Helium and the ADT)

Show

Hide

If you are going to use Carbon or the ADT, you will need the drivers for your device, specifically the ADB driver. With some devices, these drivers will have automatically installed themselves when you connected the device to the PC via the USB cable. If they did not, you will receive an error message when trying to run the adb commands described later in this article. If this is the case and you are having trouble locating the correct driver and Windows has not automatically detected it, try using this tool which I found over at XDA Developers - http://forum.xda-developers.com/showthread.php?p=36523572

The ADB Driver Installer can be downloaded here: http://adbdriver.com/

Should you need to use the ADB Driver, they have their own easy to follow instructions here: http://adbdriver.com/documentations/...

Should that not work, follow the steps laid out on the Helium website: http://www.clockworkmod.com/carbon/drivers

Important: once you have installed the drivers for your device, you must restart your PC.

Hide


Helium

(Formerly carbon)

Show

Hide

If you are using Helium, you can skip the rest of the "Preparing Your Computer" stages.

For Helium to work on non-rooted, you will need to install the Helium Desktop Application.

The Helium Desktop App can be downloaded from here: http://clockworkmod.com/carbon

Once installed, run the app and connect your phone. If nothing happens, check that you have installed the drivers mentioned above.

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Java

Show

Hide

Java Development Kit (JDK) 7 or greater is required by the Android Developer Tools and is also needed for the extraction process which will be mentioned later on.

The JDK can be downloaded from here: www.oracle.com/technetwork/java/javase/downloads/index.html

Mouse over the image for a larger view or click to open in a new window/tab

Optionally you may also wish to install the Java Cryptography Extensions (JCE), however this is only required if you wish to password protect your back-ups. I did not see the need for this myself, but the option is there if you do.

To install the JCE, download Oracle Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 from the above link (it is towards the bottom of the page).

Mouse over the image for a larger view or click to open in a new window/tab

Extract the archive and put the files local_policy.jar and US_export_policy.jar in Java's' lib/security folder. This may change between installations, so here are a few location examples:

  • C:\Program Files\Java\jdk1.7.0_09\jre\lib\security\
  • C:\Program Files\Java\jre7\lib\security\
  • C:\Program Files (x86)\Java\jdk1.7.0_07\jre\lib\security\
  • C:\Program Files (x86)\Java\jre7\lib\security\

Hide


Android Debug Bridge

(Android Developer Tools)

Show

Hide

The Android Debug Bridge (adb), is part of the Android Developer Tools (ADT). In fairness you do not need the entire bundle - just 3 files from it (adb.exe, AdbWinApi.dll and AdbWinUsbApi.dll). For the purposes of this guide it will not matter if you have the entire bundle or just the SDK, so long as you know where it is on your machine. However, for the sake of simplicity, and ease of following the rest of this guide, I recommend you download the SDK. It comes as an executable, and it doesn't matter whether you are running a 32-bit or 64-bit OS. (The Eclipse bundle comes as a zipped archive, and has a 32-bit or 64-bit version - so you need to make sure you download the correct one for your OS).

The ADT SDK and other files can be found here: developer.android.com/sdk/index.html - Android Developer Tools SDK.

Click the Download for other platforms link at the bottom of the page, then scroll right down and click on the link for the installer

Mouse over the images for a larger view or click to open in a new window/tab

Run the executable and follow the on screen instructions. It will check for Java, so make sure you have already installed that. Once you get to select the installation directory, change it to:

C:\adt

You can change it to anything you want, however for simplicity and ease of following this guide, the above is the recommended directory.

For more information on the Android Debug Bridge itself, go here: developer.android.com/tools/help/adb.html

Hide


Android Backup Extractor

Show

Hide

The Android Backup Extractor is a neat little Java application that does all the fancy stuff that allows us to do some of the more advance features, like transferring scores between versions (Ad-free to Premium or HD).

You can download the Zip archive from here: http://sourceforge.net/projects/adbextractor/

Once downloaded, extract the files to C:\adt\

Mouse over the image for a larger view or click to open in a new window/tab

The last thing we need is a little script that will allow us to call this Java file from any location.

Open Notepad and type the following:

#!/bin/bash
java -jar "C:\adt\abe\abe.jar" "$@"

Mouse over the image for a larger view or click to open in a new window/tab

Save this file as abe.sh in the C:\adt\sdk\platform-tools directory.

Hide


Cygwin

(with Pax)

Show

Hide

Cygwin is, I suppose, a Linux terminal emulator. The only reason why Cygwin is needed is because we need to use an archive utility that stores directories in the archive without a trailing slash. This might not sound all that important, but in the world of code and semantics a single character or space in the wrong place and strange things happen. There is only 1 such application available for Windows, and that is called Pax. Whilst there is a native version of Pax available for Windows through Gnuwin32, it is far easier to setup and use through Cygwyn. Couple to that the fact that with a simple line of code at setup, and we can do away with the Windows command prompt altogether and use Cygwin for everything (which also means we do not have to find any more utilities to help with decompressing the .tarballs (archives) that the ABE creates).

Cygwin can be downloaded from here: cygwin.com/install.html and selecting the setup.exe links in the main body of text.

Mouse over the images for a larger view or click to open in a new window/tab

Once downloaded, run setup.exe and follow the on screen prompts. Choose whichever download sites you like, it does not matter

The most important part of this process is the Select Packages stage. When you reach this screen, type pax into the search box, then in the main window next to Archive click on Default to change it to Install.

Don't worry if you skipped past this stage without realising, just re-run the setup.exe

Mouse over the images for a larger view or click to open in a new window/tab

The last stage in configuring Cygwin is to set the path to the adb.exe. This is done by double clicking the Cygwin icon and entering the following command at the $ prompt.

echo 'export PATH=$PATH:/cygdrive/c/adt/sdk/platform-tools' >> ~/.bashrc

If you installed the Android Developer Tools to a different directory, you will need to change /c/adt to the path you used. This is why I suggested installing to C:\adt right at the beginning.

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Backup Directories

Show

Hide

Before you create your backups, you are going to want to know where you are storing them. It is possible to create some of the folders on the fly, however I think it is better to have the folders prepared before you start. This is especially important if you are dealing with multiple devices, so that you do not overwite the wrong files.

You can create the directories anywhere you like, but for ease of following this guide I recommend using the following structure:

In the C:\adt directory you created earlier, make a new folder called backups, then inside this create a folder for each device you own (I am using a Sony Xperia X8, a Samsung Nexus S and a Samsung Galaxy S3, hence my folders X8, Nexus and S3)

Important Note: The steps later on use an emulated version of Linux. For those of you unfamiliar with Linux, it's file system is case sensistive. This means that you must make sure that if you create a directory such as Nexus you always refer to it as Nexus and not nexus or NEXUS, etc...

Mouse over the image for a larger view or click to open in a new window/tab

Hide


Hide


Backing Up & Restoring Android v1.6-3.2

(Donut, Eclair, Froyo, Gingerbread and Honeycomb) & Rooted v4.0+ (Ice Cream Sandwich, Jelly Bean and Beyond)

Show

Hide

This is probably the easiest to do. There are many apps in the "Play Store" (Android Market on older phones) that claim to be able to back up and restore your save game files. However, the only one I have used successfully was "Angry Birds Back Up" by Sergio Patricio. However this has since been removed from the Play Store. If you would like to try this app you will need to contact Sergio directly. The reason I still mention this app, even though it is generally unavailable is because it was the only all-in-one free app that supported all 5 incarnations of Angry Birds, allowed you to back up and restore from Drop Box or Device storage and could migrate the scores between versions (if you have multiple versions installed, it will only restore to the 1st one it finds in this order, IIRC, - HD then Premium and finally Free).

Whilst compiling this I guide I contacted Sergio myself in regard to publicly recommending his app. His response was positive, and explained that the app had been removed due to "Trademark Issues" on the name of the app. The only reason he did not re-upload it was due to the issues of non-rooted Jelly bean devices. However he does still support the app, but will not re-upload it to the play store due to Rovio's move towards cloud storage.

The only way I publicly know to contact Sergio is via the XDA Developers forums - His user name there is sergiopat.

Using "Angry Birds Back Up" is self explanatory, just place a check mark next to the game you wish to backup / restore and hit the backup / restore buttons. To connect to your Dropbox account just hit "Connect with Dropbox".

If you are using a rooted Jelly Bean device, you need to open the menu, select preferences and place a check mark next to "Request Root".

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Backing Up & Restoring Android v4.0+

(Ice Cream Sandwich, Jelly Bean and Beyond), Rooted or Non-Rooted

Show

Hide

Having prepared your computer and your device as shown above, this is actually quite an easy process. If you have reset your device you might need to follow the instructins in Preparing Your Device > Helium again first.

Open Helium on your device. It may default to whatever action was last followed, so you may need to change tabs.


Backup

Show

Hide

Select the Backup tab at the top of the screen, place a check mark next to the desired app (you can select more than one, and you can define groups, but for now we will stick with individual backups), then press the Backup button at the bottom of the screen.

Unless you have paid for the premium version of Helium, you can only back up your apps to the devices Internal Storage. Once backed up, if you wish to transfer between devices you can manually access these files through the use of a File Manager. There is also an option to sync Helium with other devices, but that will not be covered here.

The backups are stored in a folder named Carbon, on the Samsung Galaxy S3 this is located at: My Files/storage/sdcard0/carbon. Any Helium backups will appear in here as a folder with a name similar to com.rovio.angrybirds (depending on the version of the game that has been backed up).

With the back up started, you will briefly have the option to password protect you backup. You may ignore this and the backup will continue unhindered.

Hide


Restore

Show

Hide

Restoration is practically the reverse of the back up process.

Select the Restore tab at the top of the screen.

Unless you have paid for the premium version of Helium, you can only restore your apps from the devices Internal Storage. Once selected, you will be presented with a list of previously saved backups.

Place a check mark next to the desired app (you can select more than one, and you can restore groups, but for now we will stick with individual restorations), then press the Restore button at the bottom of the screen.

Once the restoration ha started, you will be given the option to enter a password, if you protected your backups. If no password was created, just wait a moment and the restoration will continue unhindered.

Hide


Hide


Backing Up, Migrating & Restoring Between All Android & Game Versions

Show

Hide

So you don't want to bother Sergio, or you are looking to migrate your scores from a device that doesn't suport Helium to a non-rooted ICS/JB device, or you are wishing to transfer your scores from an Ad-Free to a Premium version on a non-rooted ICS/JB dvice? No problem. There is another way. This method should enable you to back up, migrate and restore any Android Device and Game Version. First you will need to "Prepare Your Computer" and "Prepare Your Device" if you have not already done so.


Paths and Files

Show

Hide

The next thing you will need are the paths to the app data (and for pre- v4.0 devices, the file names) you want to back up. In the following steps, replace any instance of PATH with the path for the specific version as listed in the table below.

Angry Birds Version ADB Path
Angry Birds (Original) com.rovio.angrybirds
Angry Birds Seasons com.rovio.angrybirdsseasons
Angry Birds Rio com.rovio.angrybirdsrio
Angry Birds Space com.rovio.angrybirdsspace.ads
Angry Birds Space Premium com.rovio.angrybirdsspace.premium
Angry Birds Space HD com.rovio.angrybirdsspaceHD
Angry Birds Star Wars com.rovio.angrybirdsstarwars.ads.iap
Angry Birds Star Wars HD com.rovio.angrybirdsstarwarshd.premium.iap

In all the guides I have read they always mention 2 files that need to be backed up, highsores.lua and settings.lua. I have been successful by only backing up highscores.lua but this may not always be the case, so my recommendation is to backup both files to be on the safe side.

Hide


Backup

Show

Hide

To backup your scores, connect your device to your computer via USB, run Cygwin and enter the following commands, (depending on the Android version on your device)


v1.6-3.2

(Donut, Eclair, Froyo, Gingrbread and Honeycomb)

Show

Hide

With Cygwin open, navigate to your desired backup directory. If you have followed my instructions above, enter the following commands exactly (replacing DEVICE with the folder name for your desired device and GAME with the folder name for the game/version you are backing up). Otherwise, navigate to where your folders are or where you want to save your backups to.

cd C:/adt/backups/DEVICE/GAME

For example, I used cd C:/adt/backups/X8/ABO

Then run the backup command, replacing PATH with the path for the version required from the table above and replacing FILE with either highscores.lua or settings.lua.

adb pull /data/data/PATH/files/FILE

For example, I used adb pull /data/data/com.rovio.angrybirds/files/highscores.lua

Mouse over the images for a larger view or click to open in a new window/tab

Hide


v4.0+

(Ice Cream Sandwich, Jelly Bean and beyond)

Show

Hide

With Cygwin open, navigate to your desired backup directory. If you have followed my instructions above, enter the following command exactly (replacing DEVICE with the folder name for your desired device and GAME with the folder name for the game/version you are backing up). Otherwise, navigate to where your folders are or where you want to save your backups to.

cd C:/adt/backups/DEVICE/GAME

For example, I used cd C:/adt/backups/S3/ABO

Then run the backup command, replacing PATH with the path for the version required from the table above and replacing FILENAME with the name you wish to call your backup file. I think the quotes around the filename are only required for filenames with spaces or similar characters in them, I have had success without using them, but I would recommend using them to prevent problems later on.

adb backup -noapk PATH -f "FILENAME.ab"

For example, I used adb backup -noapk com.rovio.angrybirdsversion -f backup.ab

Unlock your device (if not already unlocked) and confirm the backup.

You can enter a password here if you feel the need to and you installed the Java Cryptography Extensions mentioned earlier. Personally I don't see the point.

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Hide


Migrate

Show

Hide

This is the more complicated part of the tutorial, however if you are migrating scores between 2 pre- v4.0 devices you may skip straight to the restore section (don't forget to change the path if you are migrating between game versions). The following steps refer to the backup files created with Android v4.0 devices or newer.

If you have not already done so, you must now create a backup of both devices. See above.


Unpack the Backup

Show

Hide

With Cygwin open, navigate to your desired backup directory and run the abe.sh script we created earlier with the following arguments:

abe.sh unpack backup.ab backup.tar

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Extract the Archive

Show

Hide

In Cygwin, extract the newly created backup.tar with the following command:

tar -xvf backup.tar

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Catalogue the Backup

(Required Only on the Destination Device)

Show

Hide

In Cygwin, catalogue the newly created backup.tar with the following command:

tar -tf backup.tar > backup.list

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Copy the Files

Show

Hide

If you have followed my instructions above, replace device with the folder name for your desired device, game with the folder name for the game/version you are restoring and path with the correct path for your game version from the table above.

Open Windows Explorer and navigate to the folder where your hiscores.lua and settings.lua files are located for your source device.

For devices running Android v3.2 and older, these will be in the backup directory you created:

C:/adt/backups/device/game

For example, I used C:/adt/backups/X8/ABO

Mouse over the image for a larger view or click to open in a new window/tab

For devices running Android v4.0 or newer, these files are located deep within the extracted backup:

C:/adt/backups/device/game/apps/path/f

For example, I used C:/adt/backups/S3/ABO/apps/com.rovio.angrybirds/f

Mouse over the image for a larger view or click to open in a new window/tab

Copy the 2 files, hiscores.lua and settings.lua and paste them into correct backup directory for the destination device, and select to overwrite any existing files

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Create Restoration Archive

Show

Hide

In Cygwin, navigate to the directory for the destination device and create the restoration archive with the modified files using the following command:

cat backup.list | pax -wd > restore.tar

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Repack the Restoration File

Show

Hide

With Cygwin open, repack the newly created restore.tar into the Android Backup format with the following command:

abe.sh pack restore.tar restore.ab

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Now all you have to do is restore your newly created restore.ab file to the destination device, see below.

Hide


Restore

Show

Hide

Restoration of your files is as simple as reversing the backup process.

To restore your scores, connect your device to your computer via USB, run Cygwin and enter the following commands, (depending on the Android version on your device)


v1.6-3.2

(Donut, Eclair, Froyo, Gingerbread and Honeycomb)

Show

Hide

With Cygwin open, navigate to your desired restoration directory. If you have followed my instructions above, enter the following commands exactly (replacing DEVICE with the folder name for your desired device and GAME with the folder name for the game/version you are restoring). Otherwise, navigate to where your folders are or where you want to restore your backups from.

cd C:/adt/backups/DEVICE/GAME

For example, I used cd C:/adt/backups/X8/ABO

Then run the restoration command, replacing FILE with either highscores.lua or settings.lua and replacing PATH with the path for the version required from the table above .

adb push FILE /data/data/PATH/files/

For example, I used adb push highscores.lua /data/data/com.rovio.angrybirds/files/

Mouse over the images for a larger view or click to open in a new window/tab

Hide


v4.0+

(Ice Cream Sandwich, Jelly Bean and beyond)

Show

Hide

With Cygwin open, navigate to your desired restoration directory. If you have followed my instructions above, enter the following command exactly (replacing DEVICE with the folder name for your desired device and GAME with the folder name for the game/version you are restoring). Otherwise, navigate to where your folders are or where you want to restore your backups from.

cd C:/adt/backups/DEVICE/GAME

For example, I used cd C:/adt/backups/S3/ABO

Then run the restoration command, replacing FILENAME with the name of the file you are restoring your backup from. I think the quotes around the filename are only required for filenames with spaces or similar characters in them, I have had success without using them, but I would recommend using them to prevent problems later on.

adb restore "FILENAME.ab"

For example, I used adb restore backup.ab

Unlock your device (if not already unlocked) and confirm the backup.

If you entered a password for your backup, you will need to enter it here to proceed.

Mouse over the images for a larger view or click to open in a new window/tab

Hide


Hide


Hide