diff options
author | Dees Troy <dees_troy@teamw.in> | 2014-01-21 15:58:42 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-01-21 15:58:42 +0100 |
commit | a6a26429f6ee285fb2775dce37ef94339c00d9a2 (patch) | |
tree | 2ef5f92fdcf28f167c29bdfd783b0f34c63fe3ae /partitionmanager.cpp | |
parent | Fix handling of storage after decryption (diff) | |
parent | Enable UMS mounting of storage drives (diff) | |
download | android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.gz android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.bz2 android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.lz android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.xz android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.zst android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.zip |
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r-- | partitionmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp index dbdbd0e11..a58900c6e 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1519,6 +1519,7 @@ int TWPartitionManager::Open_Lun_File(string Partition_Path, string Lun_File) { LOGERR("Unable to write to ums lunfile '%s': (%s)\n", Lun_File.c_str(), strerror(errno)); return false; } + property_set("sys.storage.ums_enabled", "1"); return true; } @@ -1579,6 +1580,7 @@ int TWPartitionManager::usb_storage_disable(void) { Mount_All_Storage(); Update_System_Details(); UnMount_Main_Partitions(); + property_set("sys.storage.ums_enabled", "0"); if (ret < 0 && index == 0) { LOGERR("Unable to write to ums lunfile '%s'.", lun_file); return false; |