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 --- partitions.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'partitions.hpp') diff --git a/partitions.hpp b/partitions.hpp index 650f2f60b..cdb4f79b9 100644 --- a/partitions.hpp +++ b/partitions.hpp @@ -213,7 +213,8 @@ public: void Output_Storage_Fstab(); // Creates a /cache/recovery/storage.fstab file with a list of all potential storage locations for app use private: - void Setup_Settings_Storage_Partition(TWPartition* Part); // Sets things up for the storage partition + void Setup_Settings_Storage_Partition(TWPartition* Part); // Sets up settings storage + void Setup_Android_Secure_Location(TWPartition* Part); // Sets up .android_secure if needed bool Make_MD5(bool generate_md5, string Backup_Folder, string Backup_Filename); // Generates an MD5 after a backup is made bool Backup_Partition(TWPartition* Part, string Backup_Folder, bool generate_md5, unsigned long long* img_bytes_remaining, unsigned long long* file_bytes_remaining, unsigned long *img_time, unsigned long *file_time, unsigned long long *img_bytes, unsigned long long *file_bytes); bool Restore_Partition(TWPartition* Part, string Restore_Name, int partition_count); -- cgit v1.2.3