Code Monkey home page Code Monkey logo

android-adb-backup's Introduction

android-adb-backup

Backing up and restoring android apps via adb root (when you can't run TiBackup due to lack of SuperSU support)

adb backup used to do almost the same thing, but it's dead now. bmgr restore also isn't supported anymore.

These scripts kind of does what TiBackup (from google play) does, but they're not nearly as smart. However, they will work on any device where you have adb root, whereas TiBackup requires SuperSU which is much harder to get working on some devices. As an example, google userdebug builds give you adb root, but will not give you any way to run android apps as root, which TiBackup requires.

Intended usage:

  1. run backup_apps.sh on the source device, consider moving out any app called com.android/com.google as they usually have good enough built in backups and copying their data on another device may create duplicate IDs and problems later
  2. Actually in newer androids, I've found that adb pull /data/data and adb pull /data/app is easier
  3. then run restore_apps.sh against the destination device. You can optionally give one or more package names if you don't want to restore all packages

Keep in mind that even with step #3, restoring all apps may cause issues as some have unique IDs that end up causing problems if you use the same unique ID on different devices. You may want to consider only restoring apps that are missing from google play or apps that sadly decide to prevent backups of their (i.e. your) data.

Credit goes to Raphael Moll for the original idea/scripts this was based on.

android-adb-backup's People

Contributors

marcmerlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.