Added a more clear message regarding rooted Androids

This commit is contained in:
Nex
2021-08-12 17:47:20 +02:00
parent 0a7512cfb2
commit 8a484b3b24
+1 -1
View File
@@ -105,7 +105,7 @@ class AndroidExtraction(MVTModule):
"""Check if we have a `su` binary, otherwise raise an Exception.
"""
if not self._adb_check_if_root():
raise InsufficientPrivileges("The Android device does not seem to have a `su` binary. Cannot run this module.")
raise InsufficientPrivileges("This module is optionally available in case the device is already rooted. Do NOT root your own device!")
def _adb_command_as_root(self, command):
"""Execute an adb shell command.