repack: move sbin to /system ramdisk and update repacking
for android-10 This will support updating the ramdisk to a different compression format and co-exist with magisk. We are also cleaning up and removing non android-10 api makefile actions. We are also moving twrp repacking to its own class. We check the new ramdisk format and if it's different we have magisk compress using the new ramdisk format. Change-Id: I770030aae7797e75817178b2f0fccd9f39dc23af
This commit is contained in:
@@ -187,7 +187,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
rmdir("/s");
|
||||
|
||||
TWFunc::check_and_run_script("/sbin/sarsetup.sh", "boot");
|
||||
TWFunc::check_and_run_script("/system/bin/sarsetup.sh", "boot");
|
||||
}
|
||||
// End SAR detection
|
||||
|
||||
@@ -302,8 +302,8 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
// Check for and run startup script if script exists
|
||||
TWFunc::check_and_run_script("/sbin/runatboot.sh", "boot");
|
||||
TWFunc::check_and_run_script("/sbin/postrecoveryboot.sh", "boot");
|
||||
TWFunc::check_and_run_script("/system/bin/runatboot.sh", "boot");
|
||||
TWFunc::check_and_run_script("/system/bin/postrecoveryboot.sh", "boot");
|
||||
|
||||
#ifdef TW_INCLUDE_INJECTTWRP
|
||||
// Back up TWRP Ramdisk if needed:
|
||||
|
||||
Reference in New Issue
Block a user