平台:高通C6490,android13
测试结果:
android.permission.cts.DebuggableTest#testNoDebuggable | fail | junit.framework.AssertionFailedError: Packages marked debuggable: [com.skyworthdigital.autotest.all] |
这个问题是该测试对应的app是否有debugable的标签。解决方法是:给app签名,或者移除app。
通过查找包名com.skyworthdigital.autotest.all,确定是哪个app的问题。
C:\Users\asw>adb shell "pm path com.skyworthdigital.autotest.all"
package:/system_ext/app/AutoCheck/AutoCheck.apk
这个app是我们内部的测试app,可以直接移除。找到代码位置:
--- a/QCM6490_apps_qssi13/LINUX/android/vendor/qcom/proprietary/prebuilt_HY11/target/product/qssi/prebuilt.mk +++ b/QCM6490_apps_qssi13/LINUX/android/vendor/qcom/proprietary/prebuilt_HY11/target/product/qssi/prebuilt.mk @@ -25,7 +25,7 @@ PRODUCT_PACKAGES += sigma_miracasthalservice64 PRODUCT_PACKAGES += tcmd PRODUCT_PACKAGES += wfdservice PRODUCT_PACKAGES += wfdservice64 -PRODUCT_PACKAGES += AutoCheck +#PRODUCT_PACKAGES += AutoCheck PRODUCT_PACKAGES += TouchStudio
标签:testNoDebuggable,PRODUCT,prebuilt,permission,app,cts,android,PACKAGES,AutoCheck From: https://www.cnblogs.com/dodo-asw/p/18471415