TeamWin / android_bootable_recovery

1.3k stars 408 forks source link

android-12.1 branch build fails with many errors in the 'updater' #312

Open mr-sun opened 1 year ago

mr-sun commented 1 year ago

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.

edward0181 commented 1 year ago

Why not just force resync for that module?

mr-sun commented 1 year ago

Why not just force resync for that module?

What exactly should I resync when the broken code is in a twrp git repo?