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 188 forks source link

Permission denied in terminal (Lollipop) #35

Open Mu99u opened 9 years ago

Mu99u commented 9 years ago

Hi Kos, hats off to ur efforts really nice project..I have moto g 1st gen with lollipop.. I tried the method as in terminal I typed su then #/sdcard/p2p-adb-master/run.sh but it shows permission denied :( ..plz help..

denzuko commented 9 years ago

Did you remember to set the executable bit on run.sh?

duramato commented 9 years ago

@Mu99u & @denzuko i found a solution ,if you copy it to the root of our phone like /data/local (which was what i used) it works but if i leave it on the sdcard i get permission denied

denzuko commented 9 years ago

@duramato good find on the work around. but what caused this? Is the sdcard being mounted noexec? What about file permissions and acl policies?

duramato commented 9 years ago

@denzuko yes i believe its from the noexec part that blocks any execution of scripts ,etc from there

denzuko commented 9 years ago

Well if that's the case, then wouldn't a better work around be to execute mount -o remount,exec /sdcard?

duramato commented 9 years ago

that does seem to work on my device i believe the sdcard is emulated

denzuko commented 8 years ago

@kosborn Looks like we can close this one as resolved