A-YATTA / AMDH

Android Mobile Device Hardening

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect adb if it's in PATH

tuarrep opened this issue · comments

My adb bin is in /home/nicolas/Android/Sdk/platform-tools/adb but it's resolved by my Linux PATH.

If I run the script, it search for /usr/bin/adb by default, I need to provide it manually through -a.

It'll great to have it resolved automatically by using the PATH env var

Replacing the value of the variable "adb_path" in config.py with only adb instead of /usr/bin/adb or /absolute/path/to/adbwill use the PATH env var.

Done in the commit df02fd5. I renamed the variable adb_path to adb_binary (more explicit).

I will close the issue, you can reopen it if needed.