Cts Verifier Cross profile intent filters are set fail
-
分析原因:
是机器支持 NFC ,导致测试fail
-
解决方法:
①不修改软件,可以pass的方法:a. adb shell settings put global nfc_hce_on 1 b. 执行这个命令后,nfc开关关闭后重新打开 c.重新打开Cts Verifier,测试该项
②.修改软件:在 packages/apps/Settings/src/com/android/settings/SettingsActivity.java 下修改
/// M: When HCE not support, remove payment item from menu list int hceFlg = android.provider.Settings.Global.getInt( getContentResolver(), // android.provider.Settings.Global.NFC_HCE_ON, 0); ++ android.provider.Settings.Global.NFC_HCE_ON, 1);