Android Studio中没有安装APK上/数据/本地/ tmp目录复制许可 [英] Android Studio doesn't have the permission to install apk copied on /data/local/tmp
问题描述
虽然我跑我的设备的Android工作室的Android应用程序显示设备,其名称正确,并同时选择运行它的设备给出了错误: -
While running my android application on my device Android Studio shows the device with its name properly and while selecting the device to run it gives the error:-
安装com.example.android.borderlessbuttons
DEVICE shell命令:下午安装-r/data/local/tmp/com.example.android.borderlessbuttons
PKG:/data/local/tmp/com.example.android.borderlessbuttons
失败[INSTALL_FAILED_INVALID_APK]
和现在的设备名称更改为 ???????
暗示许可被拒绝或无法识别。做后再次,
and now the device name changed to ???????
implying permission denied or not identified. Again after doing,
ADB杀服务器
须藤亚行启动服务器
ADB设备
该设备现在再次上市。
我相信这个问题是在我的自定义ROM。我由于某种原因,定制ROM改变了权限的目录 /数据/本地/ tmp目录
。 apk的被复制,但无法运行/安装在设备上。
I believe the problem is in my custom ROM. My custom ROM for some reason changed the permission for the directory /data/local/tmp
. The apk is copied but not able to run/install on device.
也是如此有人知道该目录的默认权限从Android工作室??
So does anybody knows the default permission for this directory to copy and install/run applications from Android Studio??
先谢谢了。
推荐答案
<一个href=\"http://stackoverflow.com/questions/14014871/permission-denied-causing-installation-failed-due-to-invalid-apk-file/14890187#14890187\">This做了魔术。这个问题当然是为 /数据/本地/ tmp目录
目录的权限。
This did the magic. The problem was of course the permission for /data/local/tmp
directory.
这篇关于Android Studio中没有安装APK上/数据/本地/ tmp目录复制许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!