Updating firmware without losing data while rooted - Sony Xperia 1 II Questions & Answers

Does anyone know how to update the firmware while rooted *without* deleting apps and userdata? I've read that you need to delete the userdate.sin file to keep the userdata but apps and everything else are still deleted. Is there a way to keep these as well? It would be nice if we didn't have to completely start over with our setup every time we want to update.

Related

[Q] Will firmware update loose my data & apps? no root cant backup apps

I have a new (2weeks) samsung GT-I9003 which kies report a new firmware update & before doing that want me to take backup but it will only backup my contacts/sms etc. how do I backup my installed apps as I have not yet rooted my phone, I searched the forums & found a way to root but got to know that even rooting will loose my apps/data so what should I do first?
I need the following things
I am testing various apps to find the best ones which I will using long term so as of now lot of install/uninstall hapening, after few days once I settle I want to update new firmware but should I root before that or after updating to new firmware.
Does rooting remains rooted after new FW updates in future?
Once rooted I can install apps like Titanium, unrooted I can't use Titanium yet to back up my apps & its data so its a catch 22 situation for me & atleast once I will have to loose my apps data but this time I should do it once for all so I can streamline future updates.
Hope some one can answer this.
If you update with kies you wont loose anything, if you update custom roms(for the first time) you will loose your apps and data.
Thats a good news for me, so should I 1st update the firmware via kies then root it as 2nd step?
I took backup & then started the firmware update, it downloaded a small file showed 100% complete & then strangely it opened another windows & its now downloading a huge file of 400-500Mb...........is the firmware that big?
The downloading is going on past 10 mins on 1mbps connection.
Finally it gave error in mid way I assume that something happened & made the usb connection loss, I got these screen shots & the phone is now hung displaying "downloading do not turn off the target"
What should I do, need help?
Since i did not get any answer i took the battery out & then plugged in again the phone booted fine.
I now have rooted my phone, if i update the firmware will I need to root it again?
sgsI9003 said:
Since i did not get any answer i took the battery out & then plugged in again the phone booted fine.
I now have rooted my phone, if i update the firmware will I need to root it again?
Click to expand...
Click to collapse
depends on the firmware, most custom roms have root already build in

[Q] Will reset delete all my files?

Hi,
Just got my new Nexus 6 64GB. Rooted and I transferred my titanium backup files from my Galaxy Note 3. Everything went fine. 3 hour later all my apps are up and running and I'm peachy.
After that I was doing some reading a I stumbled upon the tutorial on how to disable encryption. I gave it a go and upon restart it asked me for my pin number. I enter the pin and then I get the message saying that the phone has to be reset. I hit reset and after the procedure finished phone rebooted and all my files where completely wiped clean. In all my previous phones I could do a reset and keep all my downloaded and backed up files. Is there a way to do this too with the nexus or every time I screw something up I will loose everything?
Stock recovery always resets /sdcard too. Custom recovery only /data and /cache, etc.
However, ALL your data is on an encrypted file system so the only way to decrypt is by reformatting the places that contain ALL the data
rootSU said:
Stock recovery always resets /sdcard too. Custom recovery only /data and /cache, etc.
However, ALL your data is on an encrypted file system so the only way to decrypt is by reformatting the places that contain ALL the data
Click to expand...
Click to collapse
Does this apply even if I disabled the encryption?
I love the phone but this is an issue for me. Please give me your opinion on which is the best way to go. I was thinking to not install a custom recovery so I can be able to do the OTA updates even thought I never owned a phone that I didn't root and install custom recovery and ROM from day one (Only have used Samsung Note Phones all these years). Is there a ROM that is based on the Original with encryption disabled and has some good tweaks and will be updated as soon as there is an update? Thanks for your help.
slekkas said:
Does this apply even if I disabled the encryption?
I love the phone but this is an issue for me. Please give me your opinion on which is the best way to go. I was thinking to not install a custom recovery so I can be able to do the OTA updates even thought I never owned a phone that I didn't root and install custom recovery and ROM from day one (Only have used Samsung Note Phones all these years). Is there a ROM that is based on the Original with encryption disabled and has some good tweaks and will be updated as soon as there is an update? Thanks for your help.
Click to expand...
Click to collapse
All phones that have "internal storage" their stock recovery wipes "sdcard" when you factory reset.
slekkas said:
Does this apply even if I disabled the encryption?
I love the phone but this is an issue for me. Please give me your opinion on which is the best way to go. I was thinking to not install a custom recovery so I can be able to do the OTA updates even thought I never owned a phone that I didn't root and install custom recovery and ROM from day one (Only have used Samsung Note Phones all these years). Is there a ROM that is based on the Original with encryption disabled and has some good tweaks and will be updated as soon as there is an update? Thanks for your help.
Click to expand...
Click to collapse
The ROMs have nothing to do with encryption. When you want to turn encryption off, all your data will be reset, there is no way around it.
However, once you have disabled encryption, then you can stay on a stock rooted ROM, or go to any ROM you like, your internal files will not be touched (data will be deleted though). If you were to stay on the stock rooted ROM, and then accept an OTA update, your phone will automatically encrypt on first boot afterwards. Most ROMs update within a day (if not hours) after the OTA update, so best bet is to flash than to accept OTA if you want to stay unencrypted.
When you wipe your phone in recovery yo flash a different ROM, you do a custom wipe, where you uncheck "internal storage", so your files/pictures/etc don't get deleted.
The cool thing about the N6 is the restore option. If you were to completely wipe right now and go to a different ROM, on first boot, upon logging in you will be asked if you want to restore a backup (if you have enabled backup apps, data, WiFi passwords for your google account). If you select yes, all your apps will automatically be downloaded from the play store, you won't have to do it manually. However, I have seen data for the app is not restored, but you can log into most apps and most games save your progress on the cloud now.

[Q] I357 Lollipop Interruption

Hello, I just today found out about the update to the Lollipop 5.0. I checked and attempted the download. It got all the way to the restart and install and then it stopped and instantly booted back up. It came up with the notification "Update Interrupted" or something very similar. I tried again after resetting the phone back to factory mode. It did the same thing. I have seen people have the problem of not enough storage but i had plenty. Especially after the factory reset. I know that this is an over wifi update and i am trying to understand why my phone isn't accepting it or why it isn't working. Thank you for any help you can offer.
Alan1727 said:
Hello, I just today found out about the update to the Lollipop 5.0. I checked and attempted the download. It got all the way to the restart and install and then it stopped and instantly booted back up. It came up with the notification "Update Interrupted" or something very similar. I tried again after resetting the phone back to factory mode. It did the same thing. I have seen people have the problem of not enough storage but i had plenty. Especially after the factory reset. I know that this is an over wifi update and i am trying to understand why my phone isn't accepting it or why it isn't working. Thank you for any help you can offer.
Click to expand...
Click to collapse
If you have rooted or modified the system apps in any way then the update is going to fail. You have 2 options:
You can wipe your phone and start with a clean stock ROM; or
You can follow the guide to retain root on OC6. You don't have to be rooted for this method, but this method will allow you to update if you've modified your system.
Devo7v said:
If you have rooted or modified the system apps in any way then the update is going to fail. You have 2 options:
You can wipe your phone and start with a clean stock ROM; or
You can follow the guide to retain root on OC6. You don't have to be rooted for this method, but this method will allow you to update if you've modified your system.
Click to expand...
Click to collapse
My system has been rooted before but it no longer has root access.
When you say wipe and start with a fresh rom, isnt that also the same as resetting the device?
Alan1727 said:
My system has been rooted before but it no longer has root access.
When you say wipe and start with a fresh rom, isnt that also the same as resetting the device?
Click to expand...
Click to collapse
To explain a bit further, the way the update works is there's a program built into the OTA. This program checks the signature of all the system files on your phone against a database included in the OTA. If all the signatures match then the update will proceed, but if even 1 of the signatures doesn't match then the update will fail as you have experienced.
When you root your phone you are exploiting a weakness in some aspect of android that allows you to modify system files. Once you modify system files by rooting you change their signature. Even if you unroot, it is impossible to change the signatures back to what they originally were. This is the reason that even if you unroot the update will fail.
By resetting the device you are essentially deleting all the user apps and settings, the system files go virtually unchanged. So if you unroot, your signatures still don't match and when you factory reset the device the system files don't get touched so the signatures still won't match. The only thing you can do to get the signatures to match is to flash the NE3 full Odin package. This will completely wipe out our phone and install everything (the bootloaders, modems, system files, etc.) from scratch.
So like I said you have 2 options:
Follow the guide I linked to above; or
Flash the NE3 Odin package and take the OTA.
Either way you have to use Odin at some point.

How to install monthly Nexus security firmware updates without starting over?

Usually when a new Android OS version is released, I'll just start over from scratch by manually flashing the seven image files using fastboot. I then install the unencrypt kernel/boot image and also root.
Now that these security updates are coming out every month, is there an easier way in my specific situation to install the update only without having to start from scratch every time like above?
Flash the system image only (if radio is different, flash that too). That won't overwrite your user data/apps
Edit: When flashing the system.img, flash the cache.img as well (to be safe)
Thanks. That is pretty simple. I wish I asked this a long time ago so I could avoided a lot of resetting EVERYTHING up all the time. 2 more clarifications if you don't mind...
1) Would this also work for point releases, like say if a 5.1.2 comes out, or would it be better to reflash everything in that case?
2) No other steps like clear cache or anything? Just flash those 2, reboot, and then I should be good to go?
Toaplan said:
Thanks. That is pretty simple. I wish I asked this a long time ago so I could avoided a lot of resetting EVERYTHING up all the time. 2 more clarifications if you don't mind...
1) Would this also work for point releases, like say if a 5.1.2 comes out, or would it be better to reflash everything in that case?
2) No other steps like clear cache or anything? Just flash those 2, reboot, and then I should be good to go?
Click to expand...
Click to collapse
It should work just fine for point releases. For major releases (like when Android M is released), I will probably flash everything, and wipe everything (including userdata), and start from scratch ! lol!
In theory, it should work find even for major releases, but I'd rather start with a clean slate - especially with the new permissions manager that is being added in this release. I'd rather not take any old incompatible apps thru' - but that's just me
Clearing cache is usually not needed. I've heard of instances where some users get stuck on the Google boot logo for some reason when booting for the first time. If that happens, clearing cache seems to help.
To be safe, it may be a good idea to flash the cache.img too. It takes a few seconds. Better safe than sorry. I'll update my earlier post.
jj14 said:
...
Click to expand...
Click to collapse
Huge thanks. This should make things a lot easier for me.
Is this the system update that just got pushed to my phone? It looks like a small update, like 26MB?
Mine tried to install and failed. My phone is stock, latest official version, never rooted, but the bootloader is unlocked and it is running the no force encrypt kernel, which I believe is probably what is causing the issue?
Only way is to restore completely to stock, take the OTA and then install the no decrypt?
I got the OTA today to upgrade to M from L- (on verizon) where can I Find that system image to flash- I tried sideloading the OTA and it didn't take.
caecusscius said:
I got the OTA today to upgrade to M from L- (on verizon) where can I Find that system image to flash- I tried sideloading the OTA and it didn't take.
Click to expand...
Click to collapse
https://developers.google.com/android/nexus/images
SquireSCA said:
Is this the system update that just got pushed to my phone? It looks like a small update, like 26MB?
Mine tried to install and failed. My phone is stock, latest official version, never rooted, but the bootloader is unlocked and it is running the no force encrypt kernel, which I believe is probably what is causing the issue?
Only way is to restore completely to stock, take the OTA and then install the no decrypt?
Click to expand...
Click to collapse
I believe it's actually both of these things causing the OTA not to take. If anything, anything is changed from stock...no OTA. Bootloader unlocked, kernel, root, even just changing the build.prop (but you need root for that) would cause it to fail. I believe it checks every file and if anything in /system has changed, no OTA.
I've never messed around with the encryption pieces, but I'm wondering if you only flash the system.img (you'd need to re-root) if that would suffice or not as far as the update. You'd be flashing the entire system file instead of only the delta the OTA provides, but it's probably worth looking into.
Hmmm... Well, it takes 15 minutes to just wipe the phone and flash the new ROM with the toolkit, install my apps, copy my files over and set the phone up, so it isn't a big deal, I just want to make sure that I have the right version before I do that...
(LMY48M) That's the one that I want for the VZW N6, right?
I just use helium to backup my apps and everything. Even if I need to wipe it is a pretty easy restore process. I highly recommend helium backup.
hayzooos said:
I believe it's actually both of these things causing the OTA not to take. If anything, anything is changed from stock...no OTA. Bootloader unlocked, kernel, root, even just changing the build.prop (but you need root for that) would cause it to fail. I believe it checks every file and if anything in /system has changed, no OTA.
I've never messed around with the encryption pieces, but I'm wondering if you only flash the system.img (you'd need to re-root) if that would suffice or not as far as the update. You'd be flashing the entire system file instead of only the delta the OTA provides, but it's probably worth looking into.
Click to expand...
Click to collapse
Unlocked bootloader doesn't affect it, the customised kernel does though . But yes, you could just flash the system.img

Can't install system update after I unrooted on Moto G (2nd Generation)

I recently rooted my device, and want to install a system update. I unrooted my phone using superSU, and tried installing the update. It downloads, then restarts the phone. After 10 seconds, the phone restarts and it tells me that the download was unsucessful. I rooted my phone using mobileGO. I am thinking about doing a factory reset - will that remove any files preventing the update. I really want this update, and any help would be appreciated.
:fingers-crossed: Thanks.
I have never user Mobile Go. I don't know how it works but I think it disables OTA.
You can always flash the complete stock ROM (There is a tool in the dev's section) but you will loose everything.
A factory reset will not help because it will not delete any file in the root directory. OTA updates verifies all files while flashing.
Try redownloading the update first.
Then if you don't mind loosing everything, flash the complete stock ROM.
There may be an easier solution, but I don't know it...
Hope it helps
Mavireck said:
I have never user Mobile Go. I don't know how it works but I think it disables OTA.
You can always flash the complete stock ROM (There is a tool in the dev's section) but you will loose everything.
A factory reset will not help because it will not delete any file in the root directory. OTA updates verifies all files while flashing.
Try redownloading the update first.
Then if you don't mind loosing everything, flash the complete stock ROM.
There may be an easier solution, but I don't know it...
Hope it helps
Click to expand...
Click to collapse
Thanks for the reply; I tried redownloading the update with no success. Would you still need root access to flash the stock ROM?
No

Categories

Resources