From d9e6671e9656b18bcf6ad74c95f4cd738ab6c084 Mon Sep 17 00:00:00 2001 From: Mohd Faraz Date: Wed, 28 Oct 2020 20:42:57 +0530 Subject: [PATCH] Added apex resync script BUG: Some devices having issues with mounted apex while flashing some packages. TEST: Added a device specific script in the device tree, which deloaded the apex, which are not needed and its fine. Example script: https://gist.github.com/AndroiableDroid/cf5a04f80b6326c759a59be5d828434e Change-Id: I5c89dcd92871fec63c6a875c1a47eb8145ba71fa Signed-off-by: Mohd Faraz --- partitionmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/partitionmanager.cpp b/partitionmanager.cpp index bd678d48..f30e4369 100755 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -301,6 +301,7 @@ int TWPartitionManager::Process_Fstab(string Fstab_Filename, bool Display_Error) } else { property_set("twrp.apex.loaded", "true"); } + TWFunc::check_and_run_script("/sbin/resyncapex.sh", "apex"); } } #ifndef USE_VENDOR_LIBS