0
run cts -c android.permission2.cts.ProtectedBroadcastsTest

测试失败。

日志:

   android.permission2.cts.ProtectedBroadcastsTest#testSendProtectedBroadcasts FAIL 
junit.framework.AssertionFailedError: expected security exception broadcasting action: com.android.server.WifiManager.action.START_SCAN
at android.permission2.cts.ProtectedBroadcastsTest.testSendProtectedBroadcasts(ProtectedBroadcastsTest.java:94)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)

有人可以帮忙吗?

4

1 回答 1

0

请检查此提交。

https://android.googlesource.com/platform/frameworks/base/+/b8da0376f2d50fdb2ee58deacc6d2041689e36d1%5E!/

这是框架行为的改变。

于 2013-05-28T11:27:48.177 回答