p2p-adb icon indicating copy to clipboard operation
p2p-adb copied to clipboard

adb is not in your $Path

Open manny-obp opened this issue 9 years ago • 19 comments

PLEASE HELP ME! When I try to run "run.sh" on my android I have this error message: adb is not in your $PATH add it to your $PATH or enable #tryStaticADB in run.sh screenshot_2015-04-21-22-13-24

I know that someone had the same problem I but that person moved the p2p-adb-master folder to /data and that worked for him, but when I tried to run it with that folder on /data I had the same old problem. Moreover, I tried to run it in almost all the directories but always I have that problem. Also searched about add adb to $PATH, but I couldnt find something useful. Please help me! I would love to have this framework on my phone.

The commands I have used are:

su

cd /data/p2p-adb-master

sh run.sh

And the phone that Im using is a Motorola Moto G 1st gen. HELP ME PLEASE, and thanks in advance

manny-obp avatar Apr 22 '15 01:04 manny-obp

try to use find / -name adb try typing find / -name adb then adding the directory to the PATH environment with export PATH=$PATH:/path-to-adb-directory-as-discovered-by-find

denzuko avatar Apr 22 '15 22:04 denzuko

@denzuko im also having this issue & after doing find / -name adp it returned find: not found

duramato avatar Apr 28 '15 15:04 duramato

@duramato sorry about that, mistyped its find / -name adb not find / -name adp.

denzuko avatar Aug 13 '15 21:08 denzuko

@denzuko Thanks! That was the solution. Now it works! Thank you very much!! @duramato That happened to me! You have to install busybox! If you have already installed it, reinstall it and you will be able to run the "find" command. Be sure you are typing fine the command, like duramato did (find / -name adb).

manny-obp avatar Aug 14 '15 01:08 manny-obp

@OurBigProblem Your welcome. If everything is working could you please close out this issue (@kosborn, @OurBigProblem I'm looking at either of you since I'm volunteering support on the wiki and tracker without access to manage tickets :) ).

denzuko avatar Aug 14 '15 18:08 denzuko

@denzuko When I try the find / -name adp command I get a lot of permission denied messages... Any idea what could be wrong?

ghost avatar Mar 20 '16 21:03 ghost

@JeeGee4 that would be normal for a user that is not root. Its the same issue as seen in xkcd#149

denzuko avatar Mar 23 '16 18:03 denzuko

@kosborn, I vote we close this issue as resolved.

denzuko avatar Mar 23 '16 18:03 denzuko

@denzuko thanks for your reply I am rooted though.... put in 'su' and granted root. Been rooted for over a year now. Also, it used to work for me since I found out about it. After my last ROM install it went bad. Can't think of anything that could've changed Any help would be greatly appreciated

ghost avatar Mar 24 '16 02:03 ghost

@JeeGee4 Please fill out the following bug report template in a new issue:

Versioning details p2p-adb version/commit hash: ... Phone Model number: ... Android version: ... Android security patch level: ...

Steps to reproduce bug: A bug report requires clear instructions, so that others can consistently reproduce it. Many bugs require some experimentation to find the exact steps that cause the problem you are trying to report.

Expected behavior _Describe what should happen if the bug was fixed. _

Actual behavior _Describe what actually happened with the bug. Include pastebin of logs, and screenshots of the bug _

denzuko avatar Mar 25 '16 13:03 denzuko

@denzuko p2p-adb version: latest Phone model number: SM-N910F Android version: 6.0.1 Android security patch: March 1, 2016

Steps to reproduce the bug: Running sh run.sh gives 'adb is not in your $PATH' 'Add it to $PATH, or enable $tryStaticADB in run.sh'

Disclaimer: don't know how to open a new issue... Hope above mentioned information gives you a handle.

Thanks in advance,

JeeGee4

ghost avatar Mar 26 '16 22:03 ghost

  • https://github.com/kosborn/p2p-adb/issues/new <- new issues

adb is not installed on all phones especially ones newer than 4.0 and should be ran on your favorite kali/linux. To execute from an android phone one would also need to root their phone and/or ran from cm7 with adp-sdk installed.

denzuko avatar Mar 29 '16 18:03 denzuko

root@kali:~/p2p-adb# find / -name adb /usr/share/metasploit-framework/modules/exploits/android/adb /usr/share/metasploit-framework/lib/rex/proto/adb find: '/proc/24828': No such file or directory find: '/proc/24829': No such file or directory find: '/proc/31710/net': Invalid argument find: '/proc/31712/net': Invalid argument /dev/usb-ffs/adb root@kali:~/p2p-adb# export PATH=$PATH:/dev/usb-ffs/adb root@kali:~/p2p-adb# ./run.sh Using: \033[0;31madb is not in your $PATH Add it to $PATH, or enable $tryStaticADB in run.sh \033[0m

userdsp avatar Oct 31 '16 15:10 userdsp

@userdsp did you even install the android-sdk and the android-ndk? you should do that first.

denzuko avatar Nov 27 '16 01:11 denzuko

Yes I have installed them! How I sad it was working before delete the folder and git clone it again.

2016-11-27 3:16 GMT+02:00 Dwight Spencer [email protected]:

@userdsp https://github.com/userdsp did you even install the android-sdk and the android-ndk? you should do that first.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kosborn/p2p-adb/issues/36#issuecomment-263096064, or mute the thread https://github.com/notifications/unsubscribe-auth/AHO_EK1r5mL-8CHL0ylNf2s9pvro5nFBks5rCNnVgaJpZM4EFqYl .

-- Димитър Петков Поздрави!

userdsp avatar Nov 29 '16 13:11 userdsp

I'm sorry! After reinstalling android-sdk this error stop showing to me. Now I got [!] Failed to sign recompiled APK

2016-11-29 15:43 GMT+02:00 Dimitar Petkov [email protected]:

Yes I have installed them! How I sad it was working before delete the folder and git clone it again.

2016-11-27 3:16 GMT+02:00 Dwight Spencer [email protected]:

@userdsp https://github.com/userdsp did you even install the android-sdk and the android-ndk? you should do that first.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kosborn/p2p-adb/issues/36#issuecomment-263096064, or mute the thread https://github.com/notifications/unsubscribe-auth/AHO_EK1r5mL-8CHL0ylNf2s9pvro5nFBks5rCNnVgaJpZM4EFqYl .

-- Димитър Петков Поздрави!

-- Димитър Петков Поздрави!

userdsp avatar Nov 29 '16 14:11 userdsp

O again im in mistake :( Error was gone coz I coment If statement for the check! The problem is still here!

2016-11-29 16:28 GMT+02:00 Dimitar Petkov [email protected]:

I'm sorry! After reinstalling android-sdk this error stop showing to me. Now I got [!] Failed to sign recompiled APK

2016-11-29 15:43 GMT+02:00 Dimitar Petkov [email protected]:

Yes I have installed them! How I sad it was working before delete the folder and git clone it again.

2016-11-27 3:16 GMT+02:00 Dwight Spencer [email protected]:

@userdsp https://github.com/userdsp did you even install the android-sdk and the android-ndk? you should do that first.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kosborn/p2p-adb/issues/36#issuecomment-263096064, or mute the thread https://github.com/notifications/unsubscribe-auth/AHO_EK1r5mL-8CHL0ylNf2s9pvro5nFBks5rCNnVgaJpZM4EFqYl .

-- Димитър Петков Поздрави!

-- Димитър Петков Поздрави!

-- Димитър Петков Поздрави!

userdsp avatar Nov 29 '16 14:11 userdsp

hi! just type in the terminal: sudo apt-get install adb So easy!!!

alij2017 avatar Jan 01 '18 10:01 alij2017

open run.sh and edit tryStaticADB=1

jebyjoseph avatar Apr 08 '18 08:04 jebyjoseph