aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-10 14:46:14 -0800
committerElliott Hughes <enh@google.com>2015-02-10 14:46:14 -0800
commitf14af80a1418acdc0ae6fea3da0285a357d57182 (patch)
tree5fc39fefa4022fa75857792dd517a9a14f60256c /common.h
parent99e084ca8012bc7af52ae2fb9e72ab7180177daf (diff)
downloadbootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.zip
bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar.gz
bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar.bz2
recovery: Properly detect userdebug or eng builds
The recovery system behaves a little bit differently on userdebug or eng builds by presenting error reports to the user in the ui. This is controlled by checking the build fingerprint for the string :userdebug/ or :eng/. But with AOSP version numbers most AOSP builds blows the 92 char limit of ro.build.fingerprint and therefore the property is not set, so this condition will always be evaluated to false, for most builds. Instead of depending on the flaky ro.build.fingerprint this change uses ro.debuggable. Change-Id: I74bc00c655ac596aaf4b488ecea58f0a8de9c26b
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 768f499..4f1c099 100644
--- a/common.h
+++ b/common.h
@@ -17,6 +17,7 @@
#ifndef RECOVERY_COMMON_H
#define RECOVERY_COMMON_H
+#include <stdbool.h>
#include <stdio.h>
#include <stdarg.h>
@@ -46,6 +47,8 @@ FILE* fopen_path(const char *path, const char *mode);
void ui_print(const char* format, ...);
+bool is_ro_debuggable();
+
#ifdef __cplusplus
}
#endif