[TUT] Keep your userdata/settings/apps when using HTCDev.com Unlock! - AT&T, Rogers HTC One X, Telstra One XL

This will allow you to easily restore all your apps and data after unlock. To start you must be rooted and have working ADB. You also must have atleast 3GB free on your sd card.
Steps:
1. Download attached zip file named dd.zip
2. Extract the zip and copy the dd file to your adb folder
3. Hook your phone up to ADB (all commands from here on out are sent w/o quotes)
4. "adb push dd /data/local/tmp"
5. "adb shell"
6. "su"
7. "cd /data/local/tmp"
8. "chmod 4755 dd"
9. "dd if=/dev/block/mmcblk0p35 of=/sdcard/data.img" This will take awhile, don't touch your phone. When it is finished, it will say records in, records out and some other stuff
10. Mount the phone to your computer and copy the data.img from your sd card to your computer
11. Unlock
12. After the unlock, if the data.img is no longer on your SD card, put it back.
13. Install CWM if you haven't
14. Flash the restore.zip that is attached here in recovery. When it is finished, your data will be restored. Big thanks to jcjcc for the flashable
Think of this like a partial nandroid backup & restore.

Would have help if I saw this before I unlocked lol. I was like f**k where did everything go?

Thanks for helping me earlier with this. Only two of my apps were not restored when I checked, but everyone may vary. I used titanium to restore app only, not app+data since it seem data was restored properly using the above method.
This is great since it restores everything like settings too, not just user apps.

i guess that's cool, but doesn't everyone make backups before they update?

V DidDy 210 said:
i guess that's cool, but doesn't everyone make backups before they update?
Click to expand...
Click to collapse
You'd think so, but I've seen a ton of people in the unlock threads complaining that their devices were wiped. Fools.
Thanks OP for the method. It looks like you're pulling the data partition in its entirety, saving it to computer, then restoring. Do you think it's a better/safer/more complete way than just using TiBu? What advantage would this method have over TiBu?

Some of the data isn't restoring properly because you're restoring the partition while the phone is running (and trying to read/write to it at the same time).
Put your .img file at /sdcard/data.img and run this script in CWM recovery to properly restore your data.img.
OP, you can add this to the first post if you'd like.

jcjcc said:
Some of the data isn't restoring properly because you're restoring the partition while the phone is running (and trying to read/write to it at the same time).
Put your .img file at /sdcard/data.img and run this script in CWM recovery to properly restore your data.img.
OP, you can add this to the first post if you'd like.
Click to expand...
Click to collapse
Cwm wasn't working when I posted this originally. The intent was to restore in cwm but it had no adb access and updater scripts were borked.
Sent from my ADR6425LVW using XDA

Thanks for your work!

con247 said:
Cwm wasn't working when I posted this originally. The intent was to restore in cwm but it had no adb access and updater scripts were borked.
Sent from my ADR6425LVW using XDA
Click to expand...
Click to collapse
Yeah, there's no adb access, but updater scripts work (at least now). Thanks for the post, by the way! Everything restored 100% perfectly.

jcjcc said:
Yeah, there's no adb access, but updater scripts work (at least now). Thanks for the post, by the way! Everything restored 100% perfectly.
Click to expand...
Click to collapse
Thanks for the flashable. I added it to the OP w/ credit to you. I also removed the [WIP] and [PoC] tags from the thread since it now works 100%

V DidDy 210 said:
i guess that's cool, but doesn't everyone make backups before they update?
Click to expand...
Click to collapse
This backs up an identical 100% of your system: settings, data, apps, any mods you did, etc you cannot do that with any of the current normal back up.

Worked flawlessly for me, and no doubt saved me a huge hassle. Thanks!

How to root, unlock, upgrade to 1.85, and keep all your data:
Take a backup of your user data with these instructions. Then unlock (user data wiped), and relock in order to upgrade. Then install the 1.85 RUU (user data wiped again). Unlock again, use the same token (user data wiped yet again). Install CWM and then root through CWM. Finally, restore your user data according to the thread.
You'll be on 1.85, the latest, rooted and unlocked, with all your data, apps, and settings 100% intact.

jcjcc said:
How to root, unlock, upgrade to 1.85, and keep all your data:
Take a backup of your user data with these instructions. Then unlock (user data wiped), and relock in order to upgrade. Then install the 1.85 RUU (user data wiped again). Unlock again, use the same token (user data wiped yet again). Install CWM and then root through CWM. Finally, restore your user data according to the thread.
You'll be on 1.85, the latest, rooted and unlocked, with all your data, apps, and settings 100% intact.
Click to expand...
Click to collapse
Did just this today, worked perfectly. Big thanks from me for this thread.
Sent from my HTC One X using XDA

will it work with touch recovery from DG

i can confirm this works with TWRP touch recovery!! Just did it tonight

How long is this suppose to sit at the boot animation? its just sitting here and hasnt budged from it for a good 5 minutes after restoring. kinda seems like its bootlooped. the first time it sat there that long i just rebooted and wiped all the data and it started right up.

They say it's deletes all user data for security reason. I wonder what kind of security they are talking about?

I know this is a basic ADB question, but I've read plenty of basic guides and troubleshooting, and no one seems to have recorded a similar issue:
If I list devices, my device shows up -- so a connection is there. It sends the dd file without error.
But when I do adb shell, it goes to the $ prompt, but then after a second or two, returns back to the regular cmd prompt. If I type 'su' quickly enough, it changes to # prompt, but same result --- returns to the regular cmd prompt after a few seconds, after which i cannot proceed with the given steps.
Any ideas what I may be doing wrong?

Don't get it
I don't get it. I have not unlocked my phone. I wan't to backup my apps from my phone, so i could restore them later. I try to follow this guide, @ the moment I type adb shell it works, it just wont do anything su comman. It says not found. What do I do wrong? I want to unlock my phone, and keep/restore all my apps.

Related

Shiny new Nexus S backup question

Is there an app like Titanium Backup for a non-rooted SNS? Do I really need to backup if I don't root the phone? I would like to backup before I start the playing (sorry for the newbie question but I am a recent convert from i****e 4).
Thanks in advance, Jeff
You can boot into Clockwork Recovery (with fastboot) and do a nandroid backup, all without flashing anything.
If you have no intentions of rooting odds are you don't need a backup app. When you first set up your phone you can check the box that will backup with google and in the event you get a new phone all your apps will be there. Anything you purchase on the market will automatically backup to your account even if you don't check off the box. Welcome to Android, I'm sure you will enjoy your experience.
icandy75 said:
If you have no intentions of rooting odds are you don't need a backup app. When you first set up your phone you can check the box that will backup with google and in the event you get a new phone all your apps will be there. Anything you purchase on the market will automatically backup to your account even if you don't check off the box. Welcome to Android, I'm sure you will enjoy your experience.
Click to expand...
Click to collapse
Thank icandy75 for the quick reply. Is that data (pics, contacts, bookmarks, etc.) and apps if I check the box? Is the backup encrypted or passworded? BTW I am currently using a Samsung Intercept for the last 5 weeks with 2.1 and temporary root so I really like Titanium Backup to wipe data and being able to reverse things. Can the backup to Google do anything like that, I am suspecting not.
P.S. So far the experience has been wonderful even after using iPhones for 3.5 years.
shrivelfig said:
You can boot into Clockwork Recovery (with fastboot) and do a nandroid backup, all without flashing anything.
Click to expand...
Click to collapse
Thanks for the quick reply. I assume these are not as robust and flexible as Titanium Backup. Is it inevitable that I will really just want to root to get better apps? Sorry but new to the wonderful world of Android. BTW I am only going to use the SNS via WiFi for now.
Thanks for the info., help and advice,
Jeff
jefftab11 said:
Thank icandy75 for the quick reply. Is that data (pics, contacts, bookmarks, etc.) and apps if I check the box? Is the backup encrypted or passworded? BTW I am currently using a Samsung Intercept for the last 5 weeks with 2.1 and temporary root so I really like Titanium Backup to wipe data and being able to reverse things. Can the backup to Google do anything like that, I am suspecting not.
P.S. So far the experience has been wonderful even after using iPhones for 3.5 years.
Click to expand...
Click to collapse
Pics are not backed up but you can back those up manually to you computer without root. Contacts are backed up to your Gmail account for easy access. It will also back up your wifi passwords but not your sms. There really is no reason not to root on this phone. It's very easy to do and reversible plus root gives you the ability to use a bunch of apps like TB. If you get into flashing roms I would suggest getting the paid version. It makes it a breeze to switch from one rom to next and gives you a few more options like dropbox sync and the ability to freeze apps.
use mybackup pro for backups if you dont have root.
backs up all sms, mms, android home, system settings, call logs, music playlists, bookmarks, dictionary, call logs, applications (doesnt back up the data/settings inside the app). lol am i missing something?
you can save the backups online or to your sd card
Yeah, My Backup pro is the only other app that I know of that people liked for non-rooted devices.
Clockwork Recovery Backup
I know this thread is about a month old, but...
I have to say, if you want to do any rooting or ROM flashing later the Clockwork Recovery backup is probably the better way to go.
It wasn't said earlier, but if you have adb and fastboot already installed/config'd on Ubuntu (but should be the same commands on Mac OSX - not sure about Win):
Code:
adb reboot-bootloader
fastboot boot <path to recovery file>/recovery-clockwork-herring.img
I already unlocked my bootloader prior to this, so all the data I have has been wiped previously and I reloaded manually.
Vol Down to "backup and restore" and hit power button. First option is Backup. Just hit power button and let it do the backup. This may take a bit of time. The recovery is not perm and will be gone when you reboot.
The backup is stored on your "SD" partition under "clockworkmod/backup/[backup date]"
You should be able to use the same thing to restore at a later time if needed, selecting "restore" instead of the "backup" option.
There is a app on the market called* backup everything*. I've never used it but description says works for non rooted phones.
takkun1946 said:
I know this thread is about a month old, but...
I have to say, if you want to do any rooting or ROM flashing later the Clockwork Recovery backup is probably the better way to go.
It wasn't said earlier, but if you have adb and fastboot already installed/config'd on Ubuntu (but should be the same commands on Mac OSX - not sure about Win):
Code:
adb reboot-bootloader
fastboot boot <path to recovery file>/recovery-clockwork-herring.img
I already unlocked my bootloader prior to this, so all the data I have has been wiped previously and I reloaded manually.
Vol Down to "backup and restore" and hit power button. First option is Backup. Just hit power button and let it do the backup. This may take a bit of time. The recovery is not perm and will be gone when you reboot.
The backup is stored on your "SD" partition under "clockworkmod/backup/[backup date]"
You should be able to use the same thing to restore at a later time if needed, selecting "restore" instead of the "backup" option.
Click to expand...
Click to collapse
Just to clarify commands, specifically for Mac OSX:
(These commands are assuming you've downloaded this file (http://www.mediafire.com/?qoz9f6e8fbx8zs0) and unzipped it to your desktop)
Code:
~/Desktop/adb-fastboot/adb reboot bootloader
Code:
~/Desktop/adb-fastboot/fastboot oem unlock
Code:
~/Desktop/androidsdk/tools/fastboot flash recovery recovery-clockwork-3.0.0.5-crespo.img

[Q] How to backup you nexus s

Hey guys,
I was just wondering if any of you know how to backup your nexus s to a Windows computer.
Titanium backup the apps you want then copy the titanium backup folder to the computer. Then just copy any sdcard files you want.
A system state backup can be done with CWM and is known as a Nandroid backup.
But it said I have to have a rooted phone and i do not want to root my phone.
zacattack013 said:
But it said I have to have a rooted phone and i do not want to root my phone.
Click to expand...
Click to collapse
Best backup you can have is a CWM Recovery backup... It includes everything : the data, the system, everything but the content of the sd card.
No need for root but you'll have to unlock the bootloader and flash the recovery image using fastboot. Unfortunately, unlocking the bootloader will restore factory settings on a Nexus S. I don't think there's a way around it.
That's why I recommend Nexus S buyers to unlock the bootloader the first chance they have.
Can't really backup everything without root, pretty much stuck with only the sdcard contents.
Also, what ^ llavalle said.
Or grab a piece of paper and write what apps you have and copy your photos from DICM folder on SD card.
Root with the one-click-root for your Nexus S.
-> You won't lose any data
-> completely safe
-> Allows you to back up with Titanium Backup without an unlocked bootloader.
Move the titanium backup folder onto your computer.
MrBigWaffles said:
Root with the one-click-root for your Nexus S.
-> You won't lose any data
-> completely safe
-> Allows you to back up with Titanium Backup without an unlocked bootloader.
Move the titanium backup folder onto your computer.
Click to expand...
Click to collapse
I also read that you need to have the bootloader unlocked in the process of rooting your phone, thus being able to lose your personal data, which is not what you said "you won't lose any data"
Edit: I have latest stock os, btw
explorer-10 said:
I also read that you need to have the bootloader unlocked in the process of rooting your phone, thus being able to lose your personal data, which is not what you said "you won't lose any data"
Edit: I have latest stock os, btw
Click to expand...
Click to collapse
There are exploits that can root with locked bootloader
Sent from my ice cream powered Nexus S
DarkhShadow said:
There are exploits that can root with locked bootloader
Sent from my ice cream powered Nexus S
Click to expand...
Click to collapse
evetually, i found it. but not sure if this is what you were referring to: http://forum.xda-developers.com/showpost.php?p=21797658&postcount=1
---------- Post added at 01:40 AM ---------- Previous post was at 01:37 AM ----------
although, it really isnt the one-click-root method, but it does what you mentioned about the rooting w/o unlocking BL
so, in that transformer thread, since it was stated exactly:
"Root:
adb push mempodroid /data/local
adb push su /data/local
adb shell
chmod 777 /data/local/mempodroid
/data/local/mempodroid 0xd9ec 0xaf47 sh
** You should now be in a remote shell session with root (indicated by #)
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system"
where i bolded those pair of numbers, for the nexus s, does it get replaced with "0xd7cc 0xad27"?
llavalle said:
Best backup you can have is a CWM Recovery backup... It includes everything : the data, the system, everything but the content of the sd card.
No need for root but you'll have to unlock the bootloader and flash the recovery image using fastboot. Unfortunately, unlocking the bootloader will restore factory settings on a Nexus S. I don't think there's a way around it.
That's why I recommend Nexus S buyers to unlock the bootloader the first chance they have.
Click to expand...
Click to collapse
That's what i was going to say. Titanium Backup for individual configuration and apps and CWM recovery for a full system "image".
explorer-10 said:
I also read that you need to have the bootloader unlocked in the process of rooting your phone, thus being able to lose your personal data, which is not what you said "you won't lose any data"
Edit: I have latest stock os, btw
Click to expand...
Click to collapse
Bootloader does not need to be unlocked with the one-click-root method.
I know this for a fact, since I rooted my phone, backed up my apps and then unlocked the bootloader.

need help - how to copy TWRP nandroid backup to device?

how to copy TWRP nandroid backup to device?
I need to restore and I don't know how to copy from my hdd to the phone.
The phone is not booting but I can get to twrp recovery.
Latest TWRP has MTP mode.
but it doesn't allow me to copy one of the backup files which is: data.ext4.win000 and it's 1.5GB
You'll need to give us more information.
Why did it fail? Why did your phone stop booting?
1. flashed bigxie_hammerhead_LRX21O-signed.zip
2. flashed CF-Auto-Root-hammerhead-hammerhead-nexus5
3. booted fine but still had apps like Ti backup & TWRP not working due to root permissions
4. Went to recovery and performed Fix permission.
5. stuck in boot loop
gil80 said:
but it doesn't allow me to copy one of the backup files which is: data.ext4.win000 and it's 1.5GB
Click to expand...
Click to collapse
I have had the same problem with my motox 14 the way I found around it was to copy the file to a different fold and use twrp file explore to move it to the back up folder. That has worked for me and a few others try it out it will work.
how can you copy using twrp while in recovery? are you able to access your PC from recovery?
gil80 said:
1. flashed bigxie_hammerhead_LRX21O-signed.zip
2. flashed CF-Auto-Root-hammerhead-hammerhead-nexus5
3. booted fine but still had apps like Ti backup & TWRP not working due to root permissions
4. Went to recovery and performed Fix permission.
5. stuck in boot loop
Click to expand...
Click to collapse
You'll need to factory reset then reflash the ROM
Fix permissions was not required here. You need titanium beta from his twitter feed.
ok i got the phone working and lost my data but I have it backed on PC.
I just see that 10GB is used but when I browse the phone using file explorer, the device is empty.... what??
Is it a known issue?
when the phone is connected to PC I see that 10GB is used but when I i browse the device it shows as empty
No. Do a full flash of userdata.img
Please explain
What would I achieve by flashing it?
gil80 said:
Please explain
What would I achieve by flashing it?
Click to expand...
Click to collapse
A fix for your problem. I shouldn't really need to explain that.
Thanks!
I got it working now. Only need to figure out why it shows 16GB instead of 32 and why root permissions are not working
gil80 said:
Thanks!
I got it working now. Only need to figure out why it shows 16GB instead of 32 and why root permissions are not working
Click to expand...
Click to collapse
Well the answer in the 100 other threads about space say that you must wipe data and cache.
Root should be fine, but as already mentioned, not with official titanium release.
I already did a wipe data and cache. So I don't understand why I still get this but I'll try again.
The Ti Backup link in the twitter feed is no longer valid, but for example, ES file explorer and clean master and also TWRP app are not performing as if they are rooted.
I'll try to re-install CF-Auto-Root-hammerhead-hammerhead-nexus5
gil80 said:
I already did a wipe data and cache. So I don't understand why I still get this but I'll try again.
The Ti Backup link in the twitter feed is no longer valid, but for example, ES file explorer and clean master and also TWRP app are not performing as if they are rooted.
I'll try to re-install CF-Auto-Root-hammerhead-hammerhead-nexus5
Click to expand...
Click to collapse
ES doesn't work properly, correct. Not all apps have been updated to work with L yet either.
L is much more secure than KK. There are ways to root.
1) chain fire - makes small change in RAMdisk that allows sudaemon to work at boot
2)flash a permissive kernel - this lowers protection within selinux.
More apps work with the 2nd method, but still not all.
New titanium coming to play soon.
https://twitter.com/titaniumbackup

