Can't install latest OTA update #80

Closed
vanitasvitae opened this Issue Dec 7, 2015 · 12 comments

Comments

Projects
None yet
3 participants
@vanitasvitae

Hi
I tried installing the latest OTA update on my phone, but the installation failed. Is this update signed with another key? If so, is there a way to install the update over the existing system without losing installed apps/data?

@polyzen

This comment has been minimized.

Show comment Hide comment
@polyzen

polyzen Dec 7, 2015

@thestinger made some signing changes, so TWRP won't let you do your thing. If you would like to update without wiping, you will need to use Copperhead's current (as of yesterday) recovery image. Their web dev went AWOL, so it is not yet on the download page.

thestinger | https://paste.xinu.at/dEne/
thestinger | apply update
thestinger | sideload
thestinger | I upgraded from cm-12.1 to cm-13.0 copperhead without a wipe

If you're coming from 12.1 and have gapps installed, you may want to read this. The opengapps pico package works here.

Edit: Made some corrections..

polyzen commented Dec 7, 2015

@thestinger made some signing changes, so TWRP won't let you do your thing. If you would like to update without wiping, you will need to use Copperhead's current (as of yesterday) recovery image. Their web dev went AWOL, so it is not yet on the download page.

thestinger | https://paste.xinu.at/dEne/
thestinger | apply update
thestinger | sideload
thestinger | I upgraded from cm-12.1 to cm-13.0 copperhead without a wipe

If you're coming from 12.1 and have gapps installed, you may want to read this. The opengapps pico package works here.

Edit: Made some corrections..

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Dec 7, 2015

Contributor

I'll leave this open for now so other people can see it. Uploading the recovery images is a priority but it's difficult right now.

Contributor

thestinger commented Dec 7, 2015

I'll leave this open for now so other people can see it. Uploading the recovery images is a priority but it's difficult right now.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Dec 8, 2015

Contributor

The latest release is accompanied by a recovery image, and it will let you update without wiping/losing your data: https://copperhead.co/android/downloads?device=hammerhead.

Contributor

thestinger commented Dec 8, 2015

The latest release is accompanied by a recovery image, and it will let you update without wiping/losing your data: https://copperhead.co/android/downloads?device=hammerhead.

@thestinger thestinger closed this Dec 8, 2015

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Dec 8, 2015

Contributor

Note that if you have gapps, it's a lot more complicated (just as it is with CyanogenMod). You need to wipe /system, install the new OS and then install the new version of gapps. There's still no need to wipe your user data, but I highly recommend backing it up first for obvious reasons.

So upgrading will be a bit complicated since you need to wipe /system with TWRP, switch to Copperhead's recovery to sideload the OS (since TWRP will be unhappy with the /data metadata mismatch, which won't happen again - but it was unavoidable to fully move to proper signing), and then switch back to TWRP to sideload the new gapps version because our recovery requires that everything is signed with our key.

Contributor

thestinger commented Dec 8, 2015

Note that if you have gapps, it's a lot more complicated (just as it is with CyanogenMod). You need to wipe /system, install the new OS and then install the new version of gapps. There's still no need to wipe your user data, but I highly recommend backing it up first for obvious reasons.

So upgrading will be a bit complicated since you need to wipe /system with TWRP, switch to Copperhead's recovery to sideload the OS (since TWRP will be unhappy with the /data metadata mismatch, which won't happen again - but it was unavoidable to fully move to proper signing), and then switch back to TWRP to sideload the new gapps version because our recovery requires that everything is signed with our key.

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Dec 12, 2015

Reinstalled the latest Version after backing up my apps and data.

Nice work bzw :)

Reinstalled the latest Version after backing up my apps and data.

Nice work bzw :)

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Dec 14, 2015

The problem is still there for me. To switch from 12 to 13, I wiped everything (I set any flag in TWRP) and sideloaded the new rom. For some reason my old encryption password was still set, which I didnt expected but its OK :) Now I wanted to update to the latest Version (20151213) but I still get the error that TWRP cant install due to incompatible data. What do you suggest? Should I switch to Copperhead Recovery?

The problem is still there for me. To switch from 12 to 13, I wiped everything (I set any flag in TWRP) and sideloaded the new rom. For some reason my old encryption password was still set, which I didnt expected but its OK :) Now I wanted to update to the latest Version (20151213) but I still get the error that TWRP cant install due to incompatible data. What do you suggest? Should I switch to Copperhead Recovery?

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Dec 14, 2015

Contributor

If the old encryption password was set, data wasn't formatted. Formatting data would fix the problem. Copperhead Recovery also wouldn't have the problem because it just validates the key, it doesn't do this check.

Contributor

thestinger commented Dec 14, 2015

If the old encryption password was set, data wasn't formatted. Formatting data would fix the problem. Copperhead Recovery also wouldn't have the problem because it just validates the key, it doesn't do this check.

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Dec 14, 2015

Ah thats unfortunate. I was so convinced that I formatted data... Is it a big deal to switch to Copperhead Recovery? Would it delete my fikes and apps?

Ah thats unfortunate. I was so convinced that I formatted data... Is it a big deal to switch to Copperhead Recovery? Would it delete my fikes and apps?

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Dec 14, 2015

Contributor

No, it won't delete anything. I don't think over-the-air updates work with it yet though so you'll need to sideload them for now. That will be fixed soon.

Contributor

thestinger commented Dec 14, 2015

No, it won't delete anything. I don't think over-the-air updates work with it yet though so you'll need to sideload them for now. That will be fixed soon.

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Dec 20, 2015

Was there again a bigger change to signing? Copperhead Recovery don't want me to update by sideloading.

Was there again a bigger change to signing? Copperhead Recovery don't want me to update by sideloading.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Dec 20, 2015

Contributor

The CyanogenMod-based operating system was dropped. It's now a new AOSP-based operating system with new signing keys. There's no upgrade path from one to the other, it requires a full wipe.

Contributor

thestinger commented Dec 20, 2015

The CyanogenMod-based operating system was dropped. It's now a new AOSP-based operating system with new signing keys. There's no upgrade path from one to the other, it requires a full wipe.

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Dec 20, 2015

Ah okay. Thank you.

Ah okay. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment