commit | f6e42ce3905f80cc4087bcb7c79d2d6ca11e7eca | [log] [tgz] |
---|---|---|
author | Chaosmaster <chaosmaster@chaosv.de> | Mon Jan 27 00:17:04 2020 +0100 |
committer | bigbiff <bigbiff@teamw.in> | Sun May 10 15:43:56 2020 -0400 |
tree | f1c33e1de6544bedf504e023ea2b763be135b93b | |
parent | da974805672e53c334b71480c5a6bc08f3e16109 [diff] |
Implement autodetection for SAR, based on the installed system 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
Team Win Recovery Project (TWRP)
You can find a compiling guide here.