集成三方锁屏应用带来的CTS/GTS问题

最近项目要求集成三方锁屏应用代替原生swipe锁屏,出现了几个CTS/GTS问题,记个小笔记
1.因为三方锁屏需要完全替代掉原生swipe,所以将swipe禁用掉了,Settings中也是不可以选的,结果出现
[Google CTS]android.app.usage.cts.UsageReportingTest#testSplitscreenSameTokenTwoMissedStop test failed
所以原生的swipe不能禁掉,只有退而求其次,修改Settings中的默认值,设置为none,但用户还是可以自己选择swipe的

2.下面这个是关于分屏的,在home界面设置应用分屏,灭屏再亮屏,由于三方锁屏应用不支持分屏,所以home的分屏也退出了,此问题需要有三方提供fix方案
[Google CTS]android.server.wm.lifecycle.ActivityLifecycleKeyguardTests#testKeyguardShowHideOverSplitScreen test failed
11-18 20:51:10.724 1035 1589 E ActivityManager: Sending non-protected broadcast com.celltick.lockscreen.STATUS_REQUEST from system 1395:com.android.systemui/u0a144 pkg com.android.systemui
11-18 20:51:10.724 1035 1589 E ActivityManager: java.lang.Throwable
11-18 20:51:10.724 1035 1589 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:15068)
11-18 20:51:10.724 1035 1589 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:15709)
11-18 20:51:10.724 1035 1589 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:15085)
11-18 20:51:10.724 1035 1589 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:15868)
11-18 20:51:10.724 1035 1589 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2001)
11-18 20:51:10.724 1035 1589 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2813)
11-18 20:51:10.724 1035 1589 E ActivityManager: at android.os.Binder.execTransactInternal(Binder.java:1021)
11-18 20:51:10.724 1035 1589 E ActivityManager: at android.os.Binder.execTransact(Binder.java:994)
11-18 20:51:10.726 1035 1589 I DropBoxManagerService: add tag=system_server_wtf isTagEnabled=true flags=0x2

3.这条报的是应用不能被授与READ_EXTERNAL_STORAGE权限,后面发现是测试同事操作有误,在跑GTS之前已经手动允许了此权限,将此应用所有权限关闭即PASS
[Google GTS]com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions test failed
java.lang.AssertionError: packageName: com.celltick.lockscreen { priv app: true targetSDK: 29 uid: 10141 persistent: false signature: EBAE3776F53F039F8CB785195D53F0D20E783346EA5AC078FAF97E187EE5D216 on system image: true has platform signature: false message: cannot be granted by default to package { permission: android.permission.READ_EXTERNAL_STORAGE } }

以此为笔记记录

你可能感兴趣的:(笔记)