mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-01 18:55:31 +00:00
Fixes bug where su binary is present but privilege is not granted to com.android.shell
This commit is contained in:
parent
1042354be5
commit
0a9e10ee21
|
@ -138,7 +138,8 @@ class AndroidExtraction(MVTModule):
|
|||
:returns: Boolean indicating whether a `su` binary is present or not
|
||||
|
||||
"""
|
||||
return bool(self._adb_command("command -v su"))
|
||||
result = self._adb_command("command -v su && su -c true")
|
||||
return bool(result) and "Permission denied" not in result
|
||||
|
||||
def _adb_root_or_die(self) -> None:
|
||||
"""Check if we have a `su` binary, otherwise raise an Exception."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user