cts8.1_r8.:android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields fail

[DESCRIPTION]
 CtsShortcutManagerTestCases
android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields
FAIL: junit.framework.AssertionFailedError: Expected exception type was java.lang.IllegalArgumentException but caught java.lang.SecurityException: Shortcut package name mismatch (message=)
[SOLUTION]

继续阅读“cts8.1_r8.:android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields fail”

android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields fail

[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.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields fail”

android.keystore.cts.KeyChainTest#testIsBoundKeyAlgorithm_RequiredAlgorithmsSupported fail

[DESCRIPTION]
 android.keystore.cts.KeyChainTest#testIsBoundKeyAlgorithm_RequiredAlgorithmsSupported fail
unit.framework.AssertionFailedError: RSA must be hardware-backed by a hardware-specific Keymaster HAL at junit.framework.Assert.fail(Assert.java:50) at junit.framework.Assert.assertTrue(Assert.java:20) at android.keystore.cts.KeyChainTest.testIsBoundKeyAlgorithm_RequiredAlgorithmsSupported(KeyChainTest.java:76) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:115) at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77) at junit.framework.TestResult.run(TestResult.java:118) at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55) at junit.framework.TestCase.run(TestCase.java:124) at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63) at
[SOLUTION]

继续阅读“android.keystore.cts.KeyChainTest#testIsBoundKeyAlgorithm_RequiredAlgorithmsSupported fail”

android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields

[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]

继续阅读“android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields”

[VTS]VtsTrebleVintfTest#VtsTrebleVintfTest.InterfacesAreReleased_32bit 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”

[VTS 8.1-r5]CtsMediaTestCases--android.media.cts.StreamingMediaPlayerTest#testHlsWithHeadersCookies FAIL

[DESCRIPTION]
 android.media.cts.StreamingMediaPlayerTest#testHLS
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

[SOLUTION]

继续阅读“[VTS 8.1-r5]CtsMediaTestCases--android.media.cts.StreamingMediaPlayerTest#testHlsWithHeadersCookies FAIL”

com.google.android.placement.gts.CoreGmsAppsTest#testCoreGmsAppsPreloaded fail

[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”

GtsWebViewTestCases com.google.android.webview.gts.WebViewTest#testChromeAndWebViewSimilarVersions fail

[DESCRIPTION]
 com.google.android.webview.gts.WebViewTest#testChromeAndWebViewSimilarVersions
fail

09-26 10:54:58 I/TestFailureListener: FailureListener.testFailed com.google.android.webview.gts.WebViewTest#testChromeAndWebViewSimilarVersions false false false
09-26 10:54:59 D/GranularRetriableTestWrapper: The test has reached its max number of run attempt: 1 time(s)
09-26 10:54:59 D/TestDevice: Uninstalling com.google.android.webview.gts
09-26 10:55:00 I/ConsoleReporter: [reef00000000001] Starting arm64-v8a GtsWebViewTestCases with 1 test
09-26 10:55:00 I/ConsoleReporter: [1/1 arm64-v8a GtsWebViewTestCases reef00000000001] com.google.android.webview.gts.WebViewTest#testChromeAndWebViewSimilarVersions fail: junit.framework.AssertionFailedError: WebView and Chrome must have the same version codes. expected:<3396> but was:<3497>

 [SOLUTION]

继续阅读“GtsWebViewTestCases com.google.android.webview.gts.WebViewTest#testChromeAndWebViewSimilarVersions fail”

VTS Test suites required-use date

The November releases of the Vendor Test Suite (VTS) for Android 9.0, 8.1, and 8.0 are released on the GMS help center.

These releases contain continuous improvements of tests and test infrastructure and verify security patches up to November 2018.

These versions will be required for the GMS approvals as shown in the table below:

继续阅读“VTS Test suites required-use date”

[Android GMS Announcements] Google's Mobile Applications for Android in the EEA 送测欧盟的设备将受影响

On July 18, 2018, the European Commission issued a decision regarding the distribution of Google’s mobile applications on Android in the European Economic Area (EEA). As such, we are making some changes to our agreements and updating the GMS technical requirements for Google Mobile Services (GMS) smartphones and tablets supplied into the EEA for sale to end users.

继续阅读“[Android GMS Announcements] Google's Mobile Applications for Android in the EEA 送测欧盟的设备将受影响”

Android调用相册、相机(兼容6.0、7.0、8.0)

关于Android 项目调用系统相机 与调用系统相册的之后拿到照片的基本操作,我感觉好多人还是不太熟悉的哈。项目兼容 Android 5.0设备、Android 6.0设备、Android 7.0、Android 8.0等设备,下面请开始欣赏我的表演,先上动画,给大家看一下效果哈。

Android 5.0设备效果:

继续阅读“Android调用相册、相机(兼容6.0、7.0、8.0)”

Android 系统自带图片裁剪功能(适配7.0、8.0、小米)

前段时间写了如何获取相册和拍照之后的照片并且进行显示和上传,这一次是如何进行圆形图像制作,经常看我写的笔记的人会知道,我很懒。那么我就懒的自定义了,目前需求就用原生的就好了,大神的轮子,我会在后面进行推荐。这篇笔记是依赖于:Android调用相册、相机(兼容6.0、7.0、8.0) 文章撰写的,所以不会基本操作的,请先去看看那个。

先上效果哈:
[系统自带的裁剪效果]

继续阅读“Android 系统自带图片裁剪功能(适配7.0、8.0、小米)”