diff options
author | Zygmunt Krynicki <zygmunt.krynicki@linaro.org> | 2012-08-22 19:57:38 +0200 |
---|---|---|
committer | Ubuntu <vishal.bhoj@linaro.org> | 2014-06-05 10:01:57 +0000 |
commit | c3b1653a7f4947c2c6b16b356da860b582350e07 (patch) | |
tree | bf19add7fb18923205e6eefa53a6ff973f4b47ae | |
parent | 5930ce2dcf004811f5de60c841e956e7b0856673 (diff) |
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
-rw-r--r-- | adb/Android.mk | 2 |
1 files changed, 1 insertions, 1 deletions
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 |