CtsPermissionTestCases之android.permission.cts.DebuggableTest#testNoDebuggable 解决方法

平台:高通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

 

posted @ 2024-10-17 09:41  simple雨  阅读(19)  评论(0编辑  收藏  举报