Divested-Mobile/DivestOS-Build

Signature verification failed

zerotrust-community opened this issue · 14 comments

Hi, i tried to install divestos on https://wiki.lineageos.org/devices/alioth/variant1/ but i unable to do this, i get error Signature verification failed on step 10 (Choose "Apply update", then "Apply from ADB", and $ adb sideload copy-partitions-alioth-release.zip).
i used this guide: https://divestos.org/builds/LineageOS/alioth/install.html
error:
PXL_20231208_113145758

console log:

root@linux:/home/user/Downloads/divestos# fastboot erase avb_custom_key
Erasing 'avb_custom_key'                           OKAY [  0.014s]
Finished. Total time: 0.022s
root@linux:/home/user/Downloads/divestos# fastboot flash avb_custom_key avb_pkmd-alioth.bin
Sending 'avb_custom_key' (1 KB)                    OKAY [  0.008s]
Writing 'avb_custom_key'                           OKAY [  0.011s]
Finished. Total time: 0.029s
root@linux:/home/user/Downloads/divestos# fastboot update divested-20.0-20231207-dos-alioth-fastboot.zip
--------------------------------------------
Bootloader Version...: 
Baseband Version.....: 
Serial Number........: 1942e19
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.003s]
Setting current slot to 'a'                        OKAY [  0.010s]
extracting boot.img (192 MB) to disk... took 0.697s
archive does not contain 'boot.sig'
Sending 'boot_a' (196608 KB)                       OKAY [  4.965s]
Writing 'boot_a'                                   OKAY [  0.300s]
extracting dtbo.img (32 MB) to disk... took 0.119s
archive does not contain 'dtbo.sig'
Sending 'dtbo' (32768 KB)                          OKAY [  0.830s]
Writing 'dtbo'                                     OKAY [  0.050s]
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta' (8 KB)                            OKAY [  0.011s]
Writing 'vbmeta'                                   OKAY [  0.001s]
archive does not contain 'vbmeta_system.img'
extracting super_empty.img (0 MB) to disk... took 0.000s
Rebooting into fastboot                            OKAY [  0.003s]
< waiting for any device >
Sending 'super' (4 KB)                             OKAY [  0.001s]
Updating super partition                           OKAY [  0.010s]
Resizing 'odm_a'                                   OKAY [  0.006s]
Resizing 'product_a'                               OKAY [  0.007s]
Resizing 'system_a'                                OKAY [  0.006s]
Resizing 'system_b'                                OKAY [  0.006s]
Resizing 'vendor_a'                                OKAY [  0.006s]
Resizing 'vendor_b'                                OKAY [  0.006s]
archive does not contain 'boot_other.img'
extracting odm.img (1 MB) to disk... took 0.029s
archive does not contain 'odm.sig'
Resizing 'odm_a'                                   OKAY [  0.006s]
Sending 'odm_a' (1684 KB)                          OKAY [  0.042s]
Writing 'odm_a'                                    OKAY [  0.092s]
extracting product.img (484 MB) to disk... took 2.862s
archive does not contain 'product.sig'
Resizing 'product_a'                               OKAY [  0.006s]
Sending sparse 'product_a' 1/2 (258200 KB)         OKAY [  6.873s]
Writing 'product_a'                                OKAY [  0.955s]
Sending sparse 'product_a' 2/2 (238364 KB)         OKAY [  6.220s]
Writing 'product_a'                                OKAY [  0.659s]
archive does not contain 'product_services.img'
extracting system.img (918 MB) to disk... took 5.593s
archive does not contain 'system.sig'
Resizing 'system_a'                                OKAY [  0.003s]
Sending sparse 'system_a' 1/4 (259236 KB)          OKAY [  6.684s]
Writing 'system_a'                                 OKAY [  0.765s]
Sending sparse 'system_a' 2/4 (258216 KB)          OKAY [  6.615s]
Writing 'system_a'                                 OKAY [  0.769s]
Sending sparse 'system_a' 3/4 (258216 KB)          OKAY [  6.621s]
Writing 'system_a'                                 OKAY [  0.763s]
Sending sparse 'system_a' 4/4 (165204 KB)          OKAY [  4.282s]
Writing 'system_a'                                 OKAY [  0.502s]
archive does not contain 'system_other.img'
extracting vendor.img (1058 MB) to disk... took 5.908s
archive does not contain 'vendor.sig'
Resizing 'vendor_a'                                OKAY [  0.005s]
Sending sparse 'vendor_a' 1/5 (262140 KB)          OKAY [  6.721s]
Writing 'vendor_a'                                 OKAY [  0.965s]
Sending sparse 'vendor_a' 2/5 (262140 KB)          OKAY [  6.724s]
Writing 'vendor_a'                                 OKAY [  0.612s]
Sending sparse 'vendor_a' 3/5 (262140 KB)          OKAY [  6.652s]
Writing 'vendor_a'                                 OKAY [  0.620s]
Sending sparse 'vendor_a' 4/5 (262140 KB)          OKAY [  6.731s]
Writing 'vendor_a'                                 OKAY [  0.784s]
Sending sparse 'vendor_a' 5/5 (35492 KB)           OKAY [  0.932s]
Writing 'vendor_a'                                 OKAY [  0.173s]
archive does not contain 'vendor_other.img'
Rebooting                                          OKAY [  0.000s]
Finished. Total time: 104.547s
root@linux:/home/user/Downloads/divestos# adb sideload copy-partitions-alioth-release.zip
serving: 'copy-partitions-alioth-release.zip'  (~47%) 

downloaded files:
image
what i do wrong? thanks for help, best whishes.

hash summ:
image

GPG signature:
image

I installed latest release of LineageOS without problems!

You're following the LineageOS steps and you're running the LineageOS recovery.

The LineageOS recovery is purple, the DivestOS recovery is orange.

Please use the DivestOS files and the DivestOS guide: https://divestos.org/builds/LineageOS/alioth/install.html

i had orange recovery with same trouble, tomorrow i will try to install again

so at step 8: fastboot update divested-20.0-20231207-dos-alioth-fastboot.zip
when i execute this command phone rebooted to orange recovery
PXL_20231208_195604496

root@linux:/home/user/Downloads/divestos# adb devices
List of devices attached
1942e19 device

root@linux:/home/user/Downloads/divestos# fastboot erase avb_custom_key
Erasing 'avb_custom_key'                           OKAY [  0.014s]
Finished. Total time: 0.022s
root@linux:/home/user/Downloads/divestos# fastboot flash avb_custom_key avb_pkmd-alioth.bin
Sending 'avb_custom_key' (1 KB)                    OKAY [  0.008s]
Writing 'avb_custom_key'                           OKAY [  0.011s]
Finished. Total time: 0.029s
root@linux:/home/user/Downloads/divestos# fastboot reboot bootloader
Rebooting into bootloader                          OKAY [  0.001s]
Finished. Total time: 0.201s
root@linux:/home/user/Downloads/divestos# fastboot update divested-20.0-20231207-dos-alioth-fastboot.zip
--------------------------------------------
Bootloader Version...: 
Baseband Version.....: 
Serial Number........: 1942e19
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.003s]
Setting current slot to 'b'                        OKAY [  0.011s]
extracting boot.img (192 MB) to disk... took 0.698s
archive does not contain 'boot.sig'
Sending 'boot_b' (196608 KB)                       OKAY [  4.959s]
Writing 'boot_b'                                   OKAY [  0.293s]
extracting dtbo.img (32 MB) to disk... took 0.125s
archive does not contain 'dtbo.sig'
Sending 'dtbo' (32768 KB)                          OKAY [  0.840s]
Writing 'dtbo'                                     OKAY [  0.061s]
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.001s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta' (8 KB)                            OKAY [  0.002s]
Writing 'vbmeta'                                   OKAY [  0.001s]
archive does not contain 'vbmeta_system.img'
extracting super_empty.img (0 MB) to disk... took 0.000s
Rebooting into fastboot                            OKAY [  0.003s]
< waiting for any device >
Sending 'super' (4 KB)                             OKAY [  0.001s]
Updating super partition                           OKAY [  0.029s]
Resizing 'odm_b'                                   OKAY [  0.008s]
Resizing 'product_b'                               OKAY [  0.008s]
Resizing 'system_b'                                OKAY [  0.008s]
Resizing 'system_a'                                OKAY [  0.008s]
Resizing 'vendor_b'                                OKAY [  0.008s]
Resizing 'vendor_a'                                OKAY [  0.008s]
archive does not contain 'boot_other.img'
extracting odm.img (1 MB) to disk... took 0.025s
archive does not contain 'odm.sig'
Resizing 'odm_b'                                   OKAY [  0.008s]
Sending 'odm_b' (1684 KB)                          OKAY [  0.044s]
Writing 'odm_b'                                    OKAY [  0.072s]
extracting product.img (484 MB) to disk... took 2.765s
archive does not contain 'product.sig'
Resizing 'product_b'                               OKAY [  0.009s]
Sending sparse 'product_b' 1/2 (258200 KB)         OKAY [  6.621s]
Writing 'product_b'                                OKAY [  0.593s]
Sending sparse 'product_b' 2/2 (238364 KB)         OKAY [  6.126s]
Writing 'product_b'                                OKAY [  0.537s]
archive does not contain 'product_services.img'
extracting system.img (918 MB) to disk... took 5.277s
archive does not contain 'system.sig'
Resizing 'system_b'                                OKAY [  0.005s]
Sending sparse 'system_b' 1/4 (259236 KB)          OKAY [  6.759s]
Writing 'system_b'                                 OKAY [  0.546s]
Sending sparse 'system_b' 2/4 (258216 KB)          OKAY [  6.589s]
Writing 'system_b'                                 OKAY [  0.523s]
Sending sparse 'system_b' 3/4 (258216 KB)          OKAY [  6.645s]
Writing 'system_b'                                 OKAY [  0.527s]
Sending sparse 'system_b' 4/4 (165204 KB)          OKAY [  4.138s]
Writing 'system_b'                                 OKAY [  0.377s]
archive does not contain 'system_other.img'
extracting vendor.img (1058 MB) to disk... took 5.707s
archive does not contain 'vendor.sig'
Resizing 'vendor_b'                                OKAY [  0.008s]
Sending sparse 'vendor_b' 1/5 (262140 KB)          OKAY [  6.529s]
Writing 'vendor_b'                                 OKAY [  0.559s]
Sending sparse 'vendor_b' 2/5 (262140 KB)          OKAY [  6.851s]
Writing 'vendor_b'                                 OKAY [  0.549s]
Sending sparse 'vendor_b' 3/5 (262140 KB)          OKAY [  6.723s]
Writing 'vendor_b'                                 OKAY [  0.561s]
Sending sparse 'vendor_b' 4/5 (262140 KB)          OKAY [  6.526s]
Writing 'vendor_b'                                 OKAY [  0.562s]
Sending sparse 'vendor_b' 5/5 (35492 KB)           OKAY [  0.952s]
Writing 'vendor_b'                                 OKAY [  0.176s]
archive does not contain 'vendor_other.img'
Rebooting                                          OKAY [  0.000s]
Finished. Total time: 100.959s

after finished, phone is rebooting permanently, and i cannot enter in recovery mode using hardware keys, i need to enter in fastboot and write in terminal fastboot reboot recovery to enter in recovery, and these recovery is purple.

from the purple recovery, start sideload, adb sideload divested-20.0-20231207-dos-alioth.zip, and click yes to skip the signature check, then see if that boots

you very likely need to update the firwmare for your device https://xiaomifirmwareupdater.com/firmware/alioth

i already installed android 13, to stay in orange recovery i need to cancel this command fastboot update divested-20.0-20231207-dos-alioth-fastboot.zip it will be a problem? and after execute adb sideload divested-20.0-20231207-dos-alioth.zip

also in your recovery not exist apply update, only in lineageos recovery exist

you very likely need to update the firwmare for your device https://xiaomifirmwareupdater.com/firmware/alioth

PXL_20231208_203756069

from the purple recovery, start sideload, adb sideload divested-20.0-20231207-dos-alioth.zip, and click yes to skip the signature check, then see if that boots

i made these steps:
Choose "Apply update", then "Apply from ADB", and $ adb sideload divested-20.0-20231207-dos-alioth.zip
While still in the recovery perform a factory reset
and system started :)

i close topic, problem solved.

it's me again, to not open another issue, i just have one question and one suggestion.
question is: right now system say that found new update
Screenshot_20231208-231649_Updater
but this is not same version that is already installed?

suggestion is: to rename here https://divestos.org/pages/post_install
"Allow native debugging" to Enable native code debugging, according this screen this option have different name
Screenshot_20231208-230512_Settings

@zerotrust-community
the Updater will always show the update that is currently installed. Installing it again won't change anything.

I'll adjust the wording for debug toggle.