Q: Error in flashing 5.1. Status 7, showing mismatch in just keys from kitkat 4.4 - Nexus 5 Q&A, Help & Troubleshooting

Hi Experts,
I've Nexus 5 running stock ROM LRX22C with CWM. I'm trying to flash stock 5.1 but I get the error in the start where it says my device has fingerprint user keys from kitkat 4.4 instead of 5.0. The exact message is as follows:
This device has Google/hammerhead/hammerhead:4.4/KRT16M/893903:user/release-keys
Status 7
I can edit the updater script to avoid checking it but I would like to fix it. Please advise if I need to go back to stock 4.4 and then upgrade to 5.0 and then 5.1?
Is there any lesser tedious method to fix it?
Thanks in advance for your help.

perceptorz said:
Hi Experts,
I've Nexus 5 running stock ROM LRX22C with CWM. I'm trying to flash stock 5.1 but I get the error in the start where it says my device has fingerprint user keys from kitkat 4.4 instead of 5.0. The exact message is as follows:
This device has Google/hammerhead/hammerhead:4.4/KRT16M/893903:user/release-keys
Status 7
I can edit the updater script to avoid checking it but I would like to fix it. Please advise if I need to go back to stock 4.4 and then upgrade to 5.0 and then 5.1?
Is there any lesser tedious method to fix it?
Thanks in advance for your help.
Click to expand...
Click to collapse
Download factory images and flash system.img, boot.img, radio.img and bootloader.img using fastboot while booted into the bootloader.

Just so that I can understand better, do I need to flash for all versions of just 5.1?
Sent from my Nexus 7 using XDA Free mobile app

perceptorz said:
Just so that I can understand better, do I need to flash for all versions of just 5.1?
Sent from my Nexus 7 using XDA Free mobile app
Click to expand...
Click to collapse
What do you mean?
If you mean flash old factory images first, then no, there is no point. Just download the 5.1 factory images and flash the .img files I mentioned (don't flash userdata.img since it'll wipe all data).

Thanks. I'll follow the instructions.
Sent from my Nexus 7 using XDA Free mobile app

perceptorz said:
Thanks. I'll follow the instructions.
Sent from my Nexus 7 using XDA Free mobile app
Click to expand...
Click to collapse
You can't take an OTA with a custom recovery, that's the problem.
Also, it's time to get rid of CWM.

So, what's your suggestion?
Sent from my Nexus 7 using XDA Free mobile app

Related

[Q] Can't update to 4.4.1 / 4.4.2

Hello everyone,
I wanted to update my nexus 5 from 4.4 to 4.4.2 but every time I try, even if I unrooted the phone and flashed the original kernel I get the same error while flashing the OTA with TWRP:
Verifying current system...
"system/bin/thermal-engine-hh" has unexpected (something out of the screen)
E:Error executing updater binary in zip ...
I'm not very good at this things, can someone help me?
skorski said:
Hello everyone,
I wanted to update my nexus 5 from 4.4 to 4.4.2 but every time I try, even if I unrooted the phone and flashed the original kernel I get the same error while flashing the OTA with TWRP:
Verifying current system...
"system/bin/thermal-engine-hh" has unexpected (something out of the screen)
E:Error executing updater binary in zip ...
I'm not very good at this things, can someone help me?
Click to expand...
Click to collapse
You need to use fastboot and flash the system and boot image from 4.4
Edit, see this thread http://forum.xda-developers.com/showthread.php?p=47369234
thank you but
jd1639 said:
You need to use fastboot and flash the system and boot image from 4.4
Edit, see this thread http://forum.xda-developers.com/showthread.php?p=47369234
Click to expand...
Click to collapse
thank you but can you be a little bit more specific? I have fastboot on my computer but I don't know how to use it.. and what's the difference between system and boot image? I have to flash the entire 4.4.2 500mb image found on google? Do I have to be unrooted and with original kernel? Thank you very much
skorski said:
thank you but can you be a little bit more specific? I have fastboot on my computer but I don't know how to use it.. and what's the difference between system and boot image? I have to flash the entire 4.4.2 500mb image found on google? Do I have to be unrooted and with original kernel? Thank you very much
Click to expand...
Click to collapse
You don't have to be unrooted. Download the factory image and extract the files from it. In there is another zip file which needs to be extracted. In there you'll find the system and boot images
Uninstall Xposed if you have it, also, you should try this: flash the 4.4 system.img extracted from the factory image then try flashing the OTA zip again.
Sent from my Nexus 5 using Tapatalk
thank you so much
jd1639 said:
You don't have to be unrooted. Download the factory image and extract the files from it. In there is another zip file which needs to be extracted. In there you'll find the system and boot images
Click to expand...
Click to collapse
It worked, you made my day! Thank you!
skorski said:
It worked, you made my day! Thank you!
Click to expand...
Click to collapse
No problem
Did you have to reinstall any apps or everything was still there like nothing happened?
Sent from my Nexus 5 using xda app-developers app
nitramus said:
Did you have to reinstall any apps or everything was still there like nothing happened?
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
You don't lose any apps
Sent from my Nexus 5 using xda app-developers app

[Q] Android 4.4.3 on a rooted device

I own a rooted Nexus 5 with KitKat 4.4.2. Yesterday the N5 "saw" the 4.4.3 update, so I've downloaded it and then installed it, but while the phone was rebooting after the installation, it displayed the dead android logo with an error message. I've shut it down and reboot the phone but it is still running the 4.4.2 instead of the 4.4.3 and it doesn't receive the new update again. What can I do?
Download a rooted version of the 4.4.3 Stock ROM from here on XDA.
Sent from my Nexus 5 using XDA Premium 4 mobile app
SimoPiersi said:
I own a rooted Nexus 5 with KitKat 4.4.2. Yesterday the N5 "saw" the 4.4.3 update, so I've downloaded it and then installed it, but while the phone was rebooting after the installation, it displayed the dead android logo with an error message. I've shut it down and reboot the phone but it is still running the 4.4.2 instead of the 4.4.3 and it doesn't receive the new update again. What can I do?
Click to expand...
Click to collapse
What's the error message? Did you previouslt root the phone on 4.4.2 by yourself or did you buy it which is already rooted?
shoeseat said:
What's the error message? Did you previouslt root the phone on 4.4.2 by yourself or did you buy it which is already rooted?
Click to expand...
Click to collapse
I rooted it by myself on KitKat 4.4.2.
what system mods did you make? this includes kernels and any changes to ANY file in the /system directory.
Download Vomers rom and flash it. Its stock 4.4.3. That's what I did and its running smoothly.
sEnT fROM rOoT hEaVen
[Q] in title most definitely means this should be in q&a and not general.
The reason it failed is because you weren't stock (kernel, recovery, all system apps, no xposed framework). You need all of those to flash ota.
Like posted above, download @vomer's 4.4.3 ROM and flash it. It's the same thing. I ran it for a week and its golden
Sent from my Nexus 5 using Tapatalk
Zepius said:
what system mods did you make? this includes kernels and any changes to ANY file in the /system directory.
Click to expand...
Click to collapse
I had the same problem and the only "mod" I did was the tethering mod where I added the tether_dun_required 0 change to the settings.db file
Would that be the reason why mine failed? I unlocked bootloader, rooted STOCK.
deeznutz206 said:
I had the same problem and the only "mod" I did was the tethering mod where I added the tether_dun_required 0 change to the settings.db file
Would that be the reason why mine failed? I unlocked bootloader, rooted STOCK.
Click to expand...
Click to collapse
No the settings.db is in /data.
Sent from my Nexus 5 using Tapatalk
rootSU said:
No the settings.db is in /data.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks. Then I am really stumped on why my update failed.
Is the recovery stock?
Sent from my Nexus 5 using Tapatalk
rootSU said:
Is the recovery stock?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yes
Would probably need to know the error message to further troubleshoot the issue.
If you want root after an OTA, you have to fastboot flash a custom recovery then flash the superSU zip to root, so as suggested you may aswell fastboot flash recovery then recovery flash the stock rooted rom already mentioned. Actually fewer steps doing that.
Sent from my Nexus 5 using Tapatalk

5.0.1 OTA?

