mirror of
https://github.com/meizu-m86/twrp_multirom_m86
synced 2025-11-03 21:45:40 +08:00
MultiROM: Fix NO_KEXEC primary_boot.img restore on encrypted devices
Change-Id: I88d3047d56d5671b0836b0119cfa929761921fde
This commit is contained in:
7
twrp.cpp
7
twrp.cpp
@@ -326,6 +326,13 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TARGET_RECOVERY_IS_MULTIROM
|
||||
#ifdef MR_NO_KEXEC
|
||||
// if /data in encrypted, the previous call would have done nothing, so check after decryption again
|
||||
MultiROM::nokexec_restore_primary_and_cleanup();
|
||||
#endif
|
||||
#endif //TARGET_RECOVERY_IS_MULTIROM
|
||||
|
||||
// Read the settings file
|
||||
#ifdef TW_HAS_MTP
|
||||
// We unmount partitions sometimes during early boot which may override
|
||||
|
||||
Reference in New Issue
Block a user