Closed
Bug 1117628
Opened 10 years ago
Closed 7 years ago
[dolphin 7715ea_v2.1] enable adb root in user version
Categories
(Firefox OS Graveyard :: Developer Tools, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: yaoyao.wu, Unassigned)
Details
(Whiteboard: [sprd=390751])
In order to import large mount of data for testing in user version,we need to enable adb root in user verison.
we add following changes:
diff --git a/core/main.mk b/core/main.mk
index 4e34b97..ac19831 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -224,8 +224,13 @@ endif
user_variant := $(filter userdebug user,$(TARGET_BUILD_VARIANT))
enable_target_debugging := true
ifneq (,$(user_variant))
+ ifeq ($(strip $(ENABLE_ADB_ROOT)),1)
+ # PVT build needs adb root access for user VARIANT.
+ ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
+ else
# Target is secure in user builds.
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=1
+ endif
tags_to_install := user
ifeq ($(user_variant),userdebug)
diff --git a/scx15_sp7715ea/scx15_sp7715eaplus.mk b/scx15_sp7715ea/scx15_sp7715eaplus.mk
index 6ec883e..2aed063 100644
--- a/scx15_sp7715ea/scx15_sp7715eaplus.mk
+++ b/scx15_sp7715ea/scx15_sp7715eaplus.mk
@@ -103,3 +103,5 @@ PRODUCT_BRAND := Spreadtrum
PRODUCT_MANUFACTURER := Spreadtrum
PRODUCT_LOCALES := zh_CN zh_TW en_US
+# Open adb root permisson
+ENABLE_ADB_ROOT := 1
adb shell/cat default.prop:
ro.secure=0
ro.allow.mock.location=0
ro.debuggable=0
persist.sys.usb.config=mass_storage
but adb root :adbd cannot run as root in production builds
Oh interesting. I thought you were using userdebug for testing?
Comment 3•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•