Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Oct 20, 2023
1 parent 1c8a45a commit 6352581
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ def __init__(self, platform: "Android"):
self.is_64 = False

def check_capabilities(self):
self.logger.info("Checking if device has tcpdump")
self.has_tcpdump = self.platform.run_adb_command(
"shell which tcpdump", capture_output=True).finished_success()
self.logger.info("Checking if device has root")
self.has_root = self.platform.run_adb_command(
"shell which su", capture_output=True).finished_success()
if self.has_root:
self.logger.warning("adb root!")
Bash("adb root", sync=True).start_command()
self.logger.info("Checking if device has tcpdump")
self.has_tcpdump = self.platform.run_adb_command(
"shell which tcpdump", capture_output=True).finished_success()
self.logger.info("Checking device CPU arch")
cpu_arch_return = self.platform.run_adb_command(
"shell cat /proc/cpuinfo | grep rch", capture_output=True)
Expand Down

0 comments on commit 6352581

Please sign in to comment.