Hi there, first topic on XdaDev, as I really need some help here.
I flashed the wrong system file on my Zenfone 2, I installed the 550ML version instead of the 551 one, at first I had a black screen but managed to get a clean install and the phone seem to work fine. But it is also running at the settings of the 550ML, which means 720p resolution and lower CPU frequency, and I would like to roll back to the original settings of the 551ML with the stock firmware if possible.
My issue is that I cannot load the System.img anymore. I follow these steps :
In CMD:
"Adb reboot-bootloader"
Daemon started successfully - The phone reboots in fastboot mode
Then I enter:
"fastboot flash system system.img"
but I encounter the "cannot load system.img" issue
What am I supposed to do now ?
Thanks for any advice you can provide guys.
PS : The system file is inside my fastboot folder and this file is a rooted one, I also downloaded the firmware from Asus but I have no idea how to use it.
EDIT : So I finally managed to go back to the correct rooted system, which is the 551ML, thanks to this topic : http://forum.xda-developers.com/zenfone2/general/asus-zenfone-2-flashing-recovery-mode-t3096596
But I have another question, as it is my first android phone : If I want to update my system, will I encounter issues with the rooting ? What if I want to roll back to the stock system, how do I proceed ? Thank you guys, amazing forum you have there.
you can't go back right now,a file need another compatible file so you just have to reflash all the stuff from the beginning.
enter bootloader.wipe cache.in bootloader.ABSOLUTELY DONT SHUT DOWN.it can takes 15-20 minutes too.download latest firmware (2.19.40) for 551ml from here mega.co.nz/#F!k4MHiAgL!dVuOKeH3eokcwPSNI79ffw check if your device is ww or cn.unzip the file and move the files in the adb/fastboot folder.these are the sizes of the files you should have in the adb/fastboot folder
droidboot.img should be ~ 13MB
recovery.img should be ~ 11MB
boot.img should be ~ 11MB
system.img shuld be ~ 2GB
connect to pc.enter bootloader again.type ' fastboot devices ' to see if your device is recognized
flash files in this order.at the end of each line type enter
fastboot flash fastboot droidboot.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
then choose normal boot in bootloader.after all,wipe cache again
you will have a rooted firmware.good luck man
Related
Hey ,I have been around the forum and not only for trying to find a way to get back to stock. What I did was I used my Nandroids boot.img and recovery.img and the phone started normally on 4.1.1 as it was when I backed it up. But when I downloaded OTA and tried to install I had the internalstorage issue ,I tried extracting it manually from Downloads app and at it stucks with the note that "This file is corrupted". I then installed another recovery named -endeavoru.recovery.signed.img and when I try to get into recovery a red exlamation mark appears .And checking for software updated says that I am running newest version of android.. Help will be much appreciated
Thanks
Dan
twnc said:
Hey ,I have been around the forum and not only for trying to find a way to get back to stock. What I did was I used my Nandroids boot.img and recovery.img and the phone started normally on 4.1.1 as it was when I backed it up. But when I downloaded OTA and tried to install I had the internalstorage issue ,I tried extracting it manually from Downloads app and at it stucks with the note that "This file is corrupted". I then installed another recovery named -endeavoru.recovery.signed.img and when I try to get into recovery a red exlamation mark appears .And checking for software updated says that I am running newest version of android.. Help will be much appreciated
Thanks
Dan
Click to expand...
Click to collapse
You can try downloading latest ruu and extracting boot.img and system.img from there, here's the instructions https: //sites.google.com/site/ androidbyyorzua/home/tutorials/extracting-rom-files-from-htc-ruu (remove spaces)
You have to flash them with fastboot
twnc said:
Hey ,I have been around the forum and not only for trying to find a way to get back to stock. What I did was I used my Nandroids boot.img and recovery.img and the phone started normally on 4.1.1 as it was when I backed it up. But when I downloaded OTA and tried to install I had the internalstorage issue ,I tried extracting it manually from Downloads app and at it stucks with the note that "This file is corrupted". I then installed another recovery named -endeavoru.recovery.signed.img and when I try to get into recovery a red exlamation mark appears .And checking for software updated says that I am running newest version of android.. Help will be much appreciated
Thanks
Dan
Click to expand...
Click to collapse
Let me know what CID you have.
fastboot getvar cid
It is CID-032
twnc said:
It is CID-032
Click to expand...
Click to collapse
1. Download this file:
https://docs.google.com/file/d/0B2JsLtD098mdUlJmbzBfT0J5R3c/edit?usp=sharing
2. Copy the file to your Folder where fastboot is located and rename it to rom.zip
3. Connect your Phone within fastboot mode
4. Revert to OEM lock
fastboot oem lock
4. Flash your Phone with this command
fastboot oem rebootRUU fastboot flash zip rom.zip
5. Enter recovery and give a short press on POWER & VOL UP
- wipe Cache
- wipe data/factory Default
6. Flash the unlock token again to unlock your phone
7. Flash TWPR or CWR recovery
8. Search for a NANDROID Backup
http://forum.xda-developers.com/showthread.php?t=1975140
9. Copy this to your SDCard and flash this via CWM/TWPR Recovery
10. Start you phone and wait
11. Ignore the first setup and skip this
12. fastboot again and
fastboot oem lock
13. fastboot again and flash the firmware file again
fastboot oem rebootRUU fastboot flash zip rom.zip
14. Boot the device and within SENSE do a factory Default reset
15. The device will boot and jump in recovery to restore some files from the Cache which will take 10 to 20 sec.
16. After this the device will boot again.
17. DONE!
Thanks I will follow your guide carefully. So this will revert my phone to stock right?
twnc said:
Thanks I will follow your guide carefully. So this will revert my phone to stock right?
Click to expand...
Click to collapse
Full stock!
But within the boot loader you will always see the Information "RELOCKED"
Currently it is not possible to remove this because there would be S-OFF required.
MrT69 said:
Full stock!
But within the boot loader you will always see the Information "RELOCKED"
Currently it is not possible to remove this because there would be S-OFF required.
Click to expand...
Click to collapse
Thanks a LOT. Been struggling for a week now .Downloading nandroid in progress.
Me again... Followed the steps but when I tried to recover the backup it said that there was a problem with the system recovery and now I'm stuck at bootloop .Anyone any ideas please
EDITk managed to push stock ruu but whenever I try to restore it it gets me to the same error -error while installinng system .I happen to think it's from the recovery ..any1?
MrT69 said:
1. Download this file:
https://docs.google.com/file/d/0B2JsLtD098mdUlJmbzBfT0J5R3c/edit?usp=sharing
2. Copy the file to your Folder where fastboot is located and rename it to rom.zip
3. Connect your Phone within fastboot mode
4. Revert to OEM lock
fastboot oem lock
4. Flash your Phone with this command
fastboot oem rebootRUU fastboot flash zip rom.zip
5. Enter recovery and give a short press on POWER & VOL UP
- wipe Cache
- wipe data/factory Default
6. Flash the unlock token again to unlock your phone
7. Flash TWPR or CWR recovery
8. Search for a NANDROID Backup
http://forum.xda-developers.com/showthread.php?t=1975140
9. Copy this to your SDCard and flash this via CWM/TWPR Recovery
10. Start you phone and wait
11. Ignore the first setup and skip this
12. fastboot again and
fastboot oem lock
13. fastboot again and flash the firmware file again
fastboot oem rebootRUU fastboot flash zip rom.zip
14. Boot the device and within SENSE do a factory Default reset
15. The device will boot and jump in recovery to restore some files from the Cache which will take 10 to 20 sec.
16. After this the device will boot again.
17. DONE!
Click to expand...
Click to collapse
Do not listen to this guy,wrong guide.This will soft brick your phone (stuck at bootloop). After flashing rom.zip you have to flash unlocktocken in order to flash recovery and wipe cache and factory reset. AND DO NOT flash CWM or TWRP recovery as they will soft brick your phone giving you error while reverting system while restoring nandroid backup, instead flash the recovery located in the nandroid back up!
Hello everyone,
Need some help here, i don't want to factoy flash again, i have a nexus 7 2013 wifi on Lollipop (5.0) rooted with a custom kernel and TWRP.
How to update with the new OTA to 5.0.1, without loosing data and without having FC after the flash ?
Is there a way to flash it with TWRP or with Nexus Root Toolkit ?
I read that i can download the 5.01 system image from Google, extract the system.img from it and flash it in fasboot and i will conserve my data and be updated to 5.0.1.
Is that correct and without issues?
^Yes.
Fastboots the best way to go. No toolkits needed. Takes a couple minutes.
The normal commands to update would be:
fastboot flash bootloader bootloadername.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot format cache
fastboot reboot
Since the bootloader didn't change you can skip that part. The kernel (boot) didn't change either this time I don't think but I'd flash it always when flashing system.
Just drag system.img and boot.img to your fastboot folder (platform tools if you downloaded the sdk), hold shift and right click> open command window here then run the above commands.
Let it boot then reflash su from twrp.
Pretty sure you can also drag the image-razor.zip to your fastboot folder and run fastboot update imagename.zip. You will have to reflash twrp though.
Hi, this is a little off topic.
I have a 4.4.4 rooted one and it failed to update to 5.0.1. Now it says system is update even though it still 4.4.4. Is there anyway for me to fix it and get update?
yosmokinman said:
^Yes.
Fastboots the best way to go. No toolkits needed. Takes a couple minutes.
The normal commands to update would be:
fastboot flash bootloader bootloadername.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot format cache
fastboot reboot
Since the bootloader didn't change you can skip that part. The kernel (boot) didn't change either this time I don't think but I'd flash it always when flashing system.
Just drag system.img and boot.img to your fastboot folder (platform tools if you downloaded the sdk), hold shift and right click> open command window here then run the above commands.
Let it boot then reflash su from twrp.
Pretty sure you can also drag the image-razor.zip to your fastboot folder and run fastboot update imagename.zip. You will have to reflash twrp though.
Click to expand...
Click to collapse
Is running fastboot format cache necessary?
^I'm no expert but I can't see why not to run it, not going to hurt anything and could possibly save you some problems later.
anhhuy1605 I'd just go to the factory images page download it and do a full clean install. I would not recommend trying to upgrade from KK and keeping data. Though I'm sure it's worked fine for lots of people.
yosmokinman said:
^Yes.
Fastboots the best way to go. No toolkits needed. Takes a couple minutes.
The normal commands to update would be:
fastboot flash bootloader bootloadername.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot format cache
fastboot reboot
Since the bootloader didn't change you can skip that part. The kernel (boot) didn't change either this time I don't think but I'd flash it always when flashing system.
Just drag system.img and boot.img to your fastboot folder (platform tools if you downloaded the sdk), hold shift and right click> open command window here then run the above commands.
Let it boot then reflash su from twrp.
Pretty sure you can also drag the image-razor.zip to your fastboot folder and run fastboot update imagename.zip. You will have to reflash twrp though.
Click to expand...
Click to collapse
It's all done, i flashed only the system.img then TWRP and elementalx, i can't live without the DT2W.
Thank You for your very detailed post.
anhhuy1605 said:
Hi, this is a little off topic.
I have a 4.4.4 rooted one and it failed to update to 5.0.1. Now it says system is update even though it still 4.4.4. Is there anyway for me to fix it and get update?
Click to expand...
Click to collapse
First thing first:
1. Uninstall any mod and busybox and xposed (Make sur that your system is clean) thant Unroot with supersu
2. Flash the stock boot (kernel) and stock recovery
3. Sideload the ota for 5.0 and flash it
Hopefully it will be allright but don't forget to backup your data with titanium backup to your computer.
Hello eddy0147,
from where did you get the system.img for 5.0.1?
eddy0147 said:
It's all done, i flashed only the system.img then ...
Click to expand...
Click to collapse
Thanks!
tungdil
tungdil said:
Hello eddy0147,
from where did you get the system.img for 5.0.1?
Thanks!
tungdil
Click to expand...
Click to collapse
If you decompress the new Factory Image from here : https://developers.google.com/android/nexus/images
You're welcome
Thank you very much! :good:
Actually I expected that this factory image would also only contain a system.new.dat just like the LRX21P did before. That's why I din't even have a look at it. I just downloaded and extracted it, and could convert it to a mountable image (using simg2img)
Cheers,
tungdil
P.S.: Just finished flashing Stock 5.0.1 as secondary ROM with MultiROM after building a flashable zip using this system.img. Thanks again eddy0147 for the hint :good:
Hi,
I have tested some xposed frameworks' modules and I have got a bootloop (the zenfone shows the background for a second and then reboot).
From the boot mode (power+volume buttons procedure) I have tried a factory reset but it says that there is an error and stops on the "dead robot"..
Now I've decided to flash the phone with its original system image and I've found this guide
http://forum.xda-developers.com/zenfone2/help/how-to-upgrade-cn-version-to-ww-t3101556
At point III the guide says to use
Code:
fastboot flash system system.img
but only if you use Pre-ROOTed system image and then there is a link to the pre-rooted system image.
Where can I find an original system image?
I'm not an expert, I don't even know if this is the safest procedure to solve the bootloop....
please can someone help?
codecrusher said:
Hi,
I have tested some xposed frameworks' modules and I have got a bootloop (the zenfone shows the background for a second and then reboot).
From the boot mode (power+volume buttons procedure) I have tried a factory reset but it says that there is an error and stops on the "dead robot"..
Now I've decided to flash the phone with its original system image and I've found this guide
http://forum.xda-developers.com/zenfone2/help/how-to-upgrade-cn-version-to-ww-t3101556
At point III the guide says to use
Code:
fastboot flash system system.img
but only if you use Pre-ROOTed system image and then there is a link to the pre-rooted system image.
Where can I find an original system image?
I'm not an expert, I don't even know if this is the safest procedure to solve the bootloop....
please can someone help?
Click to expand...
Click to collapse
hi, by original system image did you mean the stock system image from stock rom? if it is, you need to download the whole Asus Zenfone 2 Firmware from the Official Asus support website and follow either these two steps:
3.1 Tools Required:
Asus USB Drivers
ADB installed on your PC/Laptop
Asus Zenfone 2 Firmware from the Official Asus support website
3.2 Flashing stock Asus Zenfone 2:
Method 1:
Turn off your Zenfone 2
Go to recovery mode
Select apply update from ADB
Connect your zenfone 2 with USB cable to your PC/laptop
Open command prompt in Windows (in the same folder where ADB is located)
Check connection by typing adb devices in the command prompt.. If connection successful there will be a list of Zenfone 2 device.
Type
Code:
adb sideload file.zip (where file.zip is the file name of the Asus firmware)
Wait until the process is complete
Method 2:
Copy Zenfone 2 Firmware to the SD card
Enter Recovery mode
Select Update via SD card
Select firmware
codecrusher said:
Hi,
I have tested some xposed frameworks' modules and I have got a bootloop (the zenfone shows the background for a second and then reboot).
From the boot mode (power+volume buttons procedure) I have tried a factory reset but it says that there is an error and stops on the "dead robot"..
Now I've decided to flash the phone with its original system image and I've found this guide
http://forum.xda-developers.com/zenfone2/help/how-to-upgrade-cn-version-to-ww-t3101556
At point III the guide says to use
Code:
fastboot flash system system.img
but only if you use Pre-ROOTed system image and then there is a link to the pre-rooted system image.
Where can I find an original system image?
I'm not an expert, I don't even know if this is the safest procedure to solve the bootloop....
please can someone help?
Click to expand...
Click to collapse
Some modules have been known to cause issues, there is a thread with a list of known mods that are safe to use in Q&A I believe...
cangcan said:
hi, by original system image did you mean the stock system image from stock rom? if it is, you need to download the whole Asus Zenfone 2 Firmware from the Official Asus support website and follow either these two steps:
3.1 Tools Required:
Asus USB Drivers
ADB installed on your PC/Laptop
Asus Zenfone 2 Firmware from the Official Asus support website
3.2 Flashing stock Asus Zenfone 2:
Method 1:
Turn off your Zenfone 2
Go to recovery mode
Select apply update from ADB
Connect your zenfone 2 with USB cable to your PC/laptop
Open command prompt in Windows (in the same folder where ADB is located)
Check connection by typing adb devices in the command prompt.. If connection successful there will be a list of Zenfone 2 device.
Type
Code:
adb sideload file.zip (where file.zip is the file name of the Asus firmware)
Wait until the process is complete
Method 2:
Copy Zenfone 2 Firmware to the SD card
Enter Recovery mode
Select Update via SD card
Select firmware
Click to expand...
Click to collapse
Yes, with original image I mean the stock system image from the stock rom.
I'll try method 1 but I have a question before:
Since I'm able to boot the phone into boot mode (where it receives adb commands) but I'm not able to boot it into recovery mode (it tries to load something and then stops with error)....do you know if it is the same to send adb commands in boot mode instead that in recovery mode (and I refer in particular to the command: "adb sideload stockasusfw.zip")?
Thank you guys
codecrusher said:
Hi,
I have tested some xposed frameworks' modules and I have got a bootloop (the zenfone shows the background for a second and then reboot).
From the boot mode (power+volume buttons procedure) I have tried a factory reset but it says that there is an error and stops on the "dead robot"..
Now I've decided to flash the phone with its original system image and I've found this guide
http://forum.xda-developers.com/zenfone2/help/how-to-upgrade-cn-version-to-ww-t3101556
At point III the guide says to use
Code:
fastboot flash system system.img
but only if you use Pre-ROOTed system image and then there is a link to the pre-rooted system image.
Where can I find an original system image?
I'm not an expert, I don't even know if this is the safest procedure to solve the bootloop....
please can someone help?
Click to expand...
Click to collapse
hmm.. i don't see the point to flash original system image if you want again to install Xposed.
Just reflash system.img preroot and install again your Xposed. That's all. (i've done that many times after trying some modules in Xposed getting me in bootloop)
Go in fastboot mode (power + volume UP) and fastboot flash system system.img and you're good to go to install again your xposed framework.
Preroot image is the same as the originale, but with SuperSu in addition.
ilos said:
hmm.. i don't see the point to flash original system image if you want again to install Xposed.
Just reflash system.img preroot and install again your Xposed. That's all. (i've done that many times after trying some modules in Xposed getting me in bootloop)
Go in fastboot mode (power + volume UP) and fastboot flash system system.img and you're good to go to install again your xposed framework.
Preroot image is the same as the originale, but with SuperSu in addition.
Click to expand...
Click to collapse
It's because prerooted image doesn't allow OTA updates.
However thanks, as I've said before this is my first bootloop and I was a little in panic.
Now that everything is clear I'm going to download and flash the system image.
In boot mode
Code:
fastboot flash system system.img
and it said something similar to this
Code:
target reported max download size of 518205818 bytes.
Invalid sparse file format at header magi fastboot
As I've said in a previous post, the phone did not enter into recovery mode because it got stucked on the "dead" robot. Now, don't know what it happens but after some minutes of "dead" robot, while I was surfing the net looking for solutions, it has finally loaded the recovery mode and from apply update from ADB I've tried
Code:
adb sideload blablabla.zip
the result was
Code:
r: device not found
After that...since I were into recovery mod, I've tried a wipe/factory reset and unexpectedly, the simplest thing has worked! I've got my phone back again.
I'm happy thought I don't understand the errors while flashing with adb and don't understand why the phone get at least 5 minutes of "dead" robot before entering into recovery mode...
Thanks for your support and for your patience
Hey guys, I have been working on this for a while an I think I finally have the answer as to keep stock AS990 and have a custom recovery.
Please note I will not be responsible for bricked devices. If you don't understand something do some research before you start.
Lets get started.
To get roms to install, I had to use the whole guide found here then install a custom rom, create a TWRP backup, take the backup off the internal sd card then once I finished the steps below I put the backup back onto my internal sdcard and used TWRP. Now some of you may be asking "Why the heck did he do that for?". Well when I went to install a ROM, I could not mount the system partition so therefore I used this work around because I had made a backup before I found out the method below. If anyone has a fix for this please be sure to comment.
Download and extract the files here
First off you will need to be on Stock AS990 and rooted. If you have not done this please follow the guide located here to do that.
If you are on a rom that cannot be rooted, follow this guide and use the files found in the restore bullet point to downgrade then root. Backing up your build.prop should not be necessary in this case since you are doing a downgrade.
After you have done this, root and use flashify to install ls990 TWRP.
Reboot your device into recovery.
If all goes well, You should now be stuck in fastboot mode.
Flash the following files found in the folder you downloaded earlier.
Open the folder you extracted the files to earlier, hold shift, right click in a section of the folder where no files are then select "open command window here".
Type the following commands into the CMD window.
fastboot flash aboot aboot.bin
fastboot flash boot boot.bin
fastboot flash dbi dbi.bin
fastboot flash factory factory.bin
fastboot flash misc misc.bin
fastboot flash modem modem.bin
fastboot flash persist persist.bin
fastboot flash PrimaryGPT PrimaryGPT.bin
fastboot flash recovery recovery.bin
fastboot flash rct rct.bin
fastboot flash rpm rpm.bin
fastboot flash sbl1 sbl1.bin
fastboot flash tz tz.bin
Pull the battery and turn back on and the rom should now boot back into your stock system.
Again use flashify to install ls990 TWRP.
Make a recovery of your current rom.
Flash the rom you backed up.
For me I have figured out how to get mms, data texting and calling on a custom rom with my carrier (Carolina West Wireless).
I installed Google Hangouts then used shortcut master lite to find the apn settings in hangouts which are not the same as using other methods.
If I left out anything please let me know thanks.
Well that's all for now.
Not sure who all to give credit to but this is a compilation of my work as well as all the guys who made the post above.
You may be able to use this method to root as well but have not tired that yet.
So I had a very old cm13 I think, never touched, but then thought of going for RR 7.1 rom,
but I had very old rom, and what I did is
used xFSTK-Downloader switched to second tab, mrd a0/bo+ moor a0 + crc
and then from options> modify settings
enable gp flag override 0x800000807(PLEASE HELP CONFIRM IF IT'S 4 OR 5 ZEROS BEFORE "807")
and then select fw dnx, ifwi and OS Image
begin download, connect phone with vol down button, let it happen it used to happen successfully
then I use asus flash tool, flash twice, first time wait for 30 mins, then for 20 mins, select wipe yes and select my device, reconnect usb and let it happen successfully
then I flash
fastboot flash splashimage splashimage.img
fastboot fastboot flash droidboot.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot format userdata
fastboot format cache
fastboot reboot
basically according to this vid
https://www.youtube.com/watch?v=RISRlqFj5k8&t=1139s
and after I got into device, updated to 2.20.40.194 and then to 4.21.40.223
all went success, but I forgot to download that bootloader unlock apk, and went to flash twrp, bad thing happen, phone was working, but could not get into recovery, so I thought of using the apk to unlock, and apk used to stop working, and then I tried the xfstk again to flash those three items, but now it's showing me
errors
FAILED (remote: flash_cmds error!)
so then I followed another guide to extract few files from latest stock firmware zip
I'm able to flash these files
bom-token_ann_a0-mofd_v1-ze551ml
dnx_fwr_ann_a0-mofd_v1-ze551ml
ifwi_ann_a0-mofd_v1-ze551ml
all those bin files get flashed successfully
but when it comes to splash, recovery boot droidboot system
it all ends up with that flash_cmds error!
so how do I get my phone fixed, please help
flash files with xfstk again with correct gp flag value. (u might have entered the earlier bootloader to make sure xfstk worked see ifwi version before and after flashing xfstk if it changes or not) when boots into temp bootloader flash desired bootloader files there. it will allow u to flash any image
keep in mind gp flag value is always 10 digits hence correct is four zeros. 0x80000807