From c3b1653a7f4947c2c6b16b356da860b582350e07 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Wed, 22 Aug 2012 19:57:38 +0200 Subject: Allow adb shell to run as root in tests variant Linaro is starting to use the TARGET_BUILD_VARIANT=tests, slowly transitioning from the traditional TARGET_BUILD_VARIANT=eng builds. Testing has found that LAVA (specifically the lava-android-test project) expects adb shell to offer full root access. This is not the case in 'tests' builds where adb shell drops privileges and runs as the 'shell' user. Since it does not decrease security in any way (tests builds are marked as insecure) would like to have adb root shell access in TARGET_BUILD_VARIANT=tests as well. Change-Id: I20cbe3f32385162f9dc2b6b71c47ad22b9a0924f --- adb/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/Android.mk b/adb/Android.mk index 2b7cfcc2..ab30b871 100644 --- a/adb/Android.mk +++ b/adb/Android.mk @@ -138,7 +138,7 @@ LOCAL_CFLAGS += -O2 endif LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE -ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) +ifneq (,$(filter userdebug eng tests,$(TARGET_BUILD_VARIANT))) LOCAL_CFLAGS += -DALLOW_ADBD_ROOT=1 endif -- cgit v1.2.3