createTarFork() Error while backup the data partition. - OnePlus 5T Questions & Answers

Hey guys here,
I've got a problem with my OnePlus 5T a while now. I used to make weekly nandroid backup (ye im rooted), but about 3 weeks ago the backup of the data partition via TWRP stopped working. Every other partition works, but data dont. Now i want to test a custom rom and wanna be able to switch back to oos without losing data.
I got the error
Code:
createTarFork() process ended with ERROR: 255
in twrp, so I pulled the recovery log via adb and i got this:
pastebin (dot) com/7Vvfx7sM
Sorry for the link, the ****ty outside link detection system found some links in my log
If I should provide more data tell me, I hope you can help me!
Greetings,
tooxo

This might be because of Parallel apps. See below links for more info.
krumbman0wnz said:
you need to turn off parallel apps, then go into a root explorer and delete
data/system/999
data/system_ce/999
data/misc/999
data/misc_ce/999
data/user/999
data/user_ce/999
This will allow you to do a backup, but you'll get "extractTarFork() process ended with ERROR=255' when trying to restore. So it feels kind useless, unless someone can figure this out.
Click to expand...
Click to collapse
Check the below links for more info.
https://forum.xda-developers.com/oneplus-5/help/error-255-twrp-t3739468
https://forum.xda-developers.com/oneplus-5/help/createtarfork-process-error255-t3727673

going to test out

I could resolve my nandroid /data backup error on my EMUI 8.0 Mediapad M5 device with those following steps:
1 - Use a correct TWRP implementation
TWRP need to access the uncyphered partition /data.
There no possibility to backup it, if TWRP does not implement deciphering user data partition.
2 - Remove all users except user 0 (the administrator)
You can verify that there is no unwanted users, looking at directory /data/user : the only subdirectory should be "0".
To remove the others users :
Remove the PrivateSpace if you have one (Settings > Security & Privacy > PrivateSpace, and tap on the garbage can).
Remove all the secondary users (Settings > Users & accounts > users, and tap on each users to delete them). Keep just the main administrator user.
On EMUI, remove all twins applications (Settings > Apps & Notifications > App Twin, and disable all twin apps).
On OxygenOS, remove all parallel apps (Settings > Apps > Parallel Apps, and disable all parallel apps).
On MIUI, remove all dual apps (Settings > Dual Apps, and disable all dual apps)
On others devices ... you must find all parameters that create those unwanted users.
If you are not able to get the correct settings to suppress those users, in last resort you can try this command : "pm remove-user user-no. (For example "pm remove-user 999").
3 - Do not forget to protect your backups by a password
This would be stupid to cipher your /data partition and keep backups of this partition unprotected.
These steps fixed the nandroid backup problem for /data partition on my Huawei Mediapad M5 device.
I post on this forum because I hope that this will be helpful for others devices owners.

Related

[HOWTO] restoring settings and apps using titanium backup

(btw, this is NOT my tutorial. this is from a thread from team whiskey's board saved through teh google cache. i am doing a straight copy and paste from that thread. if you have any questions, sorry i can't help you. it was last updated Nov 18, 2010. all i did was add links, otherwise this is unchanged.)
I have seen a lot of questions regarding proper backup techniques and restore techniques when getting ready to flash a new ROM. I know a lot of people see a full wipe update as unnecessary and cumbersome due to data loss, let me tell you though, a full wipe update is the most efficient and least problematic solution for ROM revisions.
This tutorial will help show you that it is indeed quite easy to backup and restore your system (and a lot less time consuming than you may think) prior to and following a new ROM installation.
Step 1 - Pre-requisites:
These are steps or apps that are going to be required to follow this tutorial to it's fullest.
1 - Rom Manager:
2 - Titanium Backup:
3 - Titanium Backup Pro License (unlocking the full featured, much faster version of the program):
Recommended way to go pro!
If you are like me and are unable to purchase the Pro license from the market, or want a streamlined way to have the pro version unlocked every time you flash, visit this site: http://matrixrewriter.com/android/ and select "Just the license $5.99" in the drop down box and follow the directions. You will receive an email from the developer that contains your license file with instructions on how to use it. The upside to this method, and the reason I recommend doing it this way is that when you load a new ROM, you only have to download Titanium backup and it automatically recognizes your pro status. In the case of Team Whiskey ROM's that include Titanium Backup, you have no additional steps to unlock pro, saving you time! Trust me, the Pro version is well worth the 6 bucks!
4 - LauncherPro:
This isn't a requirement per-se. However, using LauncherPro as your launcher creates an easy way to restore your launcher just the way it was before a wipe. LauncherPro is highly customizable and if you take the time to learn it, you will likely come to prefer it. If however you prefer a different launcher you will need to restore your launcher manually.
5 - Backup your contacts to Google: NOTE: Use the same Gmail account you use to log in to the Market with for this step.
This process is actually quite simple and saves some hassle later. You should not have to do this more than once as long as you save new contacts to your Google account. If you already use Google for your contact's you can skip this step.
A: On your phone, open your contacts list.
B: Press Menu > Import/Export > Export to SD card > Ok (Be sure and have an external sd card installed as it will place the file there)
C: Transfer the .vcf file created in step B to your PC
D: Login to your gmail account @ http://www.gmail.com
E: On the left hand side of the screen there is a link labeled: "Contacts", click it.
F: At the top of the screen there is a pull down menu labeled: "More actions", click it and select "import"
G: Click on the "Browse..." button and navigate to where you placed the .vcf file on your PC and select it.
H: Click "Import".
That's it. You have now backed up your contacts to Google's servers. When adding future contacts simply make sure and select Google as your "Save contact to" location to keep this list up to date.
Step 2 - The Backup Plan:
You have seen the Tweet stating that the new Kernel you want to try is almost ready, you saw on the forums that the new ROM is being uploaded and will be ready shortly, you gotta get ready for it!
1 - Create a nandroid backup of your entire system as it is now:
This step isn't really used in restoring your system after a wipe, but it is still essential in case you ever want to revert back to your old setup exactly as it was before the wipe. Please note that this WILL NOT back up your kernel, however, everything else is backed up with this process.
A: Open Rom Manager on your phone.
B: Ensure that you have the Latest Recovery flashed by looking at the top item on the main menu.
C: Click "Backup Current Rom"
D: Rename the file to whatever you like so you can know what the backup is later.
E: Press Ok. (If you are prompted for SU permission, say yes.)
F: Your phone will reboot into Recovery, if it boots into stock recovery (Blue text), press "Reinstall Packages" and the backup should start.
G: Leave your phone alone until the backup completes, interrupting it during this process could brick your phone.
H: When the backup completes your phone will reboot.
That's it. You now have a complete backup of your current system (excluding kernel) stored on your internal sdcard which can be used for restoration if you decide you want to revert back.
2 - Backup your apps and system data via Titanium Backup:
I backup all system data and user apps/data due to some system data being "safe" to restore and can be very convenient should you delete something you shouldn't have.
A: Open Titanium Backup
B: Press Menu > Batch.
C: Press "RUN" next to Backup all user apps + system data (4th item down).
D: Leave the default settings and press "Run the batch operation" at the top of the screen.
E: Allow the backup to run it's course, when it is done, Titanium Backup will go back to the main menu and will notify you that "Batch backup finished" in the notification bar.
Easy as that. All your system data and personal apps/data are now backed up and stored on your phone's internal sd card.
3 - Backup your LauncherPro settings and layout:
A: Press Menu > Preferences > Backup homescreen & settings > Yes
B: It will back everything up and than pop up "Success!" informing you of completion.
Now your Launcher layout and preferences are stored on your internal sd card.
4 - Backup your internal sd card to your pc:
This step is not required, nor do I recommend performing this step before every flash, but it is an important step to do every once in awhile. This will ensure that if you happen to have a mishap during flashing that wipes your internal sd card, you have a backup of your backups!
A: Connect your phone to your PC.
B: Pull down your notification bar and press the "USB connected" notification to mount your phones internal/external sd cards to your PC.
C: Create a folder anywhere you choose and name it whatever you like.
D: Select all the files stored on your internal sd card and copy them to the folder on your PC.
E: Un-mount the phone from your PC.
You have now backed up all your important apps/data and are ready to flash that ROM!
Step 3 - The Restoration:
You got your hands on that new ROM, you flashed it, and are now looking at a barren wasteland of a phone with none of your apps or customization. No worries, you have a plan! (This section is for after you have flashed the ROM and have waited the customary 15 minutes after first boot and than re-booted).
1 - Log in to your Google Account:
The easiest way to do this step is to simply log in to your Market app.
A: Open Android Market
B: Follow the on screen instructions to log in to your Google account.
C: After finishing the log in, allow your phone to sit for around 5 minutes to sync data. During this time, your phone is downloading and updating your contact list among other things.
D: After the waiting period, reboot your phone.
E: Your contact list is now populated with all your contacts, you may want to enter the Contacts app and select: Menu > More > Display Options to set only Google contacts or whatever you like.
Part 1 Complete.
2 - Restore with Titanium Backup:
Part A - Restoring User Apps/data:
A: Open Titanium Backup
B: Press Menu > Batch
C: Scroll down a little until you see the "RUN" in blue.
D: Press the "RUN" button next to: "Restore missing apps with data" (DO NOT RESTORE SYSTEM DATA)
E: All user apps will be selected by default, if you do not wish to include some apps in the restore, un-check them from the list.
D: Press "Run the batch operation" at the top of the screen.
F: Allow the process to complete, at which point you will back at the main screen, immediately proceed to part B:
Part B - Restoring Select System Data:
This step is optional and can create some issues if done incorrectly. (Even if done correctly, it can sometimes cause issues.)
A: From the main screen of Titanium Backup press the button labeled: Backup/Restore at the top of the screen.
B: You will see a list of all the User Apps, System Apps, and System Data that are currently present on your phone. (The bottom of the list will have grayed out and striked items that are representative of data/apps that Titanium has backups of, but are not currently installed on the phone)
C: You will see different colors: RED - System App or Data (You Never want to restore these items); WHITE - User App/Data (These are almost always fine to restore, since they are not system dependent); GREEN - System data that is relatively safe to restore. I cannot say whether all the "Green" items are safe, but the Items I restore after a wipe are:
[BOOKMARKS]Browser - This will restore your bookmarks in the web browser.
[CALENDAR]Calendar Storage - This will restore your calendar appointments if they aren't saved to your Google Calendar.
[USER DICT] - This will restore the user learned words stored in your keyboards.
[SMS/MMS/APN]Dialar Storage & [SMS/MMS PREFS]Messaging - These will restore your messaging settings and conversations.
Wi-Fi Access Points - This will restore your "memorized" Wi-Fi access points, including password and log in credentials.
D: Feel free to play around with these and restore what "green" items you wish. But do so with caution and I recommend doing one at a time to ensure that you don't run into issues. Once you know what one's play nice, it will be a breeze to go through them in the future and restore the ones you want.
E:Restore an item by short pressing it. It will pop up a menu, and you select "Restore".
F: Reboot your phone!
Part 2 Complete.
3 - Restore LauncherPro:
A: From the Home screen press Menu > Preferences > Restore backup > Yes
B: Wait for it to finish.
Part 3 Complete.
At this point, your system should be almost exactly as it was before you flashed your new ROM. There are only a handful of things to do now.
4 - Restore system settings that can't be backed up:
Navigate to the Settings menu and restore any custom settings you may use, some of these settings may be: (I will give examples based on what I usually set, you will know what settings you want to set)
- Wireless and network > Mobile Networks > Network Mode
- Call Settings > All Calls > Call status tones
- Sound > Volume of Media, System, Notification, Ringer
- Sound > Voice and Notification Ringtone
- Sound > Feedback Settings
- Display > Font Style
- Display > Screen timeout
Once done with those minor settings, you're set! This is not an all encompassing tutorial for every program or setting out there, but it should have you back up and running in a system that is close to 100% exactly how you were before the wipe and in very little time (especially once you have some practice!). Hope you find this helpful and if you have any suggestions that or information you think I should add, please feel free to post it or shoot me a PM! (I will be adding pictures for some of these steps at a later date)
Backup and Restore Tutorial
Thank You So Much its really very Helpful and very easy way explained i m really appreciate your efforts and help Thanks
Thanks a lot. This was exactly what I was looking for!
Whoa old thread with old but useful info. However, there are a couple easier ways to do things.
1.
can't you just backup your contacts to google by simply going to contacts > menu > merge with google?
2.
another way to backup user apps with data in case you don't have TB pro is using mybackup root.
it only shows user apps so that makes things a tad easier.
mybackup roots also saves your sms and mms, but it has been glitchy lately because i can't delete those conversations that i restored... not sure why.. it worked before so I say avoid doing that option for now.
3.
they also have the option to backup and restore homescreen for your stock launcher (TW). if you use a different launchers, those usually have that option built in. ICS launchers definitely have those.
4.
MBR also backups settings, but of course only do this if the ROMs are on the same builds.
How long does it take to restore an app with Titanium Backup?
I am trying to restore camera from titanium backup. I did restore app with data. but it seems keep restoring App+Data without ending. how should I do?
Hey Ctkatz,
Thanks for the post. I really appreciate it!
Thanks it answers some of the most common confusions I am sure many others would have including myself.
Sent from my GT-I9100 using xda premium
Must have been very bored that day lol
Sent from my SGH-T989 using xda premium
thanks
Thanks:good::laugh:
hi
I have nova launcher and Titanium Backup ★ root pro.
and I got 2 same model tablets [p6800]
I would like to know how to restore all the widgets on other tablet?
I would like to have 2 tablets as same
You can turn titanium backup into a..zip file that can be flashed along with the new rom.. It's extremely handy because the app is already there after first boot
Sent from my SGH-T989 using xda premium
rymanh said:
You can turn titanium backup into a..zip file that can be flashed along with the new rom.. It's extremely handy because the app is already there after first boot
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
hello. Not reAlly a noob but also not a pro. Can u explain how I can Go about turning my Titanium backup file to a .zip and then flASh to my t999v?
⌣»̶·̵̭̌·̵̭̌✽̤̈̊Ŧђɑ̤̥̈̊п̥̥̲̣̣̣kƨ̣̣̣̇̇̇̇✽̤̈̊·̵̭̌·̵̭̌«̶⌣
done google synch. of calander events but its not restoring all the events.. even titanium backup is not restoring the events as i've moved from ginger bread to jelly bean... please help !!!
ashburton said:
hello. Not reAlly a noob but also not a pro. Can u explain how I can Go about turning my Titanium backup file to a .zip and then flASh to my t999v?
⌣»̶·̵̭̌·̵̭̌✽̤̈̊Ŧђɑ̤̥̈̊п̥̥̲̣̣̣kƨ̣̣̣̇̇̇̇✽̤̈̊·̵̭̌·̵̭̌«̶⌣
Click to expand...
Click to collapse
Hey sorry it took soo long to reply.. If you have the pro version. Press munu and scroll down and select "create update zip" then follow the directions.. I hope I was still able to help you
Problems!!!
Thank You So Much its really very Helpful but is not working!
After an update for my Samsung GT9100 Sii (ICS 4.0.1 -> 4.0.4) i needed again root access. So did that as i did before en after that all most all my app's where gone ...
I reinstalled titanium and followed your instructions ... and now i comes ...
2 - Restore with Titanium Backup:
Part A - Restoring User Apps/data:
A: Open Titanium Backup
B: Press Menu > Batch
C: Scroll down a little until you see the "RUN" in blue.
D: Press the "RUN" button next to: "Restore missing apps with data" (DO NOT RESTORE SYSTEM DATA)
E: All user apps will be selected by default, if you do not wish to include some apps in the restore, un-check them from the list.
D: Press "Run the batch operation" at the top of the screen.
F: Allow the process to complete ... restoring 0/348 app's ... nothing happens?
What is going wrong?
Can somebody help me?
Would it be better to reset my to de factory setting and then restoring ... i don't know anymore ... tried everyting
Tnx.
improper explanation
nobody explains anything well on this site.
azidogen said:
nobody explains anything well on this site.
Click to expand...
Click to collapse
Others and I understand just fine, maybe it's not the explanation that's not well.
if i am going from omega 7.3 to 8 in note 2 i have back app + system data in 7.3 and now in 8 how to actually restore everything? i dont really under this thread and the wiki. i know red is system file, green is app. but can i restore everything one shot or ?
shawnhalu said:
if i am going from omega 7.3 to 8 in note 2 i have back app + system data in 7.3 and now in 8 how to actually restore everything? i dont really under this thread and the wiki. i know red is system file, green is app. but can i restore everything one shot or ?
Click to expand...
Click to collapse
No. Don't restore system data or app data. It causes issues.
Sent from my SAMSUNG-SGH-T989 using xda premium
sirdowski said:
No. Don't restore system data or app data. It causes issues.
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
thats mean when i click the batch restore -> run -> ONLY check those white, green color? all red color uncheck?
ps. how can i restore the folder and grouping of apps when in previous rom i already move properly and backup. coz i dont know what path it is under.

[GUIDE] How to use Titanium backup - Basic steps

Below is a thread that I original started in the Desire section.... Thought it might help some One-X users who are starting out.
Here is the official user manual as written by the app developer: http://www.titaniumtrack.com/kb/titanium-backup-kb/titanium-backup-user-guide.html
Hi, Call me blind but i could not find any guides on XDA...strange soo maybe someone will correct me (my wife does it all the time!). As you can see by the way i have uploaded the photo screen shots...I'm also a No0b but trying to learn and share as well.
Here is my attempt at a No0b's guide to using basic Titanium features of backing up and restoring. Let's face it this program does so many things but me, for one, I just use the basic functions, so if there are some "Super users" out there please come forward and share your knowledge!
Getting started, I'm using the PRO version so if you are only using the FREE version your guide may be different.
From the user "Preferences" (Menu/Preferences) make sure that you change the "Max backup history to more than 1" this will allow you to have more than one back up version before the app overwrites the previous backup.... useful if you upgrade an app then realise that it was not such a good idea.
Another tip is that if you have a certain app that you want to retain the backup and user data for then you can simple go the the main app window, select the "Backup / Restore" button then tap on the app that you want to permanently keep a back up of, then tap on one of the backups, then select "Protect this backup". now this version of your back up will always be kept and never over written.
BACKING UP
Lets assume that you have installed Titanium Back up (PRO) and that you now need to make your first system and user apps back up. Then open the app and then press the icon at the top right of screen which looks like a page with a tick mark on it, then choose "Backup all user data + system data" from the list and hit the "RUN" button to the left of it. (Image #1). For backing up you are now done. (Note that if you are a frequent ROM flasher then you might only want to ever back up the USER APPS and data as restoring System apps across ROM is the main culprit of errors from using TItanium Backup. If you decide only to make user app back up then follow this by selecting the "Backup all system data" and on the next screen select the "Deselect all" button, next go through the list of system apps and select only the green coloured items (see below the list of system apps/settings that I recommend you ONLY restore across ROMS).
RESTORING after ROM change
After you have done a full wipe and then installed a new ROM you now want to RESTORE your applications and all of their user data, things like settings and user information. Titanium back up is an excellent tool for this but you MUST be careful not to restore any SYSTEM apps or data otherwise you can run in to trouble and it will cause many "FC's". According the the Official TB user guide: Again, if you’re restoring them from a different phone/ROM, enable the “System data migration” option (found under Menu/Preferences and half way down the screen list to the "Restoration Settings" section).
Then open the app and then press the icon at the top right of screen which looks like a page with a tick mark on it, then select BATCH and then scroll down to the RESTORE section and select "Restore missing apps with data". by default the "App+Data" will be checked, leave this option as is for this BATCH task (Image #3). Or you can review the list and manually Deselect one by one any apps that you did not want to restore on this occasion.
Or you can review the list and manually Deselect one by one any apps that you did not want to restore on this occasion. Or if you only want to restore a few of the apps then "Deselect All" and then manually add each app that you want to restore when you have completed your selections then hit the "Run the batch operation" button at the top. (Image #4).
It will take some time for the BATCH to run and re install all of your user installed apps. after the batch has completed then you are ready to install just a few of the other GREEN coloured items from the main menu.
This time from the main application window select the top middle "Backup / Restore" button. (Image #5). Now BE CAREFUL here, i ONLY RESTORE the following options and have never had any problems HOWEVER if you try to restore Accounts and Settings and some other green coloured items you can run in to trouble with FC's....you have been warned but test this out for yourself and report back if you have any success:
What to RESTORE safely:
Bluetooth pairings (User data only)
[Calandar] (User data only)
[Alarms] Clock (User data only)
[Desktop] HTC Sense (User data only) - NOTE it must be the same version as the previous ROM check the currently installed version against your last back up version number, if they match then you can restore and it will put back ALL your old desktop short cuts and screens (but NOT any of your widgets)....very handy one. (Image #12 & #13)
[Bookmarks] (User data only)
[User Dict HTC] (User data only)
[User Dict] (User data only)
Wi-Fi Access Points (User data only)
What NOT to Restore
Accounts
Application Widgets
[Contacts/Cal...]
Country, Language, Time zone
[SMS/MMS/APN...]
[E-Mail Accounts]
[Playlists]
[SMS/MMS Pref....]
[Voicemail]
[Wallpaper/Se...]
[Settings/Blu...]
You will now need to REBOOT your device for the system items to take effect.
Now a little tip that i use, as you will be updating your apps and settings will change almost daily why not set up the Schedule feature so that your apps and also your changed settings data are all backed up every night?
Here is how:
Open the application then select the top right button "Schedules" (Images #22-#24)
now enable the first option and select "Redo backups for modified data" select every day and also change the time to during the nighttime or other suitable time for you when you are not going to be using your phone.
Select the second option and change it to "Backup all new apps & newer versions" and again select the best time for yourself.
That's it, you are done so now you can rest assured that every night your current apps and user data will be backed up and ready for the next days flashing of new ROM's.
And one final tip that i use.........when setting up a ROM from scratch, do not sign in to the Google account until AFTER you have RESTORED all the user Apps with Titanium as the Market will try to restore all your apps from your Market user history, which is OK but will conflict with your BATCH RESTORE using TItanium Backup.
YOu should also make a copy of your installed version of Titanium Backup App to allow you to restore it on the new ROM without having to go to the Market for the reason detailed above. (Folder: /data/app/com.keramidas.TitaniumBackup-1.apk)
enjoy.
Sent witH desire from One X
Thanks for tutorial :thumbup: now some options are more clear
Sent from HOX with ARHD 13
Just wanted to say thank you for these instructions. They helped and made it a very easy process for me. :good:
For moderators:
In my opinion, to be more useful, the guide must be moved to Q&A
http://forum.xda-developers.com/showthread.php?t=1480343
One thread seems enough huh.

how to fix twrp Backup & restore problem?

createTarFork() process ended with ERROR=255
First, make sure you disable finger print and change security to swipe or none. Also, make sure you are not encrypting your backup. I don't think that feature is working, at least it's not for me.
Download terminal emulator, then type
su
pm remove-user 999
That will delete all 999 folders which causes issues with TWRP, its a parallel app issues, so as long as u don't use parallel apps u r fine
the solution to this was to boot to your previous rom that u have made nandroid backup with and then setting up the same password/pin in settings > security. When you then boot into twrp it will ask you for the pin/password to decrypt your data partition and then you can flash the nandroid backup(you have to have the same password there). here it is obvious that you are trying to flash data partition that uses different encryption password (in case of stock rom there is non) and this obviously wont happen.
I sometimes have this issue if the TWRP backup gets stuck at the end of backing up /data. The only solution for me is fo abort and start the backup again. After 2 to 5 times it works.

twrp error 255 when I trying to backup?

I am trying to take a full backup for mi6 using twrp but I am facing 255 error?!
is there any way to make a full backup?
Regarding
ialazmi said:
I am trying to take a full backup for mi6 using twrp but I am facing 255 error?!
is there any way to make a full backup?
Regarding
Click to expand...
Click to collapse
Needing a solutiong for this error as well.
for me deleting all secondary user profiles worked.
1. delete all dual apps (keep one active though)
2. delete user 999 (you'll find a youtube tutorial for that) - you need a rooted device for that
3. disable multiple users (on the very bottom of the developers options)
4. disable all corporate profiles
now backing up data should work fine again. i do not know another workaround so far - sorry!

Keeping Watch Connection And Samsung Pay Across ROMs

This is currently how i keep my Galaxy Active 2 working - connected and Samsung Pay working - across ROM flashes without having to reset it every time, because resetting sucks
Please note: At time of writing theres no known way to keep BP Monitor calibration data (ive tried backing up and restoring the relevant database), so you will lose that
Prerequisites:
Apps:
Android ID Changer: I use this (Free) https://play.google.com/store/apps/details?id=com.silverlab.app.deviceidchanger.free
Migrate (Free Backup App) -
Main app: https://play.google.com/store/apps/details?id=balti.migrate
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
Steps:
Install all the above on the ROM you're currently on
Use MyAPK (set MyAPK to save somewhere easily navigable) to make a backup of the following apks:
Android ID Changer
Migrate Flasher Module
Migrate Helper Module
Store them safely (i always use PC, as well as sdcard) as you'll want to use these before restoring your apps, and later to restore your apps
Important: Open Magisk Manager and set MagiskHide for all Samsung Wearables packages (Gear/Samsung/Watch/Watch Plugins), you do not have to select all sub-items under the main packages, just select the main packages
To prepare for a new ROM:
This largely only has to be done once....and then reused on subsequent new ROM flashes. I do things to make life easier for myself as in a bad week i can be testing 3 ROMS...
Note: The only steps you might want to do again are make a new Migrate backup (for new apps), and backup /data/adb, if you MagiskHide further apps in future
Steps:
Run Android ID Changer, copy Android ID to a text file or email (i store mine in both)
With a root capable file manager, or in custom recovery, backup /data/adb/magisk.db to a safe place (i always use PC, as well as sdcard))
Important Note: This assumes as mentioned above you have already used Magisk Manager to MagiskHide all Samsung Wearables packages (Gear/Samsung/Watch/Watch Plugins)
Backup your apps and data with Migrate
Note: for most apps you want to tick all 3 boxes per app, but DO NOTbackup up App Data (middle column for both) of:
Samsung Health
Samsung Health Monitor
As we would have to wipe this anyway after ROM flash to get them working. Save yourself the drama and untick them in Migrate. Migrate is smart enough that it stores your selections between backups, so if you make a next Migrate backup it will automatically leave these de-selected in future backups.
Your Migrate backup will be in /sdcard/Migrate, i recommend backing this up to PC as well
On the New ROM:
After a new ROM and Magisk flash:
Setup ROM
Copy Android ID changer from wherever you backed it up, install and open it, copy and paste your original Android ID into the middle (Edit) field, then click Apply
Reboot the device
Enable MagiskHide (Don't hide Magisk Manager yet)
Test for SafetyNet, and if need be use whatever method is preferred for your ROM to achieve SafetyNet
Copy magisk.db from wherever you backed it up back to device
With a root enabled file manager (or from custom recovery), copy magisk.db to /data/adb
Reboot device (Do not skip this trying to be clever)
Open Magisk Manager, it should hopefully not complain that you've just dumped magisk.db back (Note: you will not see the list of MagiskHidden apps, as they are of course not installed yet, but MagiskHide now already knows to block root detection to them when you do install them - if Samsung Pay even gets a whiff of root, it wont work and you will have to reset some, if not all Gear/Watch Plugins, and reset your watch and start from scratch)
Hide Magisk App via Magisk Manager > Settings > Hide The Magisk App, name it anything but Magisk Manager, i call mine App
Copy the following apps from wherever you backed them up to device, and install them:
Migrate Flasher Module
Migrate Helper Module
Run Migrate Flasher
Descend into the backup folder (listed by date & time), and select all the zips inside it, and flash them (Of course if you moved Migrate folder off the device, restore it to /sdcard first)
At the end open Migrate Helper (which is already installed) and restore all the apps you wish - of course for our purposes, we want all the Samsung ones.... Note: Migrate will automatically select all backed up apps and data
At the finish of Migrate restore, leave the default options selected, which will remove the Migrate Helper, and reboot
On phone, open Gear App and press Connect
On watch, you may need to toggle BlueTooth off, and back on
You may need scan a few times and perhaps toggle bluetooth off and on, but it will give you the usual pairing prompt, both on the phone, and the watch, pair, and shortly you will have the watch reconnected, and Samsung Pay intact​​​Next steps:
Open Samsung Health and sign in and restore
Open Samsung Health Monitor, and sign in
Set up ECG as normal
Re-Calibrate the Blood pressure monitor as normal
On any new ROM from now on, you can:
Make a new Migrate Backup, to include any new apps
Make a backup of /data/adb/magisk.db if you MagiskHide any new apps
Then refer to the On The New ROM steps above....
Please let me know if you find an error or issue folks
73sydney said:
This is currently how i keep my Galaxy Active 2 working - connected and Samsung Pay working - across ROM flashes without having to reset it every time, because resetting sucks
Please note: At time of writing theres no known way to keep BP Monitor calibration data (ive tried backing up and restoring the relevant database), so you will lose that
Prerequisites:
Apps:
Android ID Changer: I use this (Free) https://play.google.com/store/apps/details?id=com.silverlab.app.deviceidchanger.free
Migrate (Free Backup App) -
Main app: https://play.google.com/store/apps/details?id=balti.migrate
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
Steps:
Install all the above on the ROM you're currently on
Use MyAPK (set MyAPK to save somewhere easily navigable) to make a backup of the following apks:
Android ID Changer
Migrate Flasher Module
Migrate Helper Module
Store them safely (i always use PC, as well as sdcard) as you'll want to use these before restoring your apps, and later to restore your apps
Important: Open Magisk Manager and set MagiskHide for all Samsung Wearables packages (Gear/Samsung/Watch/Watch Plugins), you do not have to select all sub-items under the main packages, just select the main packages
To prepare for a new ROM:
This largely only has to be done once....and then reused on subsequent new ROM flashes. I do things to make life easier for myself as in a bad week i can be testing 3 ROMS...
Note: The only steps you might want to do again are make a new Migrate backup (for new apps), and backup /data/adb, if you MagiskHide further apps in future
Steps:
Run Android ID Changer, copy Android ID to a text file or email (i store mine in both)
With a root capable file manager, or in custom recovery, backup /data/adb/magisk.db to a safe place (i always use PC, as well as sdcard))
Important Note: This assumes as mentioned above you have already used Magisk Manager to MagiskHide all Samsung Wearables packages (Gear/Samsung/Watch/Watch Plugins)
Backup your apps and data with Migrate
Note: for most apps you want to tick all 3 boxes per app, but DO NOTbackup up App Data (middle column for both) of:
Samsung Health
Samsung Health Monitor
As we would have to wipe this anyway after ROM flash to get them working. Save yourself the drama and untick them in Migrate. Migrate is smart enough that it stores your selections between backups, so if you make a next Migrate backup it will automatically leave these de-selected in future backups.
Your Migrate backup will be in /sdcard/Migrate, i recommend backing this up to PC as well
On the New ROM:
After a new ROM and Magisk flash:
Setup ROM
Copy Android ID changer from wherever you backed it up, install and open it, copy and paste your original Android ID into the middle (Edit) field, then click Apply
Reboot the device
Enable MagiskHide (Don't hide Magisk Manager yet)
Test for SafetyNet, and if need be use whatever method is preferred for your ROM to achieve SafetyNet
Copy magisk.db from wherever you backed it up back to device
With a root enabled file manager (or from custom recovery), copy magisk.db to /data/adb
Reboot device (Do not skip this trying to be clever)
Open Magisk Manager, it should hopefully not complain that you've just dumped magisk.db back (Note: you will not see the list of MagiskHidden apps, as they are of course not installed yet, but MagiskHide now already knows to block root detection to them when you do install them - if Samsung Pay even gets a whiff of root, it wont work and you will have to reset some, if not all Gear/Watch Plugins, and reset your watch and start from scratch)
Hide Magisk App via Magisk Manager > Settings > Hide The Magisk App, name it anything but Magisk Manager, i call mine App
Copy the following apps from wherever you backed them up to device, and install them:
Migrate Flasher Module
Migrate Helper Module
Run Migrate Flasher
Descend into the backup folder (listed by date & time), and select all the zips inside it, and flash them (Of course if you moved Migrate folder off the device, restore it to /sdcard first)
At the end open Migrate Helper (which is already installed) and restore all the apps you wish - of course for our purposes, we want all the Samsung ones.... Note: Migrate will automatically select all backed up apps and data
At the finish of Migrate restore, leave the default options selected, which will remove the Migrate Helper, and reboot
On phone, open Gear App and press Connect
On watch, you may need to toggle BlueTooth off, and back on
You may need scan a few times and perhaps toggle bluetooth off and on, but it will give you the usual pairing prompt, both on the phone, and the watch, pair, and shortly you will have the watch reconnected, and Samsung Pay intact​​​Next steps:
Open Samsung Health and sign in and restore
Open Samsung Health Monitor, and sign in
Set up ECG as normal
Re-Calibrate the Blood pressure monitor as normal
On any new ROM from now on, you can:
Make a new Migrate Backup, to include any new apps
Make a backup of /data/adb/magisk.db if you MagiskHide any new apps
Then refer to the On The New ROM steps above....
Please let me know if you find an error or issue folks
Click to expand...
Click to collapse
My God! That's a lot of steps.
But you've written them down quite clearly.
This will certainly be helpful for those that like to flash ROMs frequently but don't want the hassle of setting up the watch again everytime you flash a new ROM on the phone. And of course, keeping Samsung Pay working successfully with root, while jumping across ROMs is quite impressive.
enigmaamit said:
My God! That's a lot of steps.
But you've written them down quite clearly.
This will certainly be helpful for those that like to flash ROMs frequently but don't want the hassle of setting up the watch again everytime you flash a new ROM on the phone. And of course, keeping Samsung Pay working successfully with root, while jumping across ROMs is quite impressive.
Click to expand...
Click to collapse
Once you have it set up the process is rather simple and i did have some help with the suggestion it might be tied to the Android ID....so i have to give @Dante63 some credit here (https://forum.xda-developers.com/t/galaxy-watch-features-ecg-bp.4051141/post-84652975)
Hehe If you want to see steps, and lots of words, visit the "My Magisk method for Google Pay SQLite Fix (Tested On P/Q/R)" link in my signature
Luckily at the moment that module isnt needed, but it had its fair share of downloads (23,000+) until recently when Google changed something on the backend again, and you can use Google Pay without it on a rooted device
Honest question: is SHealth so retarded that it doesn't save any backup in cloud, so that it could be restored afterwards?
w41ru5 said:
Honest question: is SHealth so retarded that it doesn't save any backup in cloud, so that it could be restored afterwards?
Click to expand...
Click to collapse
Samsung Health Does - All your steps etc are safe and can be restored after signing back in
Samsung Health Monitor (which calibrates and tests ECG/BP) does not.....

Categories

Resources