From bf4efa39e4f710100c3087be5ecde014d089b1d8 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Mon, 14 Apr 2014 23:25:26 -0500 Subject: Support alternative .android_secure location Some devices (jewel, m8) have .android_secure at a non-standard location. Allow a different partition to be specified as the home of .android_secure using the fstab flag 'andsec'. Using the /data/media variant of jewel as an example, recovery.fstab or twrp.fstab could be edited like follows: /external_sd vfat /dev/block/mmcblk1p1 flags=display="MicroSD";andsec Note, this is NOT a method to move .android_secure in your ROM. Your ROM must already write to this alternative location. Change-Id: I3a6e4e63aaddb35870b79e80938b0f9c2c902443 --- partition.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index 2e434595a..e554ac7eb 100644 --- a/partition.cpp +++ b/partition.cpp @@ -507,6 +507,8 @@ bool TWPartition::Process_Flags(string Flags, bool Display_Error) { } } else if (strcmp(ptr, "settingsstorage") == 0) { Is_Storage = true; + } else if (strcmp(ptr, "andsec") == 0) { + Has_Android_Secure = true; } else if (strcmp(ptr, "canbewiped") == 0) { Can_Be_Wiped = true; } else if (strcmp(ptr, "usermrf") == 0) { -- cgit v1.2.3