summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-02-03 05:11:14 +0100
committerGerrit Code Review <gerrit2@gerrit>2014-02-03 16:09:33 +0100
commit06c3f93d692e076bf0c5d25aa5f0008032f4c558 (patch)
treef7c3ccb322dbdb61c2aecb2a11ee6088f5f7b3af
parentMerge "ifdef some file system options that are not available in older trees" into android-4.4 (diff)
downloadandroid_bootable_recovery-06c3f93d692e076bf0c5d25aa5f0008032f4c558.tar
android_bootable_recovery-06c3f93d692e076bf0c5d25aa5f0008032f4c558.tar.gz
android_bootable_recovery-06c3f93d692e076bf0c5d25aa5f0008032f4c558.tar.bz2
android_bootable_recovery-06c3f93d692e076bf0c5d25aa5f0008032f4c558.tar.lz
android_bootable_recovery-06c3f93d692e076bf0c5d25aa5f0008032f4c558.tar.xz
android_bootable_recovery-06c3f93d692e076bf0c5d25aa5f0008032f4c558.tar.zst
android_bootable_recovery-06c3f93d692e076bf0c5d25aa5f0008032f4c558.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/partition.cpp b/partition.cpp
index cdd9847f3..13f0db71a 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -466,8 +466,20 @@ bool TWPartition::Process_Flags(string Flags, bool Display_Error) {
ptr_len = strlen(ptr);
if (strcmp(ptr, "removable") == 0) {
Removable = true;
- } else if (strcmp(ptr, "storage") == 0) {
- Is_Storage = true;
+ } else if (strncmp(ptr, "storage", 7) == 0) {
+ if (ptr_len == 7) {
+ LOGINFO("ptr_len is 7, storage set to true\n");
+ Is_Storage = true;
+ } else if (ptr_len == 9) {
+ ptr += 9;
+ if (*ptr == '1' || *ptr == 'y' || *ptr == 'Y') {
+ LOGINFO("storage set to true\n");
+ Is_Storage = true;
+ } else {
+ LOGINFO("storage set to false\n");
+ Is_Storage = false;
+ }
+ }
} else if (strcmp(ptr, "settingsstorage") == 0) {
Is_Storage = true;
} else if (strcmp(ptr, "canbewiped") == 0) {