REAL O G
REAL O G

Reputation: 685

Android Studio Adb Transfer Protocol Error

I've just started using Android Studio. I've got an HTC one (m7) running rooted Lollipop. I'm trying to run the test app I've created on this physical device. When I go to run it I get "Adb Transfer Protocol Error: Permission Denied". The device shows up in android studio when I go to run the app, and I have verified root access. Any help is appreciated.

EDIT: I just tried to install a .apk file using the command adb install and I'm getting permission denied. This is a rooted phone. However, I've always had root access on this phone, and before upgrading to android 5.0 Lollipop I could run this command and instantly install a .apk without having to do adb shell. If this is the problem, how do I tell android studio to run adb shell before trying to install and run the app?

Upvotes: 9

Views: 8256

Answers (2)

Skye
Skye

Reputation: 1469

You can also do this in Terminal Emulator. Download the app from this link: https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=pl Of course you need to have root.

Open it and enter:

su

cd /data/local

chmod 777 tmp

And try run app now

Upvotes: 6

REAL O G
REAL O G

Reputation: 685

Well, I solved it. The folder \data\local\tmp did not have full read write execute permissions. Once I did a quick chmod 777 on it Android Studio allowed the installation and run of the app. You can also do this procedure through a file explorer that has root capabilities.

Upvotes: 18

Related Questions