[APP][ROOT][5.0+][1st Nov 2020] Migrate - custom ROM migration tool

Is Migrate backup and restore working without any errors?


  • Total voters
    769
Search This thread

massima

Senior Member
Nov 7, 2014
157
52
Powerful, simple tool whom works perfectly with crdroid 7.5 and semplified my life, thanks 😇!!

On my 2th device with phh treble GSI, no twrp and phh's SuperUser Migrate flasher successfully restored my datas
 
Last edited:

keithscot

New member
Apr 18, 2021
4
0
Trying to restore always gets stuck at 22%, not on any particular app. Is there a fix? Sorry if this has been asked before, can't search the thread on new XDA.
I am having this problem too. Moving from Android 10 to 11.
I have tried not restoring sms and calls. Tried not restoring the apps it appears to get stuck on. It does appear that it is not related to specific apps but only restoring a set amount of apps/data and then hanging.
 

jmh2002

Senior Member
Jun 1, 2016
58
29
NZL, POL, UKR
Sorry if this has been asked before, can't search the thread on new XDA.
On the new XDA the search box at the top of the page has drop down options for where you want to search, eg: Everywhere, Forums & Devices, Threads, This Forum, and This Thread (see screenshot)

Hope that helps :)

[APP][ROOT][5.0+][1st Nov 2020] Migrate - custom R.jpg
 

LeAntsy

Member
Nov 14, 2019
27
5
Wouldn't I lose my backup if I have the backups saved in my internal storage and install another custom ROM? Since I have to format data for ROM installation. Can I install backup if I move it to my cloud storage/SD card and then move back to internal storage after installing new ROM?
 

Philnicolls89

Senior Member
Jun 28, 2019
604
244
32
A.C.T
Wouldn't I lose my backup if I have the backups saved in my internal storage and install another custom ROM? Since I have to format data for ROM installation. Can I install backup if I move it to my cloud storage/SD card and then move back to internal storage after installing new ROM?
Yes that is exactly what you need to do. I always move the backup to my SD card so that it's safe if I need to do a clean flash unexpectedly. For example if a custom rom or kernel update causes bootloop.
 

73sydney

Senior Member
Jul 21, 2018
1,555
1,254
Sydney
Google Pixel 2 XL
Wouldn't I lose my backup if I have the backups saved in my internal storage and install another custom ROM? Since I have to format data for ROM installation. Can I install backup if I move it to my cloud storage/SD card and then move back to internal storage after installing new ROM?

I always keep a copy off device (on PC), because quite often i have to format data completely...

Always have 2 backups of your backups, nothing sucks harder than having to reinstall everything from scratch :)
 
  • Like
Reactions: flash713

hansxl

Senior Member
Nov 18, 2009
338
63
I always keep a copy off device (on PC), because quite often i have to format data completely...

Always have 2 backups of your backups, nothing sucks harder than having to reinstall everything from scratch :)
reinstalling everything sucks indeed, but losing all my data and not having a backup sucks even harder 😁
 

marvi0

Senior Member
May 23, 2008
2,012
171
?
Hi guys, I have some backups on my sd card, from titanium backup. Am I right to assume I would not be able do restore those backups using this app?
 

jhford

Senior Member
Oct 28, 2005
543
67
Nexus 7 (2013)
LG G Pad X 8.0
I have 2 Nexus 7 (2013) LTE deb tablets. I just did a restore on one of them and realized that I have many more apps than I'll ever use on the tablets. So, I uninstalled numerous apps on the other tablet and did a backup. Will Migrate restore automatically uninstall the surplus apps If I restore that backup on the tablet with the excess apps? My guess is no and that I have to manually uninstall them.
 

73sydney

Senior Member
Jul 21, 2018
1,555
1,254
Sydney
Google Pixel 2 XL
I have 2 Nexus 7 (2013) LTE deb tablets. I just did a restore on one of them and realized that I have many more apps than I'll ever use on the tablets. So, I uninstalled numerous apps on the other tablet and did a backup. Will Migrate restore automatically uninstall the surplus apps If I restore that backup on the tablet with the excess apps? My guess is no and that I have to manually uninstall them.

Migrate is a backup app, it only backs up and restores apps, it doesnt uninstall anything

If you were to factory wipe the other tablet with apps you dont want, and then restore the Migrate backup from the other tablet, then you would have a mirror...assuming the apps were compatible with the second tablets architecture and API level (Android version) - most would be if not many API levels apart

Or you can just uninstall the apps you dont want on the second tablet

I think its clear which path is easiest :)
 

73sydney

Senior Member
Jul 21, 2018
1,555
1,254
Sydney
Google Pixel 2 XL
When I flash my ZIPs in TWRP 3.5.2_9, I get an Error 7 Code. I tried flashing with version 3.5.0_9 and it works just fine. My phone is Moto G7 River.

You dont even need TWRP to restore a backup...you just install the Migrate App form the store and install the flash and helper modules when prompted to restore from within the ROM itself. If you want to be clever you can install these, and then back them up with something like MyAPK and store them in your /sdcard/Migrate folder along with your backup, to install locally on new flash and then use them to restore - its what i do 3 or 4 times a week testing ROMs...

Specifically:

Install (if you dont have them already):

Flasher module: https://play.google.com/store/apps/details?id=balti.migrate.flasher
Helper Module: https://play.google.com/store/apps/details?id=balti.migrate.helper
MyAPK: https://play.google.com/store/apps/details?id=com.andatsoft.myapk.fwa

Then open MyAPK, locate and backup to /sdcard/Migrate:

Flasher Module
Helper Module

Come restore time after new ROM flash:

Go to /sdcard/Migrate and install:

Flasher Module
Helper Module

Run Flasher module and flash zips, at completion it will ask you to open Helper module, which will be already installed, flash the apps you want to restore, and reboot

Make life easier for yourself...

But if youre determined to use TWRP method:

I would be checking with the TWRP maintainer for your device first

Theres plenty of devices where TWRP versions display different issues between builds

The Migrate app and scripts are the same...so that leaves with the logical step that the issue is TWRP related...

For my device, Pixel 2XL, on Android 11 we generally dont install TWRP, so fastbooting is the way to go...i have a number of different TWRP versions because some have issues for certain functions, and just fastboot the one i want
 

Top Liked Posts

  • 1
    Migrate is now compatible with A11? I had switched to Swift Backup for my more recent devices since the last few months.
    Compatibility with A11 has been confirmed.
    1
    Migrate is now compatible with A11? I had switched to Swift Backup for my more recent devices since the last few months.

    I used it on a Oneplus 8T with 11. No problems. The only thing, is that i wonder why so many individual apps. Why not have a single app like titanium. Also TWRP doesn't work on phones with 10+ android. But there is a app for those without TWRP.
  • 2
    When I flash my ZIPs in TWRP 3.5.2_9, I get an Error 7 Code. I tried flashing with version 3.5.0_9 and it works just fine. My phone is Moto G7 River.

    You dont even need TWRP to restore a backup...you just install the Migrate App form the store and install the flash and helper modules when prompted to restore from within the ROM itself. If you want to be clever you can install these, and then back them up with something like MyAPK and store them in your /sdcard/Migrate folder along with your backup, to install locally on new flash and then use them to restore - its what i do 3 or 4 times a week testing ROMs...

    Specifically:

    Install (if you dont have them already):

    Flasher module: https://play.google.com/store/apps/details?id=balti.migrate.flasher
    Helper Module: https://play.google.com/store/apps/details?id=balti.migrate.helper
    MyAPK: https://play.google.com/store/apps/details?id=com.andatsoft.myapk.fwa

    Then open MyAPK, locate and backup to /sdcard/Migrate:

    Flasher Module
    Helper Module

    Come restore time after new ROM flash:

    Go to /sdcard/Migrate and install:

    Flasher Module
    Helper Module

    Run Flasher module and flash zips, at completion it will ask you to open Helper module, which will be already installed, flash the apps you want to restore, and reboot

    Make life easier for yourself...

    But if youre determined to use TWRP method:

    I would be checking with the TWRP maintainer for your device first

    Theres plenty of devices where TWRP versions display different issues between builds

    The Migrate app and scripts are the same...so that leaves with the logical step that the issue is TWRP related...

    For my device, Pixel 2XL, on Android 11 we generally dont install TWRP, so fastbooting is the way to go...i have a number of different TWRP versions because some have issues for certain functions, and just fastboot the one i want
    1
    Hi guys, I have some backups on my sd card, from titanium backup. Am I right to assume I would not be able do restore those backups using this app?
    You're right about that.
    1
    Migrate is now compatible with A11? I had switched to Swift Backup for my more recent devices since the last few months.

    Been using it on Android 11 for ages....3 or 4 times a week
    1
    Migrate is now compatible with A11? I had switched to Swift Backup for my more recent devices since the last few months.
    Compatibility with A11 has been confirmed.
    1
    Migrate is now compatible with A11? I had switched to Swift Backup for my more recent devices since the last few months.

    I used it on a Oneplus 8T with 11. No problems. The only thing, is that i wonder why so many individual apps. Why not have a single app like titanium. Also TWRP doesn't work on phones with 10+ android. But there is a app for those without TWRP.
  • 578
    Jumping from one custom ROM to another can be a challenging task. So I decided to make an app to simplify the process.

    Introducing
    Migrate!

    Migrate-GPE (v4.0) is on Google Play
    It was temporarily suspended. Read more here: https://forum.xda-developers.com/showpost.php?p=82230451&postcount=1273

    Download from Google Play Store
    Download from AndroidFileHost
    Download from XDA labs

    migrate_1.png


    With Migrate, you can back up:
    1. App apk
    2. App data
    3. App runtime permissions
    4. Contacts (as vcf file)
    5. SMS messages
    6. Call logs
    7. Current ROM screen DPI
    8. Current default keyboard option
    9. App installer (Migrate 3.0)
    10. Adb state (Migrate 3.0)
    11. Font scale (Migrate 3.0)

    ... everything in one app.

    migrate_3.png

    migrate_4.png


    Ok. So its just another of those backup and restore apps, right?

    Sort of... but with a twist.
    Restoring everything requires flashing the backup via TWRP.

    migrate_recovery.png


    All your apps and data are restored to a directory under /data/balti.migrate, /data/local/tmp/migrate_cache (from v2.0+) and a helper app is injected into the system.. Once you boot up your new ROM, the app will spring up, ask for root permission and do all the job while you can relax.

    migrate_helper.png


    Donations:
    Well, the app already has ads, so you need not explicitly donate anything :p
    But if you are feeling reaalllyyy grateful for the app, you can donate here: paypal.me/sayantanrc
    Thanks.

    Migrate Gemini (v4.0) release

    Hello everyone.
    Migrate 4.0 is now released.

    There are 2 editions of Migrate.

    Migrate NG: This is the Non-Google and Beta edition. It is not published on Google Play store. It will continue having in-app updates. Moreover new features will be tested on these builds first. People who did not like firebase analytics, this edition is for you as it does not have firebase SDK anymore. However, Google admob ads are still present.

    Download link (NG): https://www.androidfilehost.com/?fid=10763459528675575696

    Migrate GPE: This version is Google Play Edition. It is the stable version. It does not have in-app updates anymore as it violated Google Play policies.
    Download on Google Play: https://play.google.com/store/apps/details?id=balti.migrate

    Coming from alpha 3.1, if you update via the in-app updater, you will be switched to the Non-Google Edition.

    Thank you.

    Want to translate the app?
    The strings.xml file is available here: https://github.com/SayantanRC/translations

    Telegram group!
    We now have a Telegram group for migrate:
    http://t.me/migrateApp
    This is not to rival XDA but only another form of communication between users and me :)
    Thanks.
    135
    FAQ:

    Click here for Troubleshooting options

    If you are facing issues while flashing, refer to this video: https://youtu.be/0Cp6TNayXnM
    Full manual extract guide: https://forum.xda-developers.com/showpost.php?p=82198185&postcount=1269

    How is this app different from Titanium backup?
    This app is a ROM migration tool. It not only backs up app and data, but also contacts, SMS, call logs etc. Moreover, the restoration process also involves flashing via TWRP. Titanium backup is an excellent app. Migrate just views the restoration process differently.

    Do I need to download the Migrate app to restore the apps?
    No. Only your ROM needs to be rooted. The restoration process is handled by a helper app, which deletes itself after restoring everything.

    Is it necessary to use Magisk?
    The app works best with Magisk. Other options like Lineage OS su addon causes weird errors like incomplete file copy, etc.

    All apps are restored from recovery?
    No. That is not possible. Because Recovery is a completely different environment from Android. Think of it as installing a Windows game from a Linux distro. Instead from recovery, an app is injected into system which takes up the restore process when android boots up. Most things are automated, so you need not worry much.

    A quick word on SD card support...
    SD card support in v2.0 requires a Magisk module "ExSDCard Access Enabler", made by developer Romain. According to him, this module requires FUSE support on ROMs. FUSE is supported on some ROMs as a legacy feature as Android has moved away from FUSE to SDCARDFS. As such, the current implementation may or may not work based on your device and ROM.
    If it does not work for you, please wait until either the module developer rewrites the module :p or I find a different implementation :) Thanks for your patience.
    57
    Just posting this for everyone to know.

    An alpha build of Migrate 3.0 should be ready by the end of this month. The version should support Android 10, and will come with new features.

    In the main app, backup and all new features are fully operational. But the helper app is not ready yet. I am working on it. That should be ready by this month.

    Please hold on a little. Thank you for your support. ?
    50
    Changelog

    Version 4.0 [1st November 2020]

    # Compatibility fixes for Android 11
    # Add Message center to display important announcements.
    # Migrate helper now allows to retry failed apk installs
    # Add a "Migrate flasher only" backup option
    # Save app icons as png files
    # Show number of apps selected for backup in Extra backups screen
    # Keep screen on when calculating backup size
    # Save last state of selection in extras
    # Don't remount /data partition in system test
    # Many under the hood changes

    Version 3.1 [25thApril 2020]

    # Fix issue in v3.1 where restore would not be possible for apps with unsupported characters in the name.

    Version 3.1 [24thApril 2020]

    # Probable fix to data restore problems
    # Probable fix to helper crashing during loading apps
    # Record raw list of files in a backup
    # Many other minor improvements

    Use v3.1.1 above

    Version 3.0.3 [18thApril 2020]

    #. Slightly tweaked logo.
    #. Probable fix to No metadata found after flashing.

    Version 3.0.1 [9thApril 2020]

    #. Bug fixes
    #. Added translations

    Version 3.0 [20th March 2020]

    #. The app is rewritten in Kotlin
    #. Many new preferences have been added.
    #. Helper app is now available on Google Play.
    #. Many fixes in recovery. Support for SAR and Android 10.
    #. Added options for backup of app installer, font scale, adb state
    #. Set max zip size in preferences.
    #. Verification of zips after backup is complete.
    #. Many more changes and improvements…

    Version 2.1 [15th Jan]

    # Minor errors are now suppressed, but recorded in log.
    # Fix icon retention form previous backup
    # Fix wrong backup duration display.
    # Fixed a bug in error correction mechanism.
    # Probable fix for some apps not being backed up.
    # Fix for error 6 in TWRP for some locales.
    # Fixed a long standing wrong /data space calculation in TWRP.
    # Migrate helper no longer uninstalls app before installing.
    # Added Telegram group link!

    Version 2.0.1 [30th Dec] (christmas_beta)

    # Fixed a probable crash in Migrate helper (needs a magisk module)

    Version 2.0 [26th Dec] (christmas_beta)

    # Experimental SD card support (needs a magisk module)
    (please read the previous post)
    # Support for split apks
    # "Abort" option in Migrate helper
    # "Temporary disable" in Migrate helper
    # Apks are now unpacked under /data/local/tmp/migrate_cache
    (probable fix to some devices unable to install apks)
    # Each backup zip now has a busybox file as fallback

    Version 1.2 [12th Nov] (beta)

    # Completely avoid "dumpsys" to backup app permissions
    # Now app data in tar.gz is unpacked in /data/data
    (probable fix to "Operation not permitted" issues in Google Pixel and some other devices)

    Version 1.1.1 [10th Nov] (beta)

    v1.1 (skipping upload)

    # [New] Backup verification before zipping
    # Major code refactoring and under-the-hood changes
    # CANCEL button now kills the backup process
    # Fix to "set_progress()" in recovery
    # Probable fix to "Failed to change locale for db"
    # Probable fix to missing updater-script
    # Probable fix to some "Operation not permitted" issues
    # Remove illegal characters from backup name
    # "Share scripts" option should now work properly.

    v1.1.1

    # Fix to a no-closing-quote issue in helper

    Version 1.0.5 [7th Nov] (beta)
    # Probable fix to "android.os.TransactionTooLargeException"
    # Better in app protection to prevent zips from not being made
    # App version is now written in logs
    # App now targets Oreo instead of Pie to potentially avoid some crashes
    # Fixed unexpected ( in restore process

    Version 1.0.4 [5th Nov] (beta)
    # Improvements to logging
    # Ignore tar socket warnings
    # New update-binary to prevent TWRP error 3
    # Should fix a null String issue while reading backup data

    Version 1.0.3 (beta)
    # Fixed log sharing
    # Share script file in log
    # Blacklist Android system from system app backup list (prevents tar socket error)

    Version 1.0 (beta)
    # Initial release
    32
    Hi @SayantanRC ,
    actually I'm a TWRP developer and i'm working on a lot of devices and recently a bit of users starting to tell me that they can't flash their migrate backups, so I found myself investigating a little and at the end i found the problem: in the migrate zips that migrate app creates, there are some commands that use busybox that actually is deprecated and not more used in TWRP. Can you please use generic commands or make a choice to use toybox instead of busybox?
    For example this command:

    run_program("/sbin/busybox", "umount", "/data");

    Can be replaced from this one:

    unmount("/data");

    Or another option is to include a fully busybox set of binaries in the migrate zips so they will be independent. If you need some help or explanations contact me.

    P.s. i already sent also a mail to your play store supprot email.