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

Commit 891b5641 authored by syphyr's avatar syphyr
Browse files

Make adb use a custom prop for adb root

Change-Id: I684ba2fe939ab5c2c5fc43a7047b1b76aa2db332
parent 3cab1737
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