summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-09-15 21:54:30 +0200
committerMatt Mower <mowerm@gmail.com>2014-09-20 05:34:09 +0200
commit6277c7972720c33b355c1fc14f2441cc4323e719 (patch)
treeb0fe79cca444d660a42570d1252be0ee3adb6de2 /twrp.cpp
parentAdditional checks to prevent partitioning internal storage (diff)
downloadandroid_bootable_recovery-6277c7972720c33b355c1fc14f2441cc4323e719.tar
android_bootable_recovery-6277c7972720c33b355c1fc14f2441cc4323e719.tar.gz
android_bootable_recovery-6277c7972720c33b355c1fc14f2441cc4323e719.tar.bz2
android_bootable_recovery-6277c7972720c33b355c1fc14f2441cc4323e719.tar.lz
android_bootable_recovery-6277c7972720c33b355c1fc14f2441cc4323e719.tar.xz
android_bootable_recovery-6277c7972720c33b355c1fc14f2441cc4323e719.tar.zst
android_bootable_recovery-6277c7972720c33b355c1fc14f2441cc4323e719.zip
Diffstat (limited to '')
-rw-r--r--twrp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/twrp.cpp b/twrp.cpp
index d9a5ab1eb..7361396ad 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -51,6 +51,7 @@ struct selabel_handle *selinux_handle;
TWPartitionManager PartitionManager;
int Log_Offset;
+bool datamedia;
twrpDU du;
static void Print_Prop(const char *key, const char *name, void *cookie) {
@@ -76,6 +77,10 @@ int main(int argc, char **argv) {
return 0;
}
+#ifdef RECOVERY_SDCARD_ON_DATA
+ datamedia = true;
+#endif
+
char crash_prop_val[PROPERTY_VALUE_MAX];
int crash_counter;
property_get("twrp.crash_counter", crash_prop_val, "-1");