By usr-local-ΕΨΗΕΛΩΝ


2013-04-18 12:57:19 8 Comments

Given a generic application I would like to transfer it, full with its own data, to another device or to the emulator.

After restoring the application and its /data/data/com.app directory it should be supposed to work as normal, provided that its business logic doesn't take into account that the device ID has changed or other facilities (like accounts) are missing.

Copying /data/data/com.app brutally may result in data corruption when app is active.

How do I do that, with or without root?

1 comments

@usr-local-ΕΨΗΕΛΩΝ 2013-04-18 12:57:19

Solution one: TitaniumBackup

Both devices must be rooted and use TitaniumBackup application. I have found that Titanium doesn't start on Emulator 2.1

Solution two: use adb backup options

Use adb backup and adb restore properly. This would mean to restrict the backup to the single app to be cloned, including its data, but nothing else. This is important as adb restore <file.ab> is an all-or-nothing, no selective restore possible. Full syntax for adb backup is:

adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|nosystem] [<packages...>]

So to only have our "Foobar" app included, we need to connect the device and:

adb backup -f MyBackup.ab -apk com.foobar.app

This done, and adb connected to the emulator, the generated backup file MyBackup.ab then can be restored using

adb restore MyBackup.ab

@Dr.jacky 2017-06-12 10:16:22

It gives a 1KB file! With the content of: ANDROID BACKUP 1 1 none xÚc£ŒT

Related Questions

Sponsored Content

1 Answered Questions

6 Answered Questions

[SOLVED] How can I backup the entire Gallery (photos and videos) to my desktop computer?

  • 2015-05-21 21:34:12
  • Sopalajo de Arrierez
  • 14959 View
  • 15 Score
  • 6 Answer
  • Tags:   backup gallery offline

1 Answered Questions

How to move data between 2 Android phones?

  • 2019-05-05 15:57:11
  • Atte Juvonen
  • 58 View
  • 0 Score
  • 1 Answer
  • Tags:   data-transfer

1 Answered Questions

1 Answered Questions

[SOLVED] Backing up important data from soft-bricked devices

1 Answered Questions

[SOLVED] Transfer Frozen: Free Fall progress between devices

1 Answered Questions

[SOLVED] where android backup its data?

  • 2014-05-15 13:26:29
  • BaRud
  • 1091 View
  • 0 Score
  • 1 Answer
  • Tags:   backup nexus-5

Sponsored Content