p2p-adb
p2p-adb copied to clipboard
adb is not in your $Path
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
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
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 im also having this issue & after doing find / -name adp
it returned find: not found
@duramato sorry about that, mistyped its find / -name adb
not find / -name adp
.
@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).
@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 When I try the find / -name adp command I get a lot of permission denied messages... Any idea what could be wrong?
@JeeGee4 that would be normal for a user that is not root. Its the same issue as seen in xkcd#149
@kosborn, I vote we close this issue as resolved.
@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
@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 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
- 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.
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 did you even install the android-sdk and the android-ndk? you should do that first.
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 .
-- Димитър Петков Поздрави!
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 .
-- Димитър Петков Поздрави!
-- Димитър Петков Поздрави!
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 .
-- Димитър Петков Поздрави!
-- Димитър Петков Поздрави!
-- Димитър Петков Поздрави!
hi! just type in the terminal: sudo apt-get install adb So easy!!!
open run.sh and edit tryStaticADB=1