aboutsummaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-07-31 09:15:41 -0700
committerKenny Root <kroot@google.com>2011-07-31 09:15:46 -0700
commitff9d3484e6c8f2f7e7e25581cb4dc86e0884d8a7 (patch)
treeb4164f6151445f0b9337c31105d6d5291d33addc /adb
parent17a5252f0e9fe382bb50e82fab676e9d3d09ac6c (diff)
downloadsystem_core-ff9d3484e6c8f2f7e7e25581cb4dc86e0884d8a7.tar.gz
system_core-ff9d3484e6c8f2f7e7e25581cb4dc86e0884d8a7.tar.bz2
system_core-ff9d3484e6c8f2f7e7e25581cb4dc86e0884d8a7.zip
Default to secure mode
If ro.secure is not set for some reason, default to secure mode. Change-Id: Id0ce3ea5507a3f9690332fb5a2daef7d3303481d
Diffstat (limited to 'adb')
-rw-r--r--adb/adb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/adb.c b/adb/adb.c
index b0a70dc0..a03ee643 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -871,7 +871,7 @@ int adb_main(int is_daemon, int server_port)
*/
property_get("ro.kernel.qemu", value, "");
if (strcmp(value, "1") != 0) {
- property_get("ro.secure", value, "");
+ property_get("ro.secure", value, "1");
if (strcmp(value, "1") == 0) {
// don't run as root if ro.secure is set...
secure = 1;