I added PATHs to ~/.bashrc and /root/.bashrc, but sudo adb still reports “command not found”?
I rebooted as well.
So I need a way to get sudo‘s .bashrc to be synced with my user’s .bashrc?
The paths are right as I can run from my user, just not sudo:
PATH=~/android-sdks/tools:$PATH
PATH=~/android-sdks/platform-tools:$PATH
alright I just modified to script to replace every occurrence of sudo adb with sudo ~/android-sdks/platform-tools/adb thats good enough