1

I've been trying all day to install 5.1 OTA via ADB. In my struggle, I tried installing TWRP to try to get it to work, but it didn't. I since flashed the stock recovery.

When trying to flash via ADB, this is my output log:

Finding update package...
Opening update package...
Verifying update package...
Installing update...
Verifying current system...
"System/bin/install-recovery.sh" has unexpected contents.
E:Error in /sideload/package.zip
(Status 7)

Installation aborted.
0

1 Answer 1

2

Your clue is in the output log:

"System/bin/install-recovery.sh" has unexpected contents.

Since Android 5, OTA installs verify each partition as a whole so any changes will result in verification failing even if the file is not changed by the update. Something has changed the install-recovery.sh file, so you will need to revert the change or copy the original file back from a backup.

4
  • On my OP, someone said this was a possible duplicate of another question. Would flashing the system image from the 5.0.1 factory zip fix the recovery issue? Commented Mar 23, 2015 at 14:58
  • Yes, although you could just flash straight to the 5.1 factory image.
    – bmdixon
    Commented Mar 23, 2015 at 14:59
  • That erases everything, doesn't it? Commented Mar 23, 2015 at 15:00
  • It can but doesn't have to. If you follow (and adjust the names for the relevant 5.1 file) the steps here you can flash without wiping (assuming you have a unlocked bootloader).
    – bmdixon
    Commented Mar 23, 2015 at 15:02

Not the answer you're looking for? Browse other questions tagged .