diff options
author | Matt Mower <mowerm@gmail.com> | 2013-12-15 03:34:45 +0100 |
---|---|---|
committer | Jason Riordan <jriordan001@gmail.com> | 2014-01-21 02:13:48 +0100 |
commit | d9cb90660a1b39c4900671f334771ef66afb8e00 (patch) | |
tree | 482c3cff4f862b286550c3886cf2d472cd63b021 /partitionmanager.cpp | |
parent | Initial 240x240 theme (diff) | |
download | android_bootable_recovery-d9cb90660a1b39c4900671f334771ef66afb8e00.tar android_bootable_recovery-d9cb90660a1b39c4900671f334771ef66afb8e00.tar.gz android_bootable_recovery-d9cb90660a1b39c4900671f334771ef66afb8e00.tar.bz2 android_bootable_recovery-d9cb90660a1b39c4900671f334771ef66afb8e00.tar.lz android_bootable_recovery-d9cb90660a1b39c4900671f334771ef66afb8e00.tar.xz android_bootable_recovery-d9cb90660a1b39c4900671f334771ef66afb8e00.tar.zst android_bootable_recovery-d9cb90660a1b39c4900671f334771ef66afb8e00.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 da11e8dfe..38584a9fd 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1520,6 +1520,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; } @@ -1580,6 +1581,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; |