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

Is Migrate backup and restore working without any errors?


  • Total voters
    734
Search This thread

SayantanRC

Senior Member
Jan 26, 2016
387
1,551
133
Kharagpur
I read the description and instantly got hooked. Lol.

However, the app keeps crashing on me. Using a Pocophone F1.

Here's the log. Really want to try this out.

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion;
at jl.b:)[email protected]@14.3.67 (100400-216465562):3)
at jk.a:)[email protected]@14.3.67 (100400-216465562):3)
at jm.a:)[email protected]@14.3.67 (100400-216465562):18)
at com.google.android.gms.ads.internal.util.ap.a:)[email protected]@14.3.67 (100400-216465562):17)
at ip.a:)[email protected]@14.3.67 (100400-216465562):19)
at ip.run:)[email protected]@14.3.67 (100400-216465562):8)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.ProtocolVersion" on path: DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/00000007/AdsDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000007/AdsDynamite.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at ac.loadClass:)[email protected]@14.3.67 (100400-216465562):4)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 6 more

Thanks a lot.. I'll check it.
 

kartikb

Senior Member
Jun 30, 2010
384
41
48
Auckland
Hi, on my Pixel XL, it only creates zip 2 and leaves everything else in the folder instead of creating zip 1. I've already sent you log files via email. Hope it helps identify the issue.

I've also tried this on my Mi A1 running Nitrogen OS. App starts backing up and crashes without any notice, doesn't create any log either. It does tend to backup all files even after crash but doesn't complete creating a zip file.

So far no luck getting this app to work successfully.

Any help would be appreciated.

Thanks
 

SayantanRC

Senior Member
Jan 26, 2016
387
1,551
133
Kharagpur
Hi, on my Pixel XL, it only creates zip 2 and leaves everything else in the folder instead of creating zip 1. I've already sent you log files via email. Hope it helps identify the issue.

I've also tried this on my Mi A1 running Nitrogen OS. App starts backing up and crashes without any notice, doesn't create any log either. It does tend to backup all files even after crash but doesn't complete creating a zip file.

So far no luck getting this app to work successfully.

Any help would be appreciated.

Thanks

I am still investigating the issue of zip file not being created. I will check your log report. Thanks.
 

rodolphe06

Senior Member
Jan 25, 2016
894
325
0
Hi,
thanks for apk.
Backup seems fine but when restoring after setup of new rom (boot after clean flash, magisk, opengapps but not yet finished to setup ((no wifi))) i got error 7 with:
set_progress() expects 1 arg not 2.

Note that helper apk was not installed...
 

nicohak

Senior Member
Sep 21, 2015
1,365
673
143
Backup created but got error on restore
 

Attachments

  • Screenshot_2018-11-06-08-25-39.png
    Screenshot_2018-11-06-08-25-39.png
    199.5 KB · Views: 1,110

SayantanRC

Senior Member
Jan 26, 2016
387
1,551
133
Kharagpur
Normally i flash rom + gapps. Boot up the phone & do the necessary setup. Then flash magisk. Is it okay to flash magisk & backup file together. Or it's okay after i finish flashing everything i need .

The order does not matter. The helper app on system needs the ROM to be rooted. Only after you flash Magisk, the helper app will work properly.

Getting this wiered error

INIT[1/2]: android.os.TransactionTooLargeException: data parcel size 1627552 bytes

Probable fix coming with version 1.0.5 very soon.

Hi,
thanks for apk.
Backup seems fine but when restoring after setup of new rom (boot after clean flash, magisk, opengapps but not yet finished to setup ((no wifi))) i got error 7 with:
set_progress() expects 1 arg not 2.

Note that helper apk was not installed...

Backup created but got error on restore

Would you please like to open the backup zip, and upload the updater-script here? It would be really helpful.
 
  • Like
Reactions: rodolphe06

kos25k

Senior Member
Nov 15, 2012
3,094
427
223
wifi networks (like pairs app does) but working on different Android version (Oreo to Pie and versa) would be perfect ?
 

blackwind.

Member
Jan 1, 2016
43
12
38
This is almost exactly what I've been looking for. Hope to see support for all remaining settings (including Wi-Fi, Bluetooth, and accounts), external SD, and custom paths (I always want everything in `/data/local` copied to my new phone, for example) in a future release.
 

Jaheen

Senior Member
Jul 25, 2013
490
143
0
Chennai
Peace my brother! We are so happy to see an often useful app.

I would like to report this error, so it would be useful for you.

I got this below error when i tried to perform backup.

I'm on the latest version on 11/05/18.
 

Attachments

  • Screenshot_20181107-063629.jpg
    Screenshot_20181107-063629.jpg
    134.2 KB · Views: 893

kalawy

Senior Member
May 18, 2013
189
34
48
28
alexandria
briliant execution of the idea!
it would be great it in included system apps
sometimes i install an app to system -launcher- i want that to be done out of the box...
maybe install system apps as a magisk module.. that would be next-gen backup :victory:

also.. while you at it .. why not make a section to backup every app indvidually - yes like titanium backup - and then add them to zip even if it's not installed on current rom

i know i know.. titanium has that feature ..
it's been broken a while ago and the devs seem to abandon it and even abandoned restoring apps to system.. the app is on the end of it's dev cycle..
to me this app looks promising to be what titanium can't be right now
 
Last edited:
  • Like
Reactions: SayantanRC

Top Liked Posts

  • There are no posts matching your filters.
  • 570
    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.
    133
    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.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone