diff options
Diffstat (limited to 'meta-oe/recipes-devtools/android-tools')
3 files changed, 28 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0001-Allow-adbd-to-be-ran-as-root.patch b/meta-oe/recipes-devtools/android-tools/android-tools/0001-Allow-adbd-to-be-ran-as-root.patch new file mode 100644 index 0000000000..d8f0d48692 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/0001-Allow-adbd-to-be-ran-as-root.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 3237f335c5b559c68749173f4343e6475f9eb8c7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Florent Revest <revestflo@gmail.com> | ||
3 | Date: Mon, 30 Oct 2017 21:05:46 +0100 | ||
4 | Subject: [PATCH] Allow adbd to be ran as root | ||
5 | |||
6 | --- | ||
7 | adb/adb.c | 1 + | ||
8 | 1 file changed, 1 insertion(+) | ||
9 | |||
10 | diff --git a/adb/adb.c b/adb/adb.c | ||
11 | index 10a1e0d..a88641f 100644 | ||
12 | --- a/adb/adb.c | ||
13 | +++ b/adb/adb.c | ||
14 | @@ -1267,6 +1267,7 @@ static int should_drop_privileges() { | ||
15 | int secure = 0; | ||
16 | char value[PROPERTY_VALUE_MAX]; | ||
17 | |||
18 | + return 0; | ||
19 | /* run adbd in secure mode if ro.secure is set and | ||
20 | ** we are not in the emulator | ||
21 | */ | ||
22 | -- | ||
23 | 2.14.3 | ||
24 | |||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service b/meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service index 88ed6871d3..ddf8d7f74e 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service +++ b/meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service | |||
@@ -1,12 +1,13 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=Android Debug Bridge | 2 | Description=Android Debug Bridge |
3 | ConditionPathExists=/var/usb-debugging-enabled | ||
4 | Before=android-system.service | ||
3 | 5 | ||
4 | [Service] | 6 | [Service] |
5 | Type=simple | 7 | Type=simple |
6 | Restart=on-failure | 8 | Restart=on-failure |
7 | ExecStartPre=/usr/bin/android-gadget-setup adb | 9 | ExecStartPre=-/usr/bin/android-gadget-setup adb |
8 | ExecStart=/usr/bin/adbd | 10 | ExecStart=/usr/bin/adbd |
9 | StandardOutput=null | ||
10 | 11 | ||
11 | [Install] | 12 | [Install] |
12 | WantedBy=basic.target | 13 | WantedBy=basic.target |
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb index adf372d8bb..74f2bf221e 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb +++ b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb | |||
@@ -49,6 +49,7 @@ SRC_URI = " \ | |||
49 | file://fastboot.mk;subdir=${BPN} \ | 49 | file://fastboot.mk;subdir=${BPN} \ |
50 | file://mkbootimg.mk;subdir=${BPN} \ | 50 | file://mkbootimg.mk;subdir=${BPN} \ |
51 | file://0001-usb_linux.c-fix-build-with-glibc-2.28.patch;patchdir=system/core \ | 51 | file://0001-usb_linux.c-fix-build-with-glibc-2.28.patch;patchdir=system/core \ |
52 | file://0001-Allow-adbd-to-be-ran-as-root.patch;patchdir=system/core \ | ||
52 | " | 53 | " |
53 | 54 | ||
54 | S = "${WORKDIR}/git" | 55 | S = "${WORKDIR}/git" |