255 error with TWRP backup/restore (999)

UPDATE: I have since updated to official 5.1.6 via OTA flashed TWRP and Magisk. The backup finished successfully with no sign of 255 error and once rebooted the USER ID and all 999 folders were still gone after the update and switched slots.
Only tested on OnePlus 6 but file structure should be the same on any device running Android O. Must be rooted to grant Terminal Emulator root permission. You cannot remove a user without root.
If anyone has had the 255 error while trying to create a backup file or trying to restore with TWRP. This error pertains to the parallel apps or multi user ID. If you are not sure if you have parallel apps running on your OnePlus 6 or other devices you can do a quick check by go into your Root browser and look in these locations.
/storage/emulated
/data/system/
data/system_ce/
data/system_de/
data/misc/
data/misc_ce/
data/misc_de/
data/user/
data/user_ce/
data/user_de/
If you see any folder named 999 then you have parallel apps enabled on your device. TWRP in it's current form will not allow you to create a backup or restore a backup with parallel apps enabled.
Currently there is only one solution that I have found to be able to delete all of the 999 folders and that is to open a terminal emulator to each of these locations and remove the 999 folders individually. I have found a solution where you can delete the user ID and by doing so it removes all of the 999 folders and not only does it remove the folders they do not return once you reboot your device. The solution is simple so let's get to it.
Install Terminal Emulator from the play store
Open Terminal and type
su
Press enter and grant root permission
Next type
pm remove-user 999
Press enter
Close Terminal and reboot
Once rebooted go back to your Root browser and check the locations listed above to ensure the 999 folders are gone. That's all, Enjoy.
I searched the locations you mentioned and didn't find any 999 folders but I still get the error 255 when trying to flash 5.1.6 full zip. Any ideas what the issue could be?
I even tried running the commands on terminal anyways and got an error saying "couldn't remove user ID 999"
Any help is appreciated. Thanks
dracoboss said:
I searched the locations you mentioned and didn't find any 999 folders but I still get the error 255 when trying to flash 5.1.6 full zip. Any ideas what the issue could be?
I even tried running the commands on terminal anyways and got an error saying "couldn't remove user ID 999"
Any help is appreciated. Thanks
Click to expand...
Click to collapse
Try to remove your security pin code first before install new firmware.
Thanks for sharing the info :good:
Stupid question about backup ,
I normally use root essentials to make a system backup but I think with op6 it will not backup al the required files anymore I think.
So I want to make the backup true twrp but can someone list the files to backup. As there are also vendor partition listed. So please let me know what to backup exactly to make the correct backup.
Thanks in advance.
Regards ysco..
dracoboss said:
I searched the locations you mentioned and didn't find any 999 folders but I still get the error 255 when trying to flash 5.1.6 full zip. Any ideas what the issue could be?
I even tried running the commands on terminal anyways and got an error saying "couldn't remove user ID 999"
Any help is appreciated. Thanks
Click to expand...
Click to collapse
Make sure you're doing "su" then enter first and its getting root permissions
I'm on official TWRP.
I have a backup of Renovate 2.0, which worked without any errors, but after I ran into issues with the 2.1 flash (bootloop) I wanted to restore my backup, which fails with the 255 error at the Data partition, the rest restores fine.
Now I was in TWRP terminal to do the above, but I couldn't find / delete any of the 999 folders. I also didn't have any other IDs on 2.0, nor did I have any security features active at the time of my backup.
What will this operation do for me with a complete but unrestorable backup anyway, surely it won't delete folders out of my backup?
What triggers the error, the destination (ROM) or the backup file?
Is there a way to get into my backup from TWRP terminal?
Any other ideas?
Thanks for any input!
geenyous said:
I'm on official TWRP.
I have a backup of Renovate 2.0, which worked without any errors, but after I ran into issues with the 2.1 flash (bootloop) I wanted to restore my backup, which fails with the 255 error at the Data partition, the rest restores fine.
Now I was in TWRP terminal to do the above, but I couldn't find / delete any of the 999 folders. I also didn't have any other IDs on 2.0, nor did I have any security features active at the time of my backup.
What will this operation do for me with a complete but unrestorable backup anyway, surely it won't delete folders out of my backup?
What triggers the error, the destination (ROM) or the backup file?
Is there a way to get into my backup from TWRP terminal?
Any other ideas?
Thanks for any input!
Click to expand...
Click to collapse
The directions that are listed above are to be used inside terminal emulator once your phone is booted up and before you make the backup. I'm not sure if you can actually take files out of the backup especially from your device. That may be something you have to pull from the device and put onto your computer to accomplish
ysco said:
Thanks for sharing the info :good:
Stupid question about backup ,
I normally use root essentials to make a system backup but I think with op6 it will not backup al the required files anymore I think.
So I want to make the backup true twrp but can someone list the files to backup. As there are also vendor partition listed. So please let me know what to backup exactly to make the correct backup.
Thanks in advance.
Regards ysco..
Click to expand...
Click to collapse
If you want to make a full and complete backup of your entire system then you go into backup in TWRP and you check mark every box and then make your backup.
dracoboss said:
I searched the locations you mentioned and didn't find any 999 folders but I still get the error 255 when trying to flash 5.1.6 full zip. Any ideas what the issue could be?
I even tried running the commands on terminal anyways and got an error saying "couldn't remove user ID 999"
Any help is appreciated. Thanks
Click to expand...
Click to collapse
Please if you could report back to us on this thread and let us know if the instructions you were given above help you or not
dgunn said:
If you want to make a full and complete backup of your entire system then you go into backup in TWRP and you check mark every box and then make your backup.
Click to expand...
Click to collapse
Thanks for the reply back to me.
I already did make a full backup and I know the procedure to make a backup in twrp but I wanted to know if all must be marked for a full backup. Some say that not all needs to be checked. If you mark all the backup is huge lol.
Thanks.
Regards ysco..
dgunn said:
Please if you could report back to us on this thread and let us know if the instructions you were given above help you or not
Click to expand...
Click to collapse
Oh sorry lol. Turns out I just had to use official twrp to flash the full zip instead of the unofficial one I was using. After that it was smooth sailing
ysco said:
Thanks for the reply back to me.
I already did make a full backup and I know the procedure to make a backup in twrp but I wanted to know if all must be marked for a full backup. Some say that not all needs to be checked. If you mark all the backup is huge lol.
Thanks.
Regards ysco..
Click to expand...
Click to collapse
boot, system image, vendor image, data.. and you are on the safe side.
Once I made a backup of boot, system, vendor, data (no images) I had to flash OOS afterwards. I don´t completely understand the difference between first and second way, finally both worked. But for sure it is not necessary to mark all partitions.
Flying Fox said:
boot, system image, vendor image, data.. and you are on the safe side.
Once I made a backup of boot, system, vendor, data (no images) I had to flash OOS afterwards. I don´t completely understand the difference between first and second way, finally both worked. But for sure it is not necessary to mark all partitions.
Click to expand...
Click to collapse
Thanks for pointing out the steps for a successful backup.
Regards ysco..
ysco said:
Thanks for the reply back to me.
I already did make a full backup and I know the procedure to make a backup in twrp but I wanted to know if all must be marked for a full backup. Some say that not all needs to be checked. If you mark all the backup is huge lol.
Thanks.
Regards ysco..
Click to expand...
Click to collapse
I backup everything to reduce the amount of steps for the restore process. If you check every box during the backup process you do not have to Flash the OS during restore. Yes it does take up more space but the restore process is simple if you do. By checking every box all you have to do is restore your backup and then Flash magisk and you're done no need to flash the OS
dgunn said:
I backup everything to reduce the amount of steps for the restore process. If you check every box during the backup process you do not have to Flash the OS during restore. Yes it does take up more space but the restore process is simple if you do. By checking every box all you have to do is restore your backup and then Flash magisk and you're done no need to flash the OS
Click to expand...
Click to collapse
Ahh good to know mate
Thanks.
Regards ysco..
dgunn said:
I backup everything to reduce the amount of steps for the restore process. If you check every box during the backup process you do not have to Flash the OS during restore. Yes it does take up more space but the restore process is simple if you do. By checking every box all you have to do is restore your backup and then Flash magisk and you're done no need to flash the OS
Click to expand...
Click to collapse
Actually you don't have to make a backup of system AND system image as well as you usually don't buy apples AND apples and pears. You just need the system image (and boot, vendor, data) to perform a complete and success backup.
dgunn said:
UPDATE: I have since updated to official 5.1.6 via OTA flashed TWRP and Magisk. The backup finished successfully with no sign of 255 error and once rebooted the USER ID and all 999 folders were still gone after the update and switched slots.
Only tested on OnePlus 6 but file structure should be the same on any device running Android O. Must be rooted to grant Terminal Emulator root permission. You cannot remove a user without root.
If anyone has had the 255 error while trying to create a backup file or trying to restore with TWRP. This error pertains to the parallel apps or multi user ID. If you are not sure if you have parallel apps running on your OnePlus 6 or other devices you can do a quick check by go into your Root browser and look in these locations.
/storage/emulated
/data/system/
data/system_ce/
data/system_de/
data/misc/
data/misc_ce/
data/misc_de/
data/user/
data/user_ce/
data/user_de/
If you see any folder named 999 then you have parallel apps enabled on your device. TWRP in it's current form will not allow you to create a backup or restore a backup with parallel apps enabled.
Currently there is only one solution that I have found to be able to delete all of the 999 folders and that is to open a terminal emulator to each of these locations and remove the 999 folders individually. I have found a solution where you can delete the user ID and by doing so it removes all of the 999 folders and not only does it remove the folders they do not return once you reboot your device. The solution is simple so let's get to it.
Install Terminal Emulator from the play store
Open Terminal and type
su
Press enter and grant root permission
Next type
pm remove-user 999
Press enter
Close Terminal and reboot
Once rebooted go back to your Root browser and check the locations listed above to ensure the 999 folders are gone. That's all, Enjoy.
Click to expand...
Click to collapse
I don't have parallel apps or multi-user. What I have is a "work profile" (latest feature by gsuite which is mandated by my organization). Work profiles isolate work/company account data into a separate encrypted/remote wipable silo. Android creates copies of the apps for the work profile. This is causing a folder called "/data/system_ce/10" which is failing to backup. Any solution for TWRP to work with work profiles? Ideally, can I "ignore" folders to not be backed up so that TWRP nandroid backups can work.
angadsingh said:
I don't have parallel apps or multi-user. What I have is a "work profile" (latest feature by gsuite which is mandated by my organization). Work profiles isolate work/company account data into a separate encrypted/remote wipable silo. Android creates copies of the apps for the work profile. This is causing a folder called "/data/system_ce/10" which is failing to backup. Any solution for TWRP to work with work profiles? Ideally, can I "ignore" folders to not be backed up so that TWRP nandroid backups can work.
Click to expand...
Click to collapse
You will have to remove those folders from the system before you can do a backup. Maybe cut and paste them onto an OTG drive, do the backup and then replace the folders. Twrp will not backup any multi-user accounts and that is exactly what gsuite has made.
See here for more info similar to your issue.
https://forum.xda-developers.com/pixel/development/twrp-alpha1-pixel-devices-t3500314/page56
Hello. Can you tell me how to properly restore a backup on TWRP? Do I have to change slots oraz something?
Restore does not work ...
I'm having the same problem. I simply cannot restore a TWRP backup. It always produces an error 255.
No, I do not have any "999" folder/files, nor do I have any lockscreen security. I also do not have parallel apps or anything involving multi-user.
I'm extremely experienced at flashing ROMs, as well as performing Nandroids and restoring them.
Nothing I've done is working. As I said, I simply cannot restore the data partition. That's when I get the 255 error. System restores fine, but that's it.
Any ideas?
Thank you,
Peter

Create flashable backup of phone in current state

Hi, I have my phone rooted, magisk'd, xposed etc etc and with a lot of apps and tweaks done to it.
Is there any way at all I could make a flashable image of it instead of having to make a backup of it in TWRP and then restoring it from there? (The TWRP method has never failed me but I was just curious about whether the question below could be done)
I'd like to be able to have a copy of the entire phone as a backup on the PC so I could then flash the phone back to its current state (if I mess anything up) using SP Flash Tool?
Forgive me if this is a stupid question or a task so complicated that it would just be easier to continue using TWRP.
The reason I ask is if the TWRP backup on the phone gets corrupted somehow then I'd like a copy of the phone so I could restore using that.
MrGRiMv2 said:
Hi, I have my phone rooted, magisk'd, xposed etc etc and with a lot of apps and tweaks done to it.
Is there any way at all I could make a flashable image of it instead of having to make a backup of it in TWRP and then restoring it from there? (The TWRP method has never failed me but I was just curious about whether the question below could be done)
I'd like to be able to have a copy of the entire phone as a backup on the PC so I could then flash the phone back to its current state (if I mess anything up) using SP Flash Tool?
Forgive me if this is a stupid question or a task so complicated that it would just be easier to continue using TWRP.
The reason I ask is if the TWRP backup on the phone gets corrupted somehow then I'd like a copy of the phone so I could restore using that.
Click to expand...
Click to collapse
You can store a copy of your TWRP backup on PC, then, if the backup that is stored on the device gets corrupted, you can use the copy that is stored on PC.
Sent from my SM-S767VL using Tapatalk
I have a copy of it on PC just in case, I thought I remembered reading a thread on here quite a few years back about creating a custom ROM from your existing installation with SPFlashtool or a similar program but it was so long ago that I might have mistaken it for another backup method.
Either way the TWRP backup is still quick enough to recover from and was thinking about the SPFlashtool way as an experiment. Thanks for replying.
You should be able to make partition image backups in TWRP. System, data and boot. Then you can Fastboot flash those partitions back.
I am not familiar with the MTK devices but it must be similar.
You can also use SuperR's kitchen to easily build a ROM from the images.
MrGRiMv2 said:
Hi, I have my phone rooted, magisk'd, xposed etc etc and with a lot of apps and tweaks done to it.
Is there any way at all I could make a flashable image of it instead of having to make a backup of it in TWRP and then restoring it from there? (The TWRP method has never failed me but I was just curious about whether the question below could be done)
I'd like to be able to have a copy of the entire phone as a backup on the PC so I could then flash the phone back to its current state (if I mess anything up) using SP Flash Tool?
Forgive me if this is a stupid question or a task so complicated that it would just be easier to continue using TWRP.
The reason I ask is if the TWRP backup on the phone gets corrupted somehow then I'd like a copy of the phone so I could restore using that.
Click to expand...
Click to collapse
Please check if this will help you out, I know it can save app, app data and roms. I used it on my device. Though some apps have problem using the app data which was backed up, most apps worked
https://play.google.com/store/apps/details?id=balti.migrate&hl=en_US
https://forum.xda-developers.com/android/apps-games/app-migrate-custom-rom-migration-tool-t3862763
gopikrishnanrmg said:
Please check if this will help you out, I know it can save app, app data and roms. I used it on my device. Though some apps have problem using the app data which was backed up, most apps worked
https://play.google.com/store/apps/details?id=balti.migrate&hl=en_US
https://forum.xda-developers.com/android/apps-games/app-migrate-custom-rom-migration-tool-t3862763
Click to expand...
Click to collapse
That is useless for what they are trying to do. That only backs up and restores user apps and user data, it helps you keep your data when switching ROMs. That doesn't help restore the system if the device gets corrupted.
Sent from my SM-S767VL using Tapatalk
Can't believe nobody on XDA told you about dd in 361 days!
Abstract:
Twrp have constant problem with encrypted data. The goal to achieve is make full backup of encrypted phone, when is unlocked, and be able copy on another same model of phone, and again encrypt it.
Same question here.
Im currently working on this.
Will update soon...
-`chiron` -> lineage-18.1-20210722
1. First try:
Code:
a) adb shell
b) su
c) dd if=/dev/block/by-name/system of=/mnt/sdcard/system.img
d) copied /mnt/sdcard/system.img to windows file system
e) dd if=/dev/zero of=/dev/block/by-name/system (after that phone restarted and automaticly went into fastboot)
(adb exited)
f) fastboot flash system system.img
g) Flashed with success, system animation showing, but after longer time phone turning off.
Data looks to dumped correctly, but now question is how to restore it correctly? (i didnt check it well: todo)
Copy full disk image from Android to computer
I have a smartphone without the possibility to insert an SD-card. I would like to make a dump of the biggest partition (cause I lost files and I'd like to use a dump to recover them). The partition...
stackoverflow.com
How to stream an encrypted backup of the entire device to remote host?
I have an Android device that has no free space and no SD-card that I can replace (thanks to OnePlus policy). I also have no free space on PC to accommodate the backup so I wanted to upload it to the
android.stackexchange.com

Categories

Resources