kosborn / p2p-adb

Phone to Phone Android Debug Bridge - A project for "debugging" phones... from other phones.
GNU General Public License v3.0
575 stars 187 forks source link

Can't open sh? #22

Open jonnyh1994 opened 11 years ago

jonnyh1994 commented 11 years ago

Hey, I've jsut downloaded this on my samsung GT-i9100 running Rootbox v3.4 and Dorimanx kernal. I've copied the folder after extracting to the root of my phone and ran the comman in terminal but I keep getting an error. This is what it looks like:

app_71@android:/ $ su root@android@/ # sh ./run.sh sh: can't open './run.sh' 2|root@android:/ #

Anyone help please? :( I'm running latest version of busybox and using terminal emulator

Astu04 commented 11 years ago

You're trying to execute the file directly from the root of the phone. In mine, I have to go to /sdcard/p2p-adb-master/run.sh. I don't know how your phone is structured, but remember: cd for moving into folders (cd .. for going up) ls to list the items in the actual folder

Unknownthespy commented 11 years ago

i got the same issue as jonnyh1994 and your method ^^ did not work for me. it says permission denied

Astu04 commented 11 years ago

Where have you saved run.sh? Can you provide me the log as jonnyh did and tell me where you stored the run.sh?

Unknownthespy commented 11 years ago

i put the p2p-adb file in the android data folder and tried to run it like that. am i missing a step to this?

Unknownthespy commented 11 years ago

u0_a59@android: / $ su u0_a59@android: / # sh ./run.sh sh: ./run.sh: No such file or directory 127 |u0_a59@android: / # so this is what i did. i took the zip file, u unzipped it on my computer and put it in the data folder in the android folder. i then go to terminal and that is what it says. im sorry i wasnt clear earlier.

Astu04 commented 11 years ago

You are doing as jonnyh, you both are trying to open it from the root of the filesystem of your mobile. First, you have to navigate to where it's located.

cd /sdcard/android/data

Or whatever your folder is. Use "cd" and "ls" for navigation.

Astu04 commented 11 years ago

To explain, is like you're trying to execute the file in C:\run.sh but the file it's located in C:\Users\Downloads\run.sh First you need to write "cd C:\Users\Downloads\" and then "sh ./run.sh"

Unknownthespy commented 11 years ago

u0_a59@android: / $ su u0_a59@android: / # /storage/sdcard0/p2p-adb-master/run.sh sh: /storage/sdcard0/p2p-adb-master/run.sh: can't execute: Permission denied

126 |u0_a59@android: /

so i found where the file was and i tried to execute it from where it is but it says permission denied.

denzuko commented 9 years ago

@Unknownthespy: http://en.wikipedia.org/wiki/Chmod#Command_syntax