just got the update alert on my nexus 5
Since I installed 5.0 is it safe to just take the OTA and re root or do you have to restore to stock recovery and all that jazz again?
It won't apply unless you're 100% stock.
rootSU said:
It won't apply unless you're 100% stock.
Click to expand...
Click to collapse
Arg
Sent from my Nexus 5 using XDA Free mobile app
tevil said:
Arg
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
You could just grab a stock 5.0.1 zip that's more than likely floating around. Someone always releases one, usually with root. Just don't forget the modem and kernel.
I looked for one an hour nor two back for someone. Think there will be one soon, but not yet that in could find but yeah, waiting for that is the best option
5.0.1 update
N/A
What is so different now that it needs to be stock for updates? Is it the new file system?
Sent from my Nexus 5 using XDA Free mobile app
tevil said:
What is so different now that it needs to be stock for updates? Is it the new file system?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
The update updates in blobs, not complete files. So if there is anything modified or missing it fails. That includes the recovery, system, kernel and radio.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
The update updates in blobs, not complete files. So if there is anything modified or missing it fails. That includes the recovery, system, kernel and radio.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
So if I flashed 4.4.2 radio on 5.0 earlier that could cause the update to fail?
stivelio said:
So if I flashed 4.4.2 radio on 5.0 earlier that could cause the update to fail?
Click to expand...
Click to collapse
Yes
Sent from my Nexus 5 using XDA Free mobile app
Hi.
I'm trying to apply 5.0.1 OTA file to my Nexus 5.0.0 (rooted with SuperSU).
When upgrading from 4.4.4 to 5.0.0, I had to flash stock recovery over TWRP to be able to apply 5.0.0 from 4.4.4 OTA file.
So I made the same now :
- reflash stock recovery from 5.0.0 stock
- upgrade adb to 1.0.32
But when I try to sideload OTA ZIP file, upload stop at 60% and I have this error :
Code:
"/system/bin/install-recovery.sh" has unespected contents.
E:Error in /sideload/package.zip
(Status 7)
I have to reflash system.img from 5.0.0 stock too ? I won't loose any data unless I flash userdata.img file, right ?
Thanks for your help.
mikebzh44 said:
Hi.
I'm trying to apply 5.0.1 OTA file to my Nexus 5.0.0 (rooted with SuperSU).
When upgrading from 4.4.4 to 5.0.0, I had to flash stock recovery over TWRP to be able to apply 5.0.0 from 4.4.4 OTA file.
So I made the same now :
- reflash stock recovery from 5.0.0 stock
- upgrade adb to 1.0.32
But when I try to sideload OTA ZIP file, upload stop at 60% and I have this error :
Code:
"/system/bin/install-recovery.sh" has unespected contents.
E:Error in /sideload/package.zip
(Status 7)
I have to reflash system.img from 5.0.0 stock too ? I won't loose any data unless I flash userdata.img file, right ?
Thanks for your help.
Click to expand...
Click to collapse
You went lose any data. I'd recommend you flash the boot.img too
Sent from my Nexus 5 using XDA Free mobile app

Reverting to 4.4.4

Hi
I'm currently running 5.0.1 stock rooted with TWRP recovery.
I'd like to downgrade to 4.4.4 to test maps and GPS.
Currently maps has me approx 15+ mtrs away and the orientation is wrong with me pointing in the wrong direction.
Do I simply need to download the image from Google and then clear system and cache, then flash the 4.4.4 system, cache and boot images ?
Will I need to downgrade the boot loader or radio ?
Thanks
Sent from my Nexus 7 using XDA Free mobile app
albert_htc said:
Hi
I'm currently running 5.0.1 stock rooted with TWRP recovery.
I'd like to downgrade to 4.4.4 to test maps and GPS.
Currently maps has me approx 15+ mtrs away and the orientation is wrong with me pointing in the wrong direction.
Do I simply need to download the image from Google and then clear system and cache, then flash the 4.4.4 system, cache and boot images ?
Will I need to downgrade the boot loader or radio ?
Thanks
Sent from my Nexus 7 using XDA Free mobile app
Click to expand...
Click to collapse
If you flash the complete 4.4.4 image everything (bootloader, radio and the system image) will be flashed and you`re phone will be wiped, so backup everything first before the flash. Just type in cmd: flash-all.
albert_htc said:
Hi
I'm currently running 5.0.1 stock rooted with TWRP recovery.
I'd like to downgrade to 4.4.4 to test maps and GPS.
Currently maps has me approx 15+ mtrs away and the orientation is wrong with me pointing in the wrong direction.
Do I simply need to download the image from Google and then clear system and cache, then flash the 4.4.4 system, cache and boot images ?
Will I need to downgrade the boot loader or radio ?
Thanks
Sent from my Nexus 7 using XDA Free mobile app
Click to expand...
Click to collapse
Try a different radio modem. There were posts a while ago saying people had gps issues on anything newer than the 4.4.2 radio
Sent from my Nexus 5 using Tapatalk (the older 4.9.5 not that new 4.10 abomination they released for god knows why reason)
Thanks.. I'll nandroid backup my phone and try this tomorrow!
Thanks
Sent from my Nexus 7 using XDA Free mobile app

Downgrade 5.1 to 5.0?

Hey, I was wondering if it'd be possible to downgrade from stock 5.1 back to stock 5.0.1 by running the flash command in the factory nexus 5 image (for android 5.0.1), also downgrading the bootloader and radio in the process?
I'm not sure about this device, but I recently hard bricked my moto g downgrading from the android 5 bootloader to the android 4.4 bootloader, so I was hesitant to just run the downgrade process.
Thanks.
arx160le said:
Hey, I was wondering if it'd be possible to downgrade from stock 5.1 back to stock 5.0.1 by running the flash command in the factory nexus 5 image (for android 5.0.1), also downgrading the bootloader and radio in the process?
I'm not sure about this device, but I recently hard bricked my moto g downgrading from the android 5 bootloader to the android 4.4 bootloader, so I was hesitant to just run the downgrade process.
Thanks.
Click to expand...
Click to collapse
Yes, it's a nexus device. You can flash whatever factory image version you want on it.
Sent from my Nexus 9 using XDA Free mobile app
arx160le said:
Hey, I was wondering if it'd be possible to downgrade from stock 5.1 back to stock 5.0.1 by running the flash command in the factory nexus 5 image (for android 5.0.1), also downgrading the bootloader and radio in the process?
I'm not sure about this device, but I recently hard bricked my moto g downgrading from the android 5 bootloader to the android 4.4 bootloader, so I was hesitant to just run the downgrade process.
Thanks.
Click to expand...
Click to collapse
jd1639 said:
Yes, it's a nexus device. You can flash whatever factory image version you want on it.
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
The Ultimate Device - The One. Using 5.0.1 with xPosed - couldn't be better.
arx160le said:
Hey, I was wondering if it'd be possible to downgrade from stock 5.1 back to stock 5.0.1 by running the flash command in the factory nexus 5 image (for android 5.0.1), also downgrading the bootloader and radio in the process?
I'm not sure about this device, but I recently hard bricked my moto g downgrading from the android 5 bootloader to the android 4.4 bootloader, so I was hesitant to just run the downgrade process.
Thanks.
Click to expand...
Click to collapse
jd1639 said:
Yes, it's a nexus device. You can flash whatever factory image version you want on it.
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
zagorteney said:
The Ultimate Device - The One. Using 5.0.1 with xPosed - couldn't be better.
Click to expand...
Click to collapse
Can I just follow this instructions to downgrade from 5.1 to 5.0.1? Or should I do something else? I'll lose root, right? 5.1 messed up my Nexus 5, battery is lasting 40% less than it used to, and Google Play Services seems to be to blame. Getting real sick of this.
Yes.
Sent from my SHIELD Tablet using Tapatalk
ldubs said:
Yes.
Sent from my SHIELD Tablet using Tapatalk
Click to expand...
Click to collapse
Yes I can just follow the instructions? Yes I need to do something else? Yes I'll lose root?
Adrianrff said:
Yes I can just follow the instructions? Yes I need to do something else? Yes I'll lose root?
Click to expand...
Click to collapse
Yes, follow the instructions. And, yes, you'll lose root. And, no, you don't need to do anything else. Except maybe root it again you want that. Also see this, http://forum.xda-developers.com/showthread.php?p=47156064
Sent from my Nexus 9 using XDA Free mobile app
Will it wipe data?
If i downgrade android 5.1 to 5.0 will i have to wipe? (My bootloader is already unlocked, as I have had it rooted before, but android is stock and I dont have a custom recovery)
Pure_Android said:
If i downgrade android 5.1 to 5.0 will i have to wipe? (My bootloader is already unlocked, as I have had it rooted before, but android is stock and I dont have a custom recovery)
Click to expand...
Click to collapse
Anytime you flash any factory images you're device will be wiped clean. Data, app, everything. So back up anything important.
Sent from my 1+1
Mojar7070 said:
Anytime you flash any factory images you're device will be wiped clean. Data, app, everything. So back up anything important.
Sent from my 1+1
Click to expand...
Click to collapse
Is there any way to get my user data back, so app settings ans so on? If i just restore the data partition from the backup i made on 5.1 with TWRP i get a botloop. It makes sense that i can't just use my user data from a higher version but how do i fix this?
exquyre said:
Is there any way to get my user data back, so app settings ans so on? If i just restore the data partition from the backup i made on 5.1 with TWRP i get a botloop. It makes sense that i can't just use my user data from a higher version but how do i fix this?
Click to expand...
Click to collapse
You have to flash 5.1 again. Restore data from TWRP. Boot the phone and use some backup program (titanium backup is my favourite). Flash 5.0.1 again (do not restore backup from TWRP), boot and restore from the app you choose. You will probably get some force closes, but you can then just wipe data for those FC apps.
Quick suggestion: if it is possible, make .xml backups for system data.

Categories

Resources