-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems signing/recovery Pixel Experience for Oneplus Nord #186
Comments
Hi, please have a look at #60 and Clearing vbmeta flags. This might work for you as well. |
Ok I will test later and let you know. |
Can confirm that it works, thanks. |
@pascallj this is kinda of topic but i also need to patch my twrp/OrangeFox Recovery? |
I wouldn't recommend using a custom recovery if possible. Almost anything you flash from a custom recovery would make the partition signatures invalid. However, if you would like to do so anyway, you can add |
Well i will always sign my ota and use adb sideload but i would like to still use OrangeFox. But I will see probably i will use the recovery that is included with Pixel Extended |
@chenxiaolong I getting a strange behaviour if a flash the extracted files the device boot fine on PE but the recovery give me a black screen. |
This output is expected [the frist line is equal to the Readme just worry about the /system]? (using unsign recovery and everthing else sign):
|
Hmm, that's weird. Can you post the command you're running to patch the ROM + recovery? I'll test it on my end and compare the signed and unsigned recovery images to see if there's something weird going on. I can't really think of anything obvious--the only change avbroot does to that partition is update the certificate inside the recovery ramdisk's
Is there any chance that the recovery might be modifying The signatures for all partitions seem to be valid when running:
(If you want to run this command against a Pixel Experience OTA, you'll need #190 (download), which isn't in a stable avbroot release yet.) |
Previously, the AVB `algorithm_type` field was unconditionally being set to a value that is compatible with the AVB private key. However, for indirectly-signed boot images, the value should be set to `None`. Pixel bootloaders accept the incorrect value, but other devices' bootloaders might not. Issue: #186 Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
Previously, the AVB `algorithm_type` field was unconditionally being set to a value that is compatible with the AVB private key. However, for indirectly-signed boot images, the value should be set to `None`. Pixel bootloaders accept the incorrect value, but other devices' bootloaders might not. Issue: #186 Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
For flash I just using the same script of the readme I unpackaged the file using avbroot and then flash everything I will try again tomorrow but this time flash both particion a and b Output of the command:
|
I using the new version of avbroot you seen i gonna recreate the patched zips |
I can also verify with new release the new patched zips have valid signatures:
|
Tomorrow I will flash and see if reports success and the recovery works. |
Previously, the AVB `algorithm_type` field was unconditionally being set to a value that is compatible with the AVB private key. However, for indirectly-signed boot images, the value should be set to `None`. Pixel bootloaders accept the incorrect value, but other devices' bootloaders might not. Issue: #186 Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
Ok I will use. Thanks a lot for the help😄 |
well i getting black screen if i flash recovery using the script but using fastboot it work i gonna flash the recovery seperate via fastboot and see if stop getting black screen. Edit: when flashed again both recovery still produce blackscreen but they boot with fastboot boot command |
dmesg produce with OrangeFox/PE recovery:
dmesg produce with LineageOS recovery:
Edit: dmesg output its the same and LineageOs recovery also produce dark screen but it boot on recovery mode with fastboot boot |
I forget to send the command i use to sign.
link for recovery
|
Does adb shell work when it's sitting at the black screen or is the device just completely frozen? I have no idea why it would work via Can you post exactly how you're flashing everything? Are you just sideloading the OTA zip or is there anything else you're doing besides that? If you haven't already tried this, I suggest:
|
For flashing I using this script:
I only have acess to adb on OrangeFox Recovery. |
Well after a busy week. I will try this week doing the adb sideload |
I gonna close the issue since oneplus broke the functionality on android 12 bootloader. |
I having problems signing the PE OTA image for Oneplus Nord this means i will need to use another custom rom our i can solve it by build the rom and enable vbmeta headers (if possible)
➜ Oneplus ./avbroot ota patch
--input PixelExperience_Plus_avicii-13.0-20231003-1348-OFFICIAL.zip
--privkey-avb ./custom-keys/avb.key
--privkey-ota ./custom-keys/ota.key
--cert-ota ./custom-keys/ota.crt --rootless
[] Replacing zip entry: META-INF/com/android/otacert
[] Copying zip entry: apex_info.pb
[] Copying zip entry: care_map.pb
[] Patching zip entry: payload.bin
[] Extracting from original payload: vbmeta
[] Extracting from original payload: vbmeta_system
[] Extracting from original payload: recovery
[] Patching boot images: recovery
[*] Patching vbmeta images: vbmeta
Error: Failed to patch OTA zip
Caused by:
0: Failed to patch payload: payload.bin
1: vbmeta header flags disable AVB 0x3
The text was updated successfully, but these errors were encountered: