[y] I have searched for my issue and it does not already exist
I'm using TWRP with Android 12.1 AOSP, I have no problem and it works great for me.
But when I try to build the OTA with 'make dist', the compilation fails with many errors in the 'updater' module:
bootable/recovery/updater/install.cpp:505:8: error: use of undeclared identifier 'make_parents'
bootable/recovery/updater/install.cpp:617:37: error: unknown type name 'UpdaterInfo'
bootable/recovery/updater/install.cpp:622:79: error: use of undeclared identifier 'sehandle'
bootable/recovery/updater/install.cpp:631:8: error: redefinition of 'PackageExtractFileFn'
bootable/recovery/updater/install.cpp:657:5: error: unknown type name 'unique_fd'; did you mean 'android::base::unique_fd'?
bootable/recovery/updater/install.cpp:658:9: error: use of undeclared identifier 'ota_open'
bootable/recovery/updater/install.cpp:672:9: error: use of undeclared identifier 'ota_fsync'
bootable/recovery/updater/install.cpp:676:9: error: use of undeclared identifier 'ota_close'
bootable/recovery/updater/install.cpp:692:60: error: no member named 'cookie' in 'State'
bootable/recovery/updater/install.cpp:693:5: error: unknown type name 'ZipString'
...
bootable/recovery/updater/blockimg.cpp:1559:2: error: #endif without #if
...
and so on
It looks like the code in the 'updater' module is broken. Maybe after some merges.
I'm using TWRP with Android 12.1 AOSP, I have no problem and it works great for me. But when I try to build the OTA with 'make dist', the compilation fails with many errors in the 'updater' module:
It looks like the code in the 'updater' module is broken. Maybe after some merges.