报错信息:
1.android.app.role.cts.RoleManagerTest#openDefaultAppListThenIsNotDefaultAppInList fail expected: null but was : android.support.test.uiautomator.UiObject2@2507e at android.app.role.cts.RoleManagerTest.openDefaultAppListThenIsNotDefaultAppInList(RoleManagerTest.java:663)
2.android.app.role.cts.RoleManagerTest#removeSmsRoleHolderThenPermissionIsRevoked TestRunner: expected: -1 TestRunner: but was : 0 at android.app.role.cts.RoleManagerTest.removeSmsRoleHolderThenPermissionIsRevoked(RoleManagerTest.java:948)
解决方法: 以上两项,如果不支持电话、短信等,需要确保相关功能彻底关闭,且下面配置默认关闭:
framework/base/core/res/res/values/config.xml
<bool name="config_sms_capable">false</bool>
<bool name="config_carrier_volte_tty_supported">false</bool>