chriswoope / resign-android-image

Resign Android OS (esp. GrapheneOS) images with your signing keys and add ADB root and other modifications
MIT License
86 stars 6 forks source link

Cannot boot... #5

Open lfasnacht opened 2 years ago

lfasnacht commented 2 years ago

Hello!

I'm doing the following:

$ ./resign-android-image /tmp/graphene/work /tmp/graphene/keydir grapheneos raven 2022050800 --factory-zip --adb-root
[...]
MADE /tmp/graphene/work/out_resign/out/raven-factory-2022050800.zip with make_factory_zip
DISCARD: /tmp/graphene/work/out_resign/target_files.zip
DISCARD: /tmp/graphene/work/out_resign/factory
MAKING /tmp/graphene/work/out_resign/out/raven-factory-2022050800.zip.sig with make_factory_zip_sig
MADE /tmp/graphene/work/out_resign/out/raven-factory-2022050800.zip.sig with make_factory_zip_sig

I then unzip /tmp/graphene/work/out_resign/out/raven-factory-2022050800.zip, and run ./flash-all.sh.

I'm not able to boot then (it always shows the google logo for some time and I get back to fastboot).

I would appreciate some help (not familiar with this kind of stuff, to be honest). Thanks a lot!

chriswoope commented 2 years ago

Not sure about the problem, I was running that version on my Pixel 6 Pro installed with an OTA.

Maybe it could be a different otatools.zip or different build distribution that somehow trigger a bug?

Maybe you could try the latest release or without --adb-root, although it's not very likely that will fix it.

lfasnacht commented 2 years ago

Maybe you could try the latest release or without --adb-root, although it's not very likely that will fix it.

It still doesn't work.

Can you perhaps share the exacts steps you used to switch from an upstream GrapheneOS to your patched version? (if I follow exactly the same steps we might be able to see if it's something I'm doing wrong)

paweljasinski commented 2 years ago

Same problem with Pixel 7 6 Pro, raven-factory-2022063000 The otatools is https://ci.android.com/builds/submitted/8562694/aosp_cf_x86_64_phone-userdebug/latest/otatools.zip Other version of otatools triggers ERROR: Failed to obtain minSdkVersion: aapt2 return code 1: as described in https://github.com/chriswoope/resign-android-image/issues/1 Edit: fixed model number