我用仪器来测试PhoneApp 我通过仪表java.lang.SecurityException异常:权限拒绝:
我创建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
-------------------------------------------------------------------------------------
请帮助。
你看到 当我是我的应用程序在我们的平台(电话设备) 我没有得到这样的权限拒绝! 仅当我在参考手机上安装并运行我的apk时,才会发生这种情况,例如Google或其他任何其他Nexus One。 我的应用程序测试手机应用程序,是在电话 运行? – ilana 2010-06-21 07:55:53