Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 3a788e9168c9b9eac66c4fa479413f4a95c61be4 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] adb: 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 027edd9359..e0f7ecde45 100644 |
| 12 | --- a/adb/adb.c |
| 13 | +++ b/adb/adb.c |
| 14 | @@ -1271,6 +1271,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 | */ |