Flashing new firmware without loosing data - Sony Xperia XZ Premium Questions & Answers

So I have an XZ Premium and I rooted it day 1 i got it (which is now a few months back).
I wanted to know if theres a way to flahs a new firmware without loosing all my data (apps, pictures, etc).

BigBrainAFK said:
So I have an XZ Premium and I rooted it day 1 i got it (which is now a few months back).
I wanted to know if theres a way to flahs a new firmware without loosing all my data (apps, pictures, etc).
Click to expand...
Click to collapse
You can use newflashtool, leave out all .ta files and userdata.sin

would you also happen to know how i can use the twrp to make a backup since when i tried it in the past it always produced garbage data when i restored them. this could be because of encryption or smth.

I'd like to know, that files I minimum need to change SI on XZP
I want to change from my operator's version to generic branding

@BigBrainAFK
use PrfCreator

kistigun said:
You can use newflashtool, leave out all .ta files and userdata.sin
Click to expand...
Click to collapse
So just search for "*.ta" in the folder of the firmware i loaded with xperifirm and delete ALL of them as in literally all of them.
And delete the "userdata_something_something.sin".
Correct?
//EDIT: Did it and all my data is gone thx to it being "corrupted" after decryption

BigBrainAFK said:
So just search for "*.ta" in the folder of the firmware i loaded with xperifirm and delete ALL of them as in literally all of them.
And delete the "userdata_something_something.sin".
Correct?
//EDIT: Did it and all my data is gone thx to it being "corrupted" after decryption
Click to expand...
Click to collapse
When I flash a new fw I remove all .ta files + userdata and I never get corruption.
Leave any .ta files in there and corruption happens.

i change name of userdata_X-FLASH-CUST-B6B5.sin and not worck

Related

FOTA files delete and problem in installing new apps

I deleted the fota files and some unwanted apps,but also deleted something that is not allowing me to install any apps ...Not sure,what that might but phone works fine. Installed apps also work fine....wondering what might have gone wrong!
Did you replace the fota files or just delete them? Are you sure you have the room necessary for the files to install?
404glitch said:
Did you replace the fota files or just delete them? Are you sure you have the room necessary for the files to install?
Click to expand...
Click to collapse
I replaced the fota files,with the 2 (that I downloaded from other thread). I do have enough space available as I've deleted bloatware.
didadi said:
I replaced the fota files,with the 2 (that I downloaded from other thread). I do have enough space available as I've deleted bloatware.
Click to expand...
Click to collapse
what rom are you using
sounds like the permissions are off
what did you delete bloatwise?
stock ROM....bloatware deleted a bunch of Tmo apps,like TMo tv, etcetc..
Mostly I might have deleted something thats required for app installation?
didadi said:
stock ROM....bloatware deleted a bunch of Tmo apps,like TMo tv, etcetc..
Mostly I might have deleted something thats required for app installation?
Click to expand...
Click to collapse
yea probably, its always best to go with a bloatfreezer so if something fails you can defrost it and have it work again
sorry buddy sounds like you have to use odin again or flash a not stock rom with CWM
Hmm, Ok - it says
"Installation error" Unknown reason - 110. If that gives any hint
didadi said:
Hmm, Ok - it says
"Installation error" Unknown reason - 110. If that gives any hint
Click to expand...
Click to collapse
it does, you definitely removed something needed its all good i did that the first day i had the phone when i was a noob
just use odin and reflash then try again
Please post in General thread next time.
Also which bloatware did you delete?
You should listen to the poster above me
thanks Used ODIN to reinstall.., with CWM enabled already ;-).
Read more about "fota" etc on the forum.Thanks a lot. Now I'm ready for some new ROMs ;-).

[Q] is it safe to delete everything on a 2nd hand phone - including system folders

Hi - i bought a 2nd hand phone and in case there is any spyware on it, i want to delete everything on it, including all the system folders using clockwork mod. is this safe?
i am wondering, will the imei numbers be preserved ? (ie, are they actually written on a chip that is read only, or are they in the system folders too?) i am wondering this with a few model phones --- galaxy nexus (which i believe does get the imei reset), sony xperia t, nexus 4, etc
temp4285 said:
Hi - i bought a 2nd hand phone and in case there is any spyware on it, i want to delete everything on it, including all the system folders using clockwork mod. is this safe?
i am wondering, will the imei numbers be preserved ? (ie, are they actually written on a chip that is read only, or are they in the system folders too?) i am wondering this with a few model phones --- galaxy nexus (which i believe does get the imei reset), sony xperia t, nexus 4, etc
Click to expand...
Click to collapse
just boot into recovery, and do format, wipe data, etc.
Kobro said:
just boot into recovery, and do format, wipe data, etc.
Click to expand...
Click to collapse
Never Try to delete system folders on your phone you will surely get a brick and no one would be able to fix it....
Just Go to setting and find Factory Reset Option that would be the solution to your question...
Hit thanks if i helped......
N'ayam Amarsh'e said:
Never Try to delete system folders on your phone you will surely get a brick and no one would be able to fix it....
Just Go to setting and find Factory Reset Option that would be the solution to your question...
Hit thanks if i helped......
Click to expand...
Click to collapse
yes, but surely someone can leave a virus or eavesdropping tool in the system folder ?
i plan to put a custom rom on after that anyway - so is it safe to remove the system folder ?
the only thing i can see that may cause problems is the IMEI number ?
temp4285 said:
yes, but surely someone can leave a virus or eavesdropping tool in the system folder ?
i plan to put a custom rom on after that anyway - so is it safe to remove the system folder ?
the only thing i can see that may cause problems is the IMEI number ?
Click to expand...
Click to collapse
if you wipe with cwm it will erase everything that can be safely erased.
Kobro said:
if you wipe with cwm it will erase everything that can be safely erased.
Click to expand...
Click to collapse
not true - because if you delete the system folder - which you can - on some phones the imei resets, i believe, to something generic
any thoughts anyone ?
If you delete a folder that the os needs, it will rebuild it when it boots

Deleted two OPO Apps and want them back. [Gallery and Download]

This is my first post at XDA.
Recently I rooted my phone. I also installed Titanium Backup. I saw for apps in it and saw two Download and Gallery apps. I deleted one of each thinking of them as a duplicate created by the backing up using the Bacon Root Toolkit (I did everything using this, rooting, restoring, backup, etc.). I deleted the smaller app, thinking it is just a copy without user data (I think that App size (not the apk) increases when we use an app because some data is stored). Now the Gallery and Download app is missing. I think both of them were necessary.
Can you please help me. Should i do factory reset? or something else? or get those apks?
Note that i do not want to clear my internal memory because when restoring the data back by copying the data into the internal storage using Windows and Media transfer mode on OPO, I often get device disconnected or busy errors in between and thus could never actually copy data more than few gigs, also if I copy around 55 GB then if it stops in between, ihave many missing files deep into folders that I can't accept, allover, it's very frustating.
Actually I sent all the data using Shareit app to my phone.
Useful Info:
Device Model: A0001,CyanogenMod version: 12.1-YOG4PAS3JL,Android Version: 5.1.1, Android security patch level: 2015-11-01.
ADG1089 said:
This is my first post at XDA.
Recently I rooted my phone. I also installed Titanium Backup. I saw for apps in it and saw two Download and Gallery apps. I deleted one of each thinking of them as a duplicate created by the backing up using the Bacon Root Toolkit (I did everything using this, rooting, restoring, backup, etc.). I deleted the smaller app, thinking it is just a copy without user data (I think that App size (not the apk) increases when we use an app because some data is stored). Now the Gallery and Download app is missing. I think both of them were necessary.
Can you please help me. Should i do factory reset? or something else? or get those apks?
Note that i do not want to clear my internal memory because when restoring the data back by copying the data into the internal storage using Windows and Media transfer mode on OPO, I often get device disconnected or busy errors in between and thus could never actually copy data more than few gigs, also if I copy around 55 GB then if it stops in between, ihave many missing files deep into folders that I can't accept, allover, it's very frustating.
Actually I sent all the data using Shareit app to my phone.
Useful Info:
Device Model: A0001,CyanogenMod version: 12.1-YOG4PAS3JL,Android Version: 5.1.1, Android security patch level: 2015-11-01.
Click to expand...
Click to collapse
If you have YOG4PAS3JL zip file, just flash it using recovery.
anagramgenius said:
If you have YOG4PAS3JL zip file, just flash it using recovery.
Click to expand...
Click to collapse
would that remove or clear something? Do i need to backup something again?
ADG1089 said:
would that remove or clear something? Do i need to backup something again?
Click to expand...
Click to collapse
Nope. Just dirty flash it. Backing up is good, but flashing the zip doesn't clear the data.

Pre Rooted fw for the Z5

I am looking for a pre Rooted firmware, downloaded a custom Fw from XperiFirm and thought it'd be Rooted but it wasn't.
So I created a Pre Rooted FW using PRF Creator.
Done that, flashed the rom, using flash tool.
And somehow it didn't work.
So I was just wondering is there any pre Rooted firmwares out there I could download and flash from flash tool.
Also without losing any apps/app data if possible.
Thank you, please not my phone has not got a recovery.
You cannot flash a pre-rooted firmware without recovery so you need to unlock the bootloader and root
Sent from my E6653 using Tapatalk
No worries thank you.
I have tried unlocking the boatloads but keep getting errors.
My BL is unlockable
bjmag94 said:
No worries thank you.
I have tried unlocking the boatloads but keep getting errors.
My BL is unlockable
Click to expand...
Click to collapse
Hi
Did you try this ? ([GUIDE] StockROM -> # GUIDE -> UNLOCK BOOTLOADER)
What errors are you getting ?
I followed the guide off the Sony website to unlock the bootloader.
And I'm not sure what the errors are, I will have have to post them here soon when I get back on the computer
Emilen942702 said:
Hi
Did you try this ? ([GUIDE] StockROM -> # GUIDE -> UNLOCK BOOTLOADER)
What errors are you getting ?
Click to expand...
Click to collapse
bjmag94 said:
And I'm not sure what the errors are
Click to expand...
Click to collapse
Settings> Developer Options> Enable OEM unlock
set that and then try unlocking the bootloader
Awesome thanks worked for me, now my bootloader is unlocked can I flash a recovery then the PRF I created without losing any data?
SnowManWales said:
Settings> Developer Options> Enable OEM unlock
set that and then try unlocking the bootloader
Click to expand...
Click to collapse
bjmag94 said:
Awesome thanks worked for me, now my bootloader is unlocked can I flash a recovery then the PRF I created without losing any data?
Click to expand...
Click to collapse
I just looked at my phone after unlocking the Bootloader and it has deleted all my photo's off the phone, and some that I can not get back of my son, is there any way that I can get these back, I used FlashTool to unlock the Bootloader
bjmag94 said:
I just looked at my phone after unlocking the Bootloader and it has deleted all my photo's off the phone, and some that I can not get back of my son, is there any way that I can get these back, I used FlashTool to unlock the Bootloader
Click to expand...
Click to collapse
do you guys even try to think about a data backup before messing around and doing things that are able do delete your stuff?
Photos were stored on internal or SD card?
SD will be easy (if you haven't writen a lot of data on it).
Internal could be difficult...
They were on my internal.
Yes I did think about it, but only backed it up yesterday and didn't realise that there were more photo's taken since, because my partner also uses it to take photo's because of the camera quality..
So I only lost about 20 photo's but still beside the point..
I didn't think that unlocking your bootloader would delete anything?
So now I am about to look into flashing recovery onto the phone so I can flash the firmware that I created..
Would you suggest backing up my data again prior to flashing the recovery, and then the new firmware?
And will I lose all my app data or is there a way of backing that up as well?
Also how would I flash the recovery?
Thank you!
MKRashka said:
do you guys even try to think about a data backup before messing around and doing things that are able do delete your stuff?
Photos were stored on internal or SD card?
SD will be easy (if you haven't writen a lot of data on it).
Internal could be difficult...
Click to expand...
Click to collapse
I know your problem, I#ve also all photos of my children on my mobile, but exclusivly on the SD card and backup them with Foldersync once a day (to a 256 GB Flashdrive on my fritzbox)
Your Problem now is, that with each file operation on you internal storage (Android operations also count), the bytes of your pictures vanish.
If you're rooted (I think so), you should try easus Android Data Recovery, it's the only tool I know, that can handle internal storage from Windows:
http://www.easeus.com/android-data-recovery/android-phone-internal-storage-recovery.html
I use a lot of easus tools and I always get it back up and running, so give it a shot and good luck!
Unlocking the Bootloader just deletes your TA Partition and with that you DRM Keys. So without a TA Backup or a DRM Fix, your camera quality will descent drastically.
Thank you, I am not rooted as of yet..
But I will still give that a shot and see what I can recover..
Hopefully I haven't lost it completely, oh well that will teach me for next time, so how will I flash the recovery onto my phone?
So then I can flash the pre-rooted firmware to get root access.
Is there any simple guides to follow? Or simple methods, like a code to run through fastboot cmd?
Thank you once again in advanced..
MKRashka said:
I know your problem, I#ve also all photos of my children on my mobile, but exclusivly on the SD card and backup them with Foldersync once a day (to a 256 GB Flashdrive on my fritzbox)
Your Problem now is, that with each file operation on you internal storage (Android operations also count), the bytes of your pictures vanish.
If you're rooted (I think so), you should try easus Android Data Recovery, it's the only tool I know, that can handle internal storage from Windows:
http://www.easeus.com/android-data-recovery/android-phone-internal-storage-recovery.html
I use a lot of easus tools and I always get it back up and running, so give it a shot and good luck!
Unlocking the Bootloader just deletes your TA Partition and with that you DRM Keys. So without a TA Backup or a DRM Fix, your camera quality will descent drastically.
Click to expand...
Click to collapse
1. Flash Recovery "twrp-3.0.2-0-E6653-20160504.img" (extract the zip before) via fastboot
2. Flash a rootable Customkernel (boot.img) (extract Z5_AndroPlusKernel_Permissive_v36.zip) via fastboot.
3. Flash "SuperSU-v2.76.zip" (copy the zip to SD or internal) via TWRP
Download the files here: https://www.dropbox.com/sh/6424n9sop6kqmj7/AADtEiR3EeZXxedR7_g9lA-ma?dl=0
I've rooted my brand new Z5 a week ago with these files.
4. Do a DRM fix to get the camera quality back you're used to, without you will have really bad pictures in low light condition:
http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
If you want to do a fresh systemflash before rooting your device, use Flashtools xperifirm to get the latest Marshmallow 6.0.1 Stock Rom
Do not check any point on "wipe" for flashing, unless you want to setup the whole phone new. It's possible that you have to if you update from 5.1.1
KR
Rashka
Thank you I am already running marshmallow 6.0.1.
I am using the Custom AU one.
I can't manually root it via SuperSU or anything though, not sure if it is a rootable firmwatte or not..
But how do I flash the recovery?
Sorry I new to all this, I done my Z2 about two years ago, followed a guide off here, but it was more simple for the Z2 than the Z5 I think..
And only had to flash a custom rom and it was already rooted and then had to install busybox to get recovery and done it that way..
But now I would not have a clue what the heck I am doing haha..
I will not lose any data while flashing a recovery will I?
MKRashka said:
1. Flash Recovery "twrp-3.0.2-0-E6653-20160504.img" (extract the zip before) via fastboot
2. Flash a rootable Customkernel (boot.img) (extract Z5_AndroPlusKernel_Permissive_v36.zip) via fastboot.
3. Flash "SuperSU-v2.76.zip" (copy the zip to SD or internal) via TWRP
Download the files here: https://www.dropbox.com/sh/6424n9sop6kqmj7/AADtEiR3EeZXxedR7_g9lA-ma?dl=0
I've rooted my brand new Z5 a week ago with these files.
4. Do a DRM fix to get the camera quality back you're used to, without you will have really bad pictures in low light condition:
http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
If you want to do a fresh systemflash before rooting your device, use Flashtools xperifirm to get the latest Marshmallow 6.0.1 Stock Rom
Do not check any point on "wipe" for flashing, unless you want to setup the whole phone new. It's possible that you have to if you update from 5.1.1
KR
Rashka
Click to expand...
Click to collapse
Why dont your take a backup of the phone via Xperia Companion?
Alternatively, use Titanium Backup (free on Google Play) after you are rooted - before flashing your own ROM
Did you read the WHOLE guide @Emilen942702 linked you to? Especially sections [GUIDE] GENERAL and [GUIDE] StockROM / # GUIDE
If you use AndroPlus kernel v.36 then no need to do the DRM fix as it is already included in the kernel.
MKRashka said:
do you guys even try to think about a data backup before messing around and doing things that are able do delete your stuff?
Photos were stored on internal or SD card?
SD will be easy (if you haven't writen a lot of data on it).
Internal could be difficult...
Click to expand...
Click to collapse
yes, that why i back everything i want to sd card and cloud storage, all automated
sent from my Xperia Z5
I flashed the Kernel and Recovery and installed SuperSU.
And the done the DRM, and now I can not use google play, keep getting an error saying that it can not connect to google play or some crap..
Any easy fixes without having to completely wipe and install a fresh rom?
bjmag94 said:
I flashed the Kernel and Recovery and installed SuperSU.
And the done the DRM, and now I can not use google play, keep getting an error saying that it can not connect to google play or some crap..
Any easy fixes without having to completely wipe and install a fresh rom?
Click to expand...
Click to collapse
Try to clear data/cache/force stop from :
-Google Services Framework (type the three dots in the upper right corner, and tick "display system apps")
-Google Play Store
-Google Play Services
If it doesn't work
Try to delete hosts file from /etc/hosts (with a root explorer) and reboot
And btw, do you have Freedom installed ?
I will give this a try, and yeah I do, about to uninstall it as it keeps changing on me
Emilen942702 said:
Try to clear data/cache/force stop from :
-Google Services Framework (type the three dots in the upper right corner, and tick "display system apps")
-Google Play Store
-Google Play Services
If it doesn't work
Try to delete hosts file from /etc/hosts (with a root explorer) and reboot
And btw, do you have Freedom installed ?
Click to expand...
Click to collapse
bjmag94 said:
I will give this a try, and yeah I do, about to uninstall it as it keeps changing on me
Click to expand...
Click to collapse
That's the reason, try to stop it Belfort uninstall, if you can't then just delete host file
Envoyé de mon E6653 en utilisant Tapatalk

Camera stopped working

Hi!
I have some problems with my Oreo stock firmware on G930f. I removed some system apps, like Facebook, Instagram and so on. Nothing that the system should need. But after this my camera stopped working, and flashlight says that an other app is using it. Is there a way to fix this without needing to flash firmware again? I don't want to format my data partition and set everything up again...
Thanks in advance!
You can flash the same firmware again without losing data if you use HOME_CSC instead of CSC along with AP, CP and BL
If you are rooted you'll have to root again and remove those apps again, but this time remove them one by one, reboot and test the camera after each, see if one of them kills it, then you know which one not to remove
Or use a package disabler instead of removing them, then you can just enable them again
*Detection* said:
You can flash the same firmware again without losing data if you use HOME_CSC instead of CSC along with AP, CP and BL
If you are rooted you'll have to root again and remove those apps again, but this time remove them one by one, reboot and test the camera after each, see if one of them kills it, then you know which one not to remove
Or use a package disabler instead of removing them, then you can just enable them again
Click to expand...
Click to collapse
Thanks!
Do you have an idea how to flash TWRP again without having to format data?
C_Karhu said:
Thanks!
Do you have an idea how to flash TWRP again without having to format data?
Click to expand...
Click to collapse
Not sure it's possible as TWRP can't read encrypted partitions, and stock firmware encrypts data
*Detection* said:
Not sure it's possible as TWRP can't read encrypted partitions, and stock firmware encrypts data
Click to expand...
Click to collapse
So the encryption is the issue? Maybe I'll try the flashable ecryption remover and see what happens!
Edit: Didn't go very well, so I formated data instead. Guess I'll leave the system partition alone from now on.
C_Karhu said:
So the encryption is the issue? Maybe I'll try the flashable ecryption remover and see what happens!
Edit: Didn't go very well, so I formated data instead. Guess I'll leave the system partition alone from now on.
Click to expand...
Click to collapse
lol, just make a Nandroid backup in TWRP, and if you break it again you can restore to exactly how it was when you backed up
Make regular backups and save them from the phone to PC, you can always restore that way

Categories

Resources