Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb814674 authored by Tim Schumacher's avatar Tim Schumacher
Browse files

Make adb use a custom prop for adb root

Change-Id: I670c81f3b914092ca26b6c561d4bcfffa2e9bdb2
parent e5be5ab6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ class RootTask:
        return ""

    def execute(self):
        (returncode, stdout, stderr) = _adb_shell('getprop service.adb.root 0')
        (returncode, stdout, stderr) = _adb_shell('getprop cm.service.adb.root 0')
        if returncode != 0:
            return returncode, stdout, stderr
        if stdout.strip() == '1': # already root