Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting protocol failure error while installing apk using adb command in android

Tags:

android

adb

I am trying to install an apk on api level 17 emulator using adb command.

adb install Test apk

I am getting following error in response

protocol failure
rm failed for /data/local/tmp/Test.apk, No such file or directory

Anyone know how to handle this error?

like image 579
anujprashar Avatar asked Mar 19 '13 05:03

anujprashar


2 Answers

I found out that in my workplace the people who were facing this problem have only read permission on their computer USB port has and not write permission. After getting USB write permission from admin the problem is no longer occurring.

like image 163
anujprashar Avatar answered Oct 17 '22 02:10

anujprashar


Try this. Navigate to Settings -> Application settings (location may depend on your device). Here, check Install from unknown sources. Hope it will help.

like image 43
Yasir Malik Avatar answered Oct 17 '22 03:10

Yasir Malik