有的时候分析cts问题,需要在cts代码中添加log,然后再用添加过log的cts代码所build出来的cts apk去做测试复现问题。
下面介绍如何在不同版本编译添加过log的cts apk。
[SOLUTION]
源
[SOLUTION]
android.bluetooth.cts.BluetoothLeScanTest
-- testBasicBleScan
--testBatchScan
-- testOpportunisticScan
-- testScanFilter
一、Fail信息如下:
fail junit.framework.AssertionFailedError: Scan results shouldn't be empty at junit.framework.Assert.fail(Assert.java:50)
继续阅读“【CTS_All version】android.bluetooth.cts.BluetoothLeScanTest#testBasicBleScan fail”
run Test Report
CtsMediaStressTestCases |
run Test Report
CtsMediaTestCases |
[DESCRIPTION]
报错讯息:
10-08 18:02:33 I/FailureListener: FailureListener.testFailed android.security.cts.Poc16_09#testPocCVE_2016_2471 false false false
10-08 18:02:33 D/ModuleListener: ModuleListener.testEnded(android.security.cts.Poc16_09#testPocCVE_2016_2471, {})
10-08 18:02:33 D/ModuleListener: ModuleListener.testRunFailed(Could not find device LCEAA000842E6EGC)
10-08 18:02:33 I/ConsoleReporter: [LCEAA000842E6EGC] Could not find device LCEAA000842E6EGC
10-08 18:02:33 D/JarHostTest: HostTestListener.testRunEnded(187806, {})
10-08 18:02:33 W/TestInvocation: Invocation did not complete due to device LCEAA000842E6EGC becoming not available. Reason: Could not find device LCEAA000842E6EGC
10-08 18:02:33 W/ResultReporter: Invocation failed: com.android.tradefed.device.DeviceNotAvailableException: Could not find device LCEAA000842E6EGC
[SOLUTION]
继续阅读“【STS】 run sts-engbuild 测试到一半,发生DeviceNotFound,及Deviceoffline,无法继续跑”
[DESCRIPTION]
arm64-v8a CtsAppTestCases
android.app.cts.ActionBarTest#testOptionsMenuKey
fail
junit.framework.AssertionFailedError
[SOLUTION]
继续阅读“[CTS 8.0_R12] arm64-v8a CtsAppTestCases - android.app.cts.ActionBarTest#testOptionsMenuKey”
[DESCRIPTION]
android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields 失败。
unit.framework.AssertionFailedError: Expected exception type was java.lang.IllegalArgumentException but caught java.lang.SecurityException: Shortcut package name mismatch (message=)
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.assertTrue(Assert.java:20)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:427)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:408)
[SOLUTION]
继续阅读“android.keystore.cts.KeyChainTest#testIsBoundKeyAlgorithm_RequiredAlgorithmsSupported fail”
[DESCRIPTION]
09-18 20:28:16 I/ModuleListener: [80/828] org.skia.skqp.SkQPRunner#gles_bug339297_as_clip fail:
java.lang.Throwable: Image mismatch: max channel diff = 3.000000
at org.skia.skqp.SkQPRunner.Fail(SkQPRunner.java:35)
at org.skia.skqp.SkQPRunner.run(SkQPRunner.java:135)
at org.junit.runners.Suite.runChild(Suite.java:128)
[SOLUTION]
[DESCRIPTION]
android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields 失败。
junit.framework.AssertionFailedError: Expected exception type was java.lang.IllegalArgumentException but caught java.lang.SecurityException: Shortcut package name mismatch (message=)
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.assertTrue(Assert.java:20)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:427)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:408)
at android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest.testShortcutInfoMissingMandatoryFields(ShortcutManagerClientApiTest.java:132)
at java.lang.reflect.Method.invoke(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:220)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:205)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
[SOLUTION]
[DESCRIPTION]
android.security.cts.Poc16_04#testPocCVE_2016_2419 fail
[SOLUTION]
继续阅读“[STS]android.security.cts.Poc16_04#testPocCVE_2016_2419 fail”
[DESCRIPTION]
VtsTrebleVintfTest#VtsTrebleVintfTest.InterfacesAreReleased_32bit fail
09-18 15:32:22 D/ModuleListener: ModuleListener.testFailed(VtsTrebleVintfTest#VtsTrebleVintfTest.InterfacesAreReleased_32bit, test/vts-testcase/hal/treble/vintf/vts_treble_vintf_test.cpp:256
Failed
android.hardware.biometrics.fingerprint not available.
)
09-18 15:32:22 I/ConsoleReporter: [1/1 armeabi-v7a VtsTrebleVintfTest 331234567890123354] VtsTrebleVintfTest#VtsTrebleVintfTest.InterfacesAreReleased_32bit fail: test/vts-testcase/hal/treble/vintf/vts_treble_vintf_test.cpp:256
Failed
android.hardware.biometrics.fingerprint not available.
[SOLUTION]
继续阅读“[VTS]VtsTrebleVintfTest#VtsTrebleVintfTest.InterfacesAreReleased_32bit fail”
[DESCRIPTION]
android.security.cts.KernelSettingsTest#testNoConfigGz fail
junit.framework.AssertionFailedError: /proc/config.gz is readable. Please recompile your kernel with CONFIG_IKCONFIG_PROC disabled
[SOLUTION]
继续阅读“[STS] android.security.cts.KernelSettingsTest#testNoConfigGz FAIL”
junit.framework.AssertionFailedError: Media player had error 100 playing video
android.media.cts.StreamingMediaPlayerTest#testHlsWithHeadersCookies
fail
junit.framework.AssertionFailedError: Media player had error 100 playing video
[DESCRIPTION]
com.google.android.placement.gts.CoreGmsAppsTest#testCoreGmsAppsPreloaded
fail
9-21 17:57:28 D/ModuleListener: ModuleListener.testStarted(com.google.android.placement.gts.CoreGmsAppsTest#testCoreGmsAppsPreloaded)
09-21 17:57:29 I/ModuleListener: [1/1] com.google.android.placement.gts.CoreGmsAppsTest#testCoreGmsAppsPreloaded fail:
java.lang.AssertionError: Mandatory core GMS packages not found as system apps:
com.google.android.videos
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at com.google.android.placement.gts.CoreGmsAppsTest.checkGeneralCoreGmsAppsPreloaded(CoreGmsAppsTest.java:198)
at com.google.android.placement.gts.CoreGmsAppsTest.testCoreGmsAppsPreloaded(CoreGmsAppsTest.java:402)
at java.lang.reflect.Method.invoke(Native Method)
[SOLUTION]
继续阅读“com.google.android.placement.gts.CoreGmsAppsTest#testCoreGmsAppsPreloaded fail”
[SOLUTION]
VTS 8.1r5 with Oct GSIs is mandatory from 10/18.
For Oct GSIs ,the build number is 5035642 , older version like 4918632 is not allowed to use anymore.
R6 GSI 即Oct GSIs已释放;
据 CNBC 报道,在周一举行的《连线》二十五周年峰会上,Google CEO Sundar Pichai 侧面承认了为中国定制的“特供版 Google”的存在。
这一项目归属于 Google 的“Project Dragonfly”,最早于今年夏天由 The Intercept 爆出,报道中提到,这项计划自 2017 年春季以来一直在进行,并在当年 12 月 Sundar Pichai 和中国政府高级官员会面后加速。
在论坛上 Sundar Pichai 承认了这一项目的存在,并表示尽管 Google 为大陆提供的搜索引擎为“阉割版”,但它依然能满足 99% 的搜索需求,屏蔽掉的只是审查部门认为敏感的搜索结果。
让我们看看清晰版,这是今天的《深圳商报》: