Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

adb is not in your $Path #36

Open
OurBigProblem opened this issue Apr 22, 2015 · 19 comments
Open

adb is not in your $Path #36

OurBigProblem opened this issue Apr 22, 2015 · 19 comments

Comments

@OurBigProblem
Copy link

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

@denzuko
Copy link

denzuko commented Apr 22, 2015

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

@duramato
Copy link

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

@denzuko
Copy link

denzuko commented Aug 13, 2015

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

@OurBigProblem
Copy link
Author

@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).

@denzuko
Copy link

denzuko commented Aug 14, 2015

@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 :) ).

@ghost
Copy link

ghost commented Mar 20, 2016

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

@denzuko
Copy link

denzuko commented Mar 23, 2016

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

@denzuko
Copy link

denzuko commented Mar 23, 2016

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

@ghost
Copy link

ghost commented Mar 24, 2016

@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

@denzuko
Copy link

denzuko commented Mar 25, 2016

@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 _

@ghost
Copy link

ghost commented Mar 26, 2016

@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

@denzuko
Copy link

denzuko commented Mar 29, 2016

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.

@userdsp
Copy link

userdsp commented Oct 31, 2016

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

@denzuko
Copy link

denzuko commented Nov 27, 2016

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

@userdsp
Copy link

userdsp commented Nov 29, 2016 via email

@userdsp
Copy link

userdsp commented Nov 29, 2016 via email

@userdsp
Copy link

userdsp commented Nov 29, 2016 via email

@alij2017
Copy link

alij2017 commented Jan 1, 2018

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

@jebyjoseph
Copy link

open run.sh and edit tryStaticADB=1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants