小编ila*_*ana的帖子

java.lang.SecurityException:Permission Denial:

我使用Instrumentation来测试PhoneApp我通过Instrumentation编写了我的测试应用程序

我创建了apk并将其安装在Nexus One - Android手机上 - 这在我的代码中传递我使用的内部类不是标准SDK的一部分.我不是在Eclipse中构建它,而是在我的嵌入式环境中构建它.我是开发Android的公司所以我拥有和所有内部库的Android树.

我在清单中使用适当的权限.

我创建的apk可能签名了一些签名!! 但可能这个签名不够好.

现在我通过adb运行测试并立即得到此错误:

-------------------------------------------------------------------------------------
INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{com.android.phonetests/com.android.phonetests.PhoneInstrumentationTestRunner} from pid=495, uid=495 not allowed because package com.android.phonetests does not have a
 signature matching the target com.android.phone
INSTRUMENTATION_STATUS_CODE: -1
java.
lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{com.android.phonetests/com.android.phonetests.PhoneInstrumentationTestRunner} from pid=495, uid=495 not allowed because package com.android.phonetests does not have a
signature matching the target com.android.phone
-------------------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)

请帮忙.

android

6
推荐指数
2
解决办法
1万
查看次数

在adb设备上显示的设备的序列号

IAM使用命令:ADB设备

并获得此信息:C:> adb devices HT9CTP820385附加设备列表

我的问题是:该序列号来自哪里?它是在制造过程中一次刻录在设备的闪存上,还是由adb驱动程序动态分配它,或者它随设备上刻录的发行版一起发行?

android

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×2