[GTS7.0r3]GtsSuspendAppsTestCases 2 cases failed

问题描述

GtsSuspendAppsTestCases
com.google.android.suspendapps.gts.SuspendPackagesTest#testOpCameraOnSuspend fail
java.lang.AssertionError: Op CAMERA allowed while package is suspended. Actual: 0 at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failEquals(Assert.java:185) at org.junit.Assert.assertNotEquals(Assert.java:199) at com.google.android.suspendapps.gts.SuspendPackagesTest.assertOpDisallowed(SuspendPackagesTest.java:500)
com.google.android.suspendapps.gts.SuspendPackagesTest#testOpRecordAudioOnSuspend fail
java.lang.AssertionError: Op RECORD_AUDIO allowed while package is suspended. Actual: 0 at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failEquals(Assert.java:185) at org.junit.Assert.assertNotEquals(Assert.java:199) at com.google.android.suspendapps.gts.SuspendPackagesTest.assertOpDisallowed(SuspendPackagesTest.java:500) at com.google.android.suspendapps.gts.SuspendPackagesTest.testOpRecordAudioOnSuspend(SuspendPackagesTest.java:509)

解决方案

需要合入如下Google Patch:
https://android.googlesource.com/platform/frameworks/av/+/b0de569edd2d27b8dae9e3048f9c131b6ebc2d45
对应的MTK正式patch:
Q0.MP1:ALPS04867163

微信扫码打赏

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据