mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 12:55:11 +00:00
android-tools: import 2 changes from meta-webos-ports
* import upstream-able changes from following commits:9d032e47b5fea52b8828d8068a7a47c314b69505Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
7e267304b7
commit
934a034e0e
@ -0,0 +1,24 @@
|
|||||||
|
From 3237f335c5b559c68749173f4343e6475f9eb8c7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Florent Revest <revestflo@gmail.com>
|
||||||
|
Date: Mon, 30 Oct 2017 21:05:46 +0100
|
||||||
|
Subject: [PATCH] Allow adbd to be ran as root
|
||||||
|
|
||||||
|
---
|
||||||
|
adb/adb.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/adb/adb.c b/adb/adb.c
|
||||||
|
index 10a1e0d..a88641f 100644
|
||||||
|
--- a/adb/adb.c
|
||||||
|
+++ b/adb/adb.c
|
||||||
|
@@ -1267,6 +1267,7 @@ static int should_drop_privileges() {
|
||||||
|
int secure = 0;
|
||||||
|
char value[PROPERTY_VALUE_MAX];
|
||||||
|
|
||||||
|
+ return 0;
|
||||||
|
/* run adbd in secure mode if ro.secure is set and
|
||||||
|
** we are not in the emulator
|
||||||
|
*/
|
||||||
|
--
|
||||||
|
2.14.3
|
||||||
|
|
||||||
@ -1,12 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Android Debug Bridge
|
Description=Android Debug Bridge
|
||||||
|
ConditionPathExists=/var/usb-debugging-enabled
|
||||||
|
Before=android-system.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
ExecStartPre=/usr/bin/android-gadget-setup adb
|
ExecStartPre=-/usr/bin/android-gadget-setup adb
|
||||||
ExecStart=/usr/bin/adbd
|
ExecStart=/usr/bin/adbd
|
||||||
StandardOutput=null
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=basic.target
|
WantedBy=basic.target
|
||||||
|
|||||||
@ -49,6 +49,7 @@ SRC_URI = " \
|
|||||||
file://fastboot.mk;subdir=${BPN} \
|
file://fastboot.mk;subdir=${BPN} \
|
||||||
file://mkbootimg.mk;subdir=${BPN} \
|
file://mkbootimg.mk;subdir=${BPN} \
|
||||||
file://0001-usb_linux.c-fix-build-with-glibc-2.28.patch;patchdir=system/core \
|
file://0001-usb_linux.c-fix-build-with-glibc-2.28.patch;patchdir=system/core \
|
||||||
|
file://0001-Allow-adbd-to-be-ran-as-root.patch;patchdir=system/core \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user