chenxiaolong / Custota

Android A/B OTA updater app for custom OTA servers
GNU General Public License v3.0
62 stars 12 forks source link

UpdaterThread: Work around lying Build.VERSION.SECURITY_PATCH #52

Closed chenxiaolong closed 6 months ago

chenxiaolong commented 6 months ago

CalyxOS modifies Build.VERSION.SECURITY_PATCH so that it queries ro.build.version.real_security_patch instead of ro.build.version.security_patch. However, despite the name, the real_security_patch value is fake. The security patch level in the OTA metadata's postconditions matches the normal security_patch.

Fixes: #51