I'm unable to flash or restore a stock based or stock ROM. When I do, I get a screen at boot up that says the update failed, try again. If I try to flash a stock ftf, it stops at system.sin and gives a header error.
I am able to flash kernels with fastboot and can flash and restore Slimrom, CM 11 and CM 12.
In have a c6903 with an unlocked bootloader.
Try reinstall drivers, update/reinstall Flashtool.
Maybe a bad recovery? Corrupted FTF?
Try this too:
Open windows task manager, go to process tab and kill adb.exe, reboot windows. I don't know if this will work but its worth to give a shot.
Thanks. I've tried 2 ftfs but I'll try a third after doing the other things suggested.
Any news tgilmore16?
Didn't work. I'll try again tomorrow on a different PC.
Fixed. Thanks.
The steps were:
1. Relock bootloader with flashtool
2. Flashed a stock ftf but excluded system.
3. Rooted
4. Installed NUT's dual recovery
5. Flashed superSU
6. Rebooted and saw I had root
7. Rebooted to TWRP and saw I had TA as an option in backup and restore. Did a backup and have been running ok since.
Not being an expert, I'm guessing everything had something to do with the partitions.
Good, but have in mind that Flashtool and TWRP doesn't backup/restore TA DRM keys, just the partition.
TurokHunter47 said:
Good, but have in mind that Flashtool and TWRP doesn't backup/restore TA DRM keys, just the partition.
Click to expand...
Click to collapse
I think you're right, but I think the missing partitions had something to do with it or something in the partition tables were possibly corrupted. I haven't tried to restore the keys but being curious, I probably will give it a shot.
Related
I'm not too experienced in flashing roms so please have some patience with me.
I recently installed the ota update from htc and then unlocked the bootloader through the official htcdev site. I then flashed clockworkmod recovery through fastboot and flashed cm7 through CWM. I'm still running cm7 at the moment.
However, I am now not able to restore my phone back to the stock rom. I tried to restore the stock rom through a backup I did on nandroid in CWM. It went through all the steps and told me that the backup has been successfully restored. But after choosing the reboot phone option, the screen shows the white HTC screen, followed by a black screen for a couple of seconds, then the white HTC screen again, and then it finally brings me to CWM.
I'm not sure what I can do to restore my phone to stock rom. I went back to cm7 and tried to restore using ROM manager but it didn't work out too.
Help please!
Hboot 2.00
Radio 3822.10.08.28_M
(I'm not sure what other info might be needed so just let me know and i'll post it on here)
I have the same issue, I have a feeling about the cause but it is just a brainstrom. I could be wrong.
It might have something to do with ext4 vs ext3 file system. Custom roms usually format your phone in ext4 format while the stock rom only supports ext3
I would try and search a a format script that formats in ext3. (zip file format so you can flash it through clockwork or something)
fallenwout said:
I have the same issue, I have a feeling about the cause but it is just a brainstrom. I could be wrong.
It might have something to do with ext4 vs ext3 file system. Custom roms usually format your phone in ext4 format while the stock rom only supports ext3
I would try and search a a format script that formats in ext3. (zip file format so you can flash it through clockwork or something)
Click to expand...
Click to collapse
Awesome if you do manage to find it please post it
crunchyHTC said:
I'm not too experienced in flashing roms so please have some patience with me.
I recently installed the ota update from htc and then unlocked the bootloader through the official htcdev site. I then flashed clockworkmod recovery through fastboot and flashed cm7 through CWM. I'm still running cm7 at the moment.
However, I am now not able to restore my phone back to the stock rom. I tried to restore the stock rom through a backup I did on nandroid in CWM. It went through all the steps and told me that the backup has been successfully restored. But after choosing the reboot phone option, the screen shows the white HTC screen, followed by a black screen for a couple of seconds, then the white HTC screen again, and then it finally brings me to CWM.
I'm not sure what I can do to restore my phone to stock rom. I went back to cm7 and tried to restore using ROM manager but it didn't work out too.
Help please!
Hboot 2.00
Radio 3822.10.08.28_M
(I'm not sure what other info might be needed so just let me know and i'll post it on here)
Click to expand...
Click to collapse
fallenwout said:
I have the same issue, I have a feeling about the cause but it is just a brainstrom. I could be wrong.
It might have something to do with ext4 vs ext3 file system. Custom roms usually format your phone in ext4 format while the stock rom only supports ext3
I would try and search a a format script that formats in ext3. (zip file format so you can flash it through clockwork or something)
Click to expand...
Click to collapse
With the unlocked bootloader, when the device is in recovery mode, it cannot overwrite the boot.img partition. So when you flash a custom ROM in CWM, you must manually extract the boot.img file from the zip file and flash it manually in Fastboot mode using the command:
fastboot flash boot boot.img
In the case when you are attempting to restore a previous backup, the same is true, except in this case you would manually flash the boot.img from the CWM backup folder in Fastboot mode.
This should solve both of the situations you have encountered.
Okay that method worked a charm. Just flashed back the stock rom.
Thanks for much for that!
crunchyHTC said:
Okay that method worked a charm. Just flashed back the stock rom.
Thanks for much for that!
Click to expand...
Click to collapse
Weird, didnt work for me. Dit you manually flashed the boot.img extracted from the nandroid backup?
Yup. So i took the backup from my sd card and put the backup onto my computer. Then I used clockworkmod recovery to restore the backup, and then used fastboot on the computer to manually flash boot.img through usb.
Hope that helps
Cannot restore with the procedure.
I have been trying to restore stock rom but I'm unable to do it.
I flashed boot.img using command prompt.
Restored it via Clockworkmod recovery but after restoring when i reboot the phone, it again takes me to recovery mode.
What should I do?
Maybe it is because you have changed the backup name.. I heard that if you change the stock from backup name you will wreck the md5sum ...
___________________________
Device: HTC Incredible S
Bootloader: S-OFF - ENG
Rom: ARHD 2.2.0
Android for life!
NicOsol said:
Maybe it is because you have changed the backup name.. I heard that if you change the stock from backup name you will wreck the md5sum ...
___________________________
Device: HTC Incredible S
Bootloader: S-OFF - ENG
Rom: ARHD 2.2.0
Android for life!
Click to expand...
Click to collapse
No..I have not changed anything.
I even tried formatting it in ext3 using Touch recovery and then tried to back up..but it didn't work.
It just keeps on taking me to recovery mode when I reboot.
Why don't you guys get s-off? I'll post a link when I'm on my PC on how to do it. That way, you won't have to flash the boot.img each Time you install a new rom...
Sent from my HTC Incredible S using XDA
tpbklake said:
With the unlocked bootloader, when the device is in recovery mode, it cannot overwrite the boot.img partition. So when you flash a custom ROM in CWM, you must manually extract the boot.img file from the zip file and flash it manually in Fastboot mode using the command:
fastboot flash boot boot.img
In the case when you are attempting to restore a previous backup, the same is true, except in this case you would manually flash the boot.img from the CWM backup folder in Fastboot mode.
This should solve both of the situations you have encountered.
Click to expand...
Click to collapse
Hello, I tried with "fastboot flash boot boot.img" took the boot.img from the backup and then I did a restore but it always goes into recovery mode, what else can I do?
Hey all.
Long time phone modder so I'm not new to this but this XZ1 has got me stumped.
I can't find anything specifically for recoveries but all ROM install guides I see mention to boot to recovery.
Currently I've got an unlocked bootloader and the ROM and Kernel ready to go.
As far as I know the XZ1 doesn't come with a user-accessible recovery on the stock firmware/kernel.
Now from flashing other ROMs, kernels, recoveries and such I have to come to learn that the boot.img is JUST the kernel, nothing else.
All posts I've read however point to the XZ1 boot.img having the recovery and the kernel all in one spot.
Could someone confirm the process from here or if I'm right regarding the boot.img being kernel AND recovery?
Many thanks.
Enter fast boot mode, them use this
Fastboot flash boot boot.img
Sent from my C6903 using XDA Premium 4 mobile app
gregbradley said:
Enter fast boot mode, them use this
Fastboot flash boot boot.img
Sent from my C6903 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
So I was correct in assuming the boot.img for the XZ1 contains a recovery as well as a kernel?
How come when I flash the iHackers.img to the boot it won't load up any more. As soon as the cable is removed it stays off and won't come back on. Just flashes a red light and buzzes once. Won't go past that. I can reenter fastboot and flashmode (had to reflash a stock several times due to this not working).
I have also confirmed the MD5 sum matches.
potplanty said:
So I was correct in assuming the boot.img for the XZ1 contains a recovery as well as a kernel?
How come when I flash the iHackers.img to the boot it won't load up any more. As soon as the cable is removed it stays off and won't come back on. Just flashes a red light and buzzes once. Won't go past that. I can reenter fastboot and flashmode (had to reflash a stock several times due to this not working).
I have also confirmed the MD5 sum matches.
Click to expand...
Click to collapse
hmm, make sure you have plenty of battery, also you will have to power on the phone and keep pressing volume up until it enters recovery.
If that does not work follow the locked bootloader instructions.
There is no separate partition on sony phones for recovery as they do not come with an accessable factory recovery. All recoveries have to in a custom kernel (For unlocked bootloaders) or installed into system (For locked bootloaders or unlocked bootloaders with a stock kernel)
gregbradley said:
There is no separate partition on sony phones for recovery as they do not come with an accessable factory recovery. All recoveries have to in a custom kernel (For unlocked bootloaders) or installed into system (For locked bootloaders or unlocked bootloaders with a stock kernel)
Click to expand...
Click to collapse
This is a very unsafe way to have recovery. Isn't it? A recovery should work outside of System Partition to do the job right. Recoveries into Kernel or System do not guarantee if something go wrong to run up when a entire partition can be damage or system corrupted.
Am I wrong?
eclyptos said:
This is a very unsafe way to have recovery. Isn't it? A recovery should work outside of System Partition to do the job right. Recoveries into Kernel or System do not guarantee if something go wrong to run up when a entire partition can be damage or system corrupted.
Am I wrong?
Click to expand...
Click to collapse
Well, since xperia phones do not have a recovery partition it is the only way to do it.
Take a look at where dualrecovery install the recovery ramdisks on a locked bootloader...its right in the system partition
system/bin
Its where all xperia recoveries go, unless they are incorporated in the kernel
Its why we lose recovery if we flash a stock FTF, because it formats system..
gregbradley said:
Its why we lose recovery if we flash a stock FTF, because it formats system..
Click to expand...
Click to collapse
Flashing Stock FTF will delete partitions in any case, it's the same with HTC.
Why just don't repartitioning the internal memory and install recovery in a specific partition?
I can't boot XZR(C5502) since i tried to flash a CWM based Rom.
1)Xperia ZR 10.5.A.0.230 ROOTED[Locked bootloader]
2)Recovery installed Philz touch,cwm,twrp by NUT
3)I have Nandroid backup also have TA backup.
4)I dont remember about USB debugging on or off.
5)I tried to enter in recovery but nothing happend.
6)While entering in fastboot blue LED lights up.nothing on screen.
Please tell what to do?
Please paste a link for ftf file(indian).I can't find 10.5.A.0.230 for C5502 indian.
Is it ok to flash nordic or some other varient of ftf.
1. Did you check if the ROM requires an unlocked bootloader?
2. Did you perform a factory reset in recovery before flashing?
If you can't enter recovery, it's likely that zip you flashed included a kernel, and the kernel flash failed because of the locked bootloader. Find a stock FTF (doesn't matter which variant, only thing that changes is the bloatware and the default language, which you can change on first setup, all Sony media apps are the same), flash it, unlock bootloader (make sure you still have your TA backup, if not, root and take it again), install recovery and try flashing the ROM again.
P.S. Fastboot only shows the blue LED, nothing on the screen, there's nothing wrong.
Good luck!
SirVer said:
1. Did you check if the ROM requires an unlocked bootloader?
2. Did you perform a factory reset in recovery before flashing?
If you can't enter recovery, it's likely that zip you flashed included a kernel, and the kernel flash failed because of the locked bootloader. Find a stock FTF (doesn't matter which variant, only thing that changes is the bloatware and the default language, which you can change on first setup, all Sony media apps are the same), flash it, unlock bootloader (make sure you still have your TA backup, if not, root and take it again), install recovery and try flashing the ROM again.
P.S. Fastboot only shows the blue LED, nothing on the screen, there's nothing wrong.
Good luck!
Click to expand...
Click to collapse
I did all of above things.But should I unlock the bootloader.I am aware about BE 2 stops working.
Will BE 2 work after restoring TA backup.
dtechgeek said:
I did all of above things.But should I unlock the bootloader.I am aware about BE 2 stops working.
Will BE 2 work after restoring TA backup.
Click to expand...
Click to collapse
Yes BE2 will work after restoring TA Backup. I guess (not sure), restoring TA will lock the bootloader as well. Correct me if I am wrong :angel::angel:
anthonythangaraj said:
Yes BE2 will work after restoring TA Backup. I guess (not sure), restoring TA will lock the bootloader as well. Correct me if I am wrong :angel::angel:
Click to expand...
Click to collapse
you are right plus you need to get back to stock kernel before restoring your ta
Hey there.
I'm in need of some help.
Last night, I was installing https://forum.xda-developers.com/z3-compact/orig-development/cr-5-1-carbonrom-t3529766 on my phone, going from stock 6.0.1. The steps I followed were:
First unlocked my bootloader. Phone boots up fine.
Flashed twrp and booted it. On twrp, the zip I was going to use gave me a error 7. Followed the instructions regarding that, and removed the get.prop lines.
Now it flashed without any errors.
Rebooted phone. It's stuck on bootloop (The Sony logo shows up for a split second and then starts again).
Tried relocking bootloader and flashing stock ftf, but it's still stuck on bootloop. Also tried flashing EliteKernelV3 but to no avail.
I have access to flashmode and fastboot, but can't get into recovery nor offline charging. Think messed up my partition table, and I can't figure what to do. Searched a lot on the forum, but usually the similar problems are solved by flashing stock ftf, wich is not happening to me.
Would be really grateful if some could shed some light on my case.
EDIT: I made a TA-backup prior to flashing custom ROM.
juliloko said:
Hey there.
I'm in need of some help.
Last night, I was installing https://forum.xda-developers.com/z3-compact/orig-development/cr-5-1-carbonrom-t3529766 on my phone, going from stock 6.0.1. The steps I followed were:
First unlocked my bootloader. Phone boots up fine.
Flashed twrp and booted it. On twrp, the zip I was going to use gave me a error 7. Followed the instructions regarding that, and removed the get.prop lines.
Now it flashed without any errors.
Rebooted phone. It's stuck on bootloop (The Sony logo shows up for a split second and then starts again).
Tried relocking bootloader and flashing stock ftf, but it's still stuck on bootloop. Also tried flashing EliteKernelV3 but to no avail.
I have access to flashmode and fastboot, but can't get into recovery nor offline charging. Think messed up my partition table, and I can't figure what to do. Searched a lot on the forum, but usually the similar problems are solved by flashing stock ftf, wich is not happening to me.
Would be really grateful if some could shed some light on my case.
EDIT: I made a TA-backup prior to flashing custom ROM.
Click to expand...
Click to collapse
unlock the bootloader after this flash stock ftf , or try flash tool EMMA, and about this :https://forum.xda-developers.com/z3-compact/orig-development/cr-5-1-carbonrom-t3529766 after flash try 'wipe-factory restore' on TWRP
GL
yo7fb said:
unlock the bootloader after this flash stock ftf , or try flash tool EMMA, and about this :https://forum.xda-developers.com/z3-compact/orig-development/cr-5-1-carbonrom-t3529766 after flash try 'wipe-factory restore' on TWRP
GL
Click to expand...
Click to collapse
After I flashed the ROM, I did a factory restore.
Unlocked bootloader, flashed with EMMA, and it is still stuck on bootloop.
Thanks anyway.
juliloko said:
After I flashed the ROM, I did a factory restore.
Unlocked bootloader, flashed with EMMA, and it is still stuck on bootloop.
Thanks anyway.
Click to expand...
Click to collapse
Try flashing an older firmware like KitKat it maybe has the Z3C partition table inside of the ftf,but the MM firmware doesn't.
Dinkec27 said:
Try flashing an older firmware like KitKat it maybe has the Z3C partition table inside of the ftf,but the MM firmware doesn't.
Click to expand...
Click to collapse
Indeed KK has partition table on the ftf, but it is still stuck on bootloader. I guess I'll contact Sony to see if they have a way of fixing it.
Thanks guys!
I just came to know that unlocking my xiaomi device will erase its data !!!!
Is this true??????
this thread says this only!!! -> https://twrp.me/xiaomi/xiaomiredmi4x.html
:crying::crying:
KCstark said:
I just came to know that unlocking my xiaomi device will erase its data !!!!
Is this true??????
this thread says this only!!! -> https://twrp.me/xiaomi/xiaomiredmi4x.html
:crying::crying:
Click to expand...
Click to collapse
Unlocking bootloader always erases Data Partition. First check that yours one is unlocked or not, not most devices are come locked. Unlocking will take time as Xiaomi gives you permission to unlock by their own software.
Make a backup, get all your data off then root it. I'm not entirely sure if you can unlock without erasing, but you should never be in a position where you can't afford to reinstall your applications.
This is why it is always best to get twrp on your phone asap so you can back up it.
No, unlocking bootloader doesn't wipes data but you must backup everything just in case anything goes wrong.
it is always recommended to backup everything when flashing ROM, kernel, mod, zip, flashing rom via fastboot method and recovery. in short you should backup everything in all this cases.
shohabmsk said:
Unlocking bootloader always erases Data Partition. First check that yours one is unlocked or not, not most devices are come locked. Unlocking will take time as Xiaomi gives you permission to unlock by their own software.
Click to expand...
Click to collapse
Actually I know most part and have already done getting permission but this was just a quick question as that's my sister's device and she won't accept its data being erased still thanks for your quick answer...
And by the way that device's bootloader is locked I have checked it.
.....:good:
metelhammer said:
No, unlocking bootloader doesn't wipes data but you must backup everything just in case anything goes wrong.
it is always recommended to backup everything when flashing ROM, kernel, mod, zip, flashing rom via fastboot method and recovery. in short you should backup everything in all this cases.
Click to expand...
Click to collapse
Have u done it your self if yes did u lose any of your data. Plz let me know......
KCstark said:
Have u done it your self if yes did u lose any of your data. Plz let me know......
Click to expand...
Click to collapse
Yes i have flashed recovery and roms i always do backup important thing and i take screenshot of installed apps before making any changes and save them to pc or to cloud storage.
there was issue i had was when i flashed TWRP 3.2.1.0 via adb i do not why but it asked me for password i didn't know to password so i had to wipe everything including internal storage and data.
latest twrp is must which is TWRP 3.2.1.0 in order to flash Oreo based ROM.
i was using TWRP 3.0.2-0 before and i had no issue with this recovery i has flashed several nougat roms on this recovery even have upgraded and downgraded from miui9 to miui 8 everything worked perfectly.
i don't know why but i wasn't able to flash any marshmallow based or nougat based roms on TWRP 3.2.1.0 recovery.
yes i did lose data when upgrading from TWRP 3.0.2-0 to TWRP 3.2.1.0 but i had done backup so no issues.
i would highly recommend you to do backup if you are making any changes in your device.
metelhammer said:
Yes i have flashed recovery and roms i always do backup important thing and i take screenshot of installed apps before making any changes and save them to pc or to cloud storage.
there was issue i had was when i flashed TWRP 3.2.1.0 via adb i do not why but it asked me for password i didn't know to password so i had to wipe everything including internal storage and data.
latest twrp is must which is TWRP 3.2.1.0 in order to flash Oreo based ROM.
i was using TWRP 3.0.2-0 before and i had no issue with this recovery i has flashed several nougat roms on this recovery even have upgraded and downgraded from miui9 to miui 8 everything worked perfectly.
i don't know why but i wasn't able to flash any marshmallow based or nougat based roms on TWRP 3.2.1.0 recovery.
yes i did lose data when upgrading from TWRP 3.0.2-0 to TWRP 3.2.1.0 but i had done backup so no issues.
i would highly recommend you to do backup if you are making any changes in your device.
Click to expand...
Click to collapse
Thanks bro
you need to install stock rom after unlocking
Unlocking Xiaomi Redmi4x santoni bootloader doesn't delete the data partition, but after unlocking the bootloader your phone won't boot, you need to install the same stock rom it was on phone previously.
Download MIUI Stock ROMs (if you didn't make OTA update from MIUI, check Older versions and download the correct ROM)
You can copy the ROM image to phone before unlocking or if you have already unlocked and stuck in boot, you can copy the ROM to an USB flash drive.
You need ADB installed on your PC.
Download the TWRP for Xiaomi Redmi 4X image.
If you want to restore the existing state of your phone, you need to make a backup of the data partition.
Press Volume Down + Power until phone gets in FASTBOOT.
Connect phone to PC with USB cable.
From PC command prompt type the command: fastboot.exe boot twrp-3.2.1-0-santoni.img
TWRP will start on your phone, you can backup all of the partitions, but you need only the data partition to restore.
Now Install the stock rom (you can select USB OTG if ROM is on USB drive), then RESTORE the backed up DATA partition only.