This will detect whether SAR is present in the currently installed OS and set the property ro.twrp.sar accordingly. After setting the property it will call the bootscript /sbin/sarsetup.sh (if present) to give device maintainers the option to do setup operations depending on SAR-status, such as modifiyng the fstab. If no system is detected and AB_OTA_UPDATER is defined or built with Android 10 and upwards, it will fallback to using SAR, otherwise it will use ro.build.system_root_image as basis for deciding whether SAR is required or not. The property ro.twrp.sar will also be used by TWPartitionManager::Get_Android_Root_Path() This allows maintaining a single TWRP-build for devices switching to SAR for Android 10. The default behavior (when no system is installed) is determined by the build-flags AB_OTA_UPDATER and BOARD_BUILD_SYSTEM_ROOT_IMAGE Change-Id: I2a48c6c81a6ea6fad6e452c06bfbe4d9da0f1e5c
101 KiB
101 KiB