支付宝使用的30多个开源软件

在支付宝中的“设置”选项中,有一项为“关于”,在版权信息中显示了所有使用的开源软件信息。不看不知道,一看吓一跳,原来支付宝居然使用了30多个开源软件,下面整理了支付宝 Android 客户端使用的开源组件,觉得对你们有帮助的可以看下:

继续阅读“支付宝使用的30多个开源软件”

CtsNetTestCases android.net.wifi.cts.NsdManagerTest#testNDSManager FAIL

[DESCRIPTION]
CtsNetTestCases android.net.wifi.cts.NsdManagerTest#testNDSManager
04-05 15:12:49 I/ConsoleReporter: [1/1 arm64-v8a CtsNetTestCases HGAE5WKC] android.net.wifi.cts.NsdManagerTest#testNDSManager fail: junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at android.net.wifi.cts.NsdManagerTest.testNDSManager(NsdManagerTest.java:361)
at java.lang.reflect.Method.invoke(Native Method)
[SOLUTION]

继续阅读“CtsNetTestCases android.net.wifi.cts.NsdManagerTest#testNDSManager FAIL”

android.hardware.consumerir.cts.ConsumerIrTest#test_timing fail

[DESCRIPTION]
run cts -m CtsHardwareTestCases -t android.hardware.consumerir.cts.ConsumerIrTest#test_timing
fail
06-12 15:34:34 D/ModuleListener: ModuleListener.testStarted(android.hardware.consumerir.cts.ConsumerIrTest#test_timing)
06-12 15:34:34 D/ModuleListener: ModuleListener.testFailed(android.hardware.consumerir.cts.ConsumerIrTest#test_timing, junit.framework.AssertionFailedError: Pattern length pattern:499995000, actual:926538
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.assertTrue(Assert.java:20)
at android.hardware.consumerir.cts.ConsumerIrTest.test_timing(ConsumerIrTest.java:94)
at java.lang.reflect.Method.invoke(Native Method)
[SOLUTION]

继续阅读“android.hardware.consumerir.cts.ConsumerIrTest#test_timing fail”

android.media.cts.CamcorderProfileTest#testGetWithId fail

[DESCRIPTION]
run cts -m CtsMediaTestCases - t android.media.cts.CamcorderProfileTest#testGetWithId
fail :
06-11 11:31:08 D/ModuleListener: ModuleListener.testStarted(android.media.cts.CamcorderProfileTest#testGetWithId)
06-11 11:31:09 D/ModuleListener: ModuleListener.testFailed(android.media.cts.CamcorderProfileTest#testGetWithId, junit.framework.AssertionFailedError: expected:<4500000> but was:<24000000>
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)
at junit.framework.Assert.assertEquals(Assert.java:199)
at junit.framework.Assert.assertEquals(Assert.java:205)
at android.media.cts.CamcorderProfileTest.assertProfileEquals(CamcorderProfileTest.java:115)
at android.media.cts.CamcorderProfileTest.checkSpecificProfiles(CamcorderProfileTest.java:240)
[SOLUTION]

继续阅读“android.media.cts.CamcorderProfileTest#testGetWithId fail”

android.bluetooth.cts.BluetoothLeScanTest#testBasicBleScan fail

[DESCRIPTION]

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)

[SOLUTION]
首先,请确保合入patch:ALPS03646285

继续阅读“android.bluetooth.cts.BluetoothLeScanTest#testBasicBleScan fail”

com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions test fail

[DESCRIPTION]
 com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions test fail
java.lang.AssertionError: Permission:android.permission.WRITE_EXTERNAL_STORAGE cannot be granted by default to package:com.google.android.talk  
[SOLUTION]

继续阅读“com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions test fail”

关于USB Accessory Test测试事项

[DESCRIPTION]
一、USB Accessory Test测试,不要求测试机端支持OTG;
因此取消usb.host不会影响此项测试;

<meta-data android:name="test_category" android:value="@string/test_category_hardware" />

<meta-data android:name="test_required_features" android:value="android.hardware.usb.accessory" />

<meta-data android:name="test_excluded_features"

二、USB Accessory Test测试方法:
1、Install the Cts Vefifier USB Companion app on a separate helper device;
2、Start the accessory test companion in the Cts Verifier USB compannion;
3、Connect the two devices, if using a otg adapter make sure the adapter directly conected to the helper device.if using an type-c cable make sure that the helper device is set as supply power to the attached device.

[SOLUTION]

继续阅读“关于USB Accessory Test测试事项”

com.google.android.os.gts.SysConfigTest#testValidSysConfigPresent fail

[DESCRIPTION]

低于内存是512MB的android go项目,maps go是optional app.(参考GMS Go Requirements - 2018-02-23.pdf第3页),
但是移除掉的话,会出现如下GTS fail:
Module:GtsOsTestCases
Test:com.google.android.os.gts.SysConfigTest#testValidSysConfigPresent

com.google.android.os.gts.SysConfigTest#testValidSysConfigPresent
fail
java.lang.AssertionError: Modification of required config file: Missing elements for tag linkedApps: 'com.google.android.apps.maps' . required={com.android.vending, com.google.android.music, com.google.android.apps.docs, com.google.android.apps.maps, com.google.android.videos, com.google.android.apps.photos, com.google.android.calendar, com.google.android.apps.tycho, com.google.android.talk, com.google.android.apps.youtube.mango} . all={com.google.android.apps.docs.editors.docs, com.google.android.apps.mapslite, com.google.android.apps.docs.editors.sheets, com.google.android.apps.docs.editors.slides, com.android.vending, com.google.android.music, com.google.android.apps.docs, com.google.android.apps.plus, com.google.android.videos, com.google.android.apps.photos, com.google.android.calendar, com.google.android.apps.tycho, com.google.android.talk, com.google.android.apps.youtube.mango} at org.junit.Assert.fail(Assert.java:88) at com.google.android.os.gts.SysConfigTest.assertSystemConfigEquals(SysConfigTest.java:424) at com.google.android.os.gts.SysConfigTest.testValidSysConfigPresent(SysConfigTest.java:112)

[SOLUTION]

继续阅读“com.google.android.os.gts.SysConfigTest#testValidSysConfigPresent fail”

android.media.cts.AudioTrackLatencyTest#testPlaySmallBuffer test fail

[DESCRIPTION]

android.media.cts.AudioTrackLatencyTest#testPlaySmallBuffer test fail
junit.framework.AssertionFailedError: testPlaySmallBuffer: did it play all the data? expected:<1539> but was:<1024>
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)

[SOLUTION]

继续阅读“android.media.cts.AudioTrackLatencyTest#testPlaySmallBuffer test fail”

VtsHalKeymasterV3_0Target模块Fail

[DESCRIPTION]
VtsHalKeymasterV3_0Target模块里面这2条case Fail

AttestationTest.EcAttestation ”“AttestationTest.RsaAttestation fail

GTS也有2条对应的case 会Fail
com.google.android.gts.security.AttestationRootHostTest#testEcAttestationChain
com.google.android.gts.security.AttestationRootHostTest#testRsaAttestationChain

[SOLUTION]

继续阅读“VtsHalKeymasterV3_0Target模块Fail”

[CTS Test]项目不支持OTG,如何去除CtsVerifier测试中USB相关的测试项

[DESCRIPTION]
AudioFrequencyMicrophoneTest
AudioFrequencySpeakerTest
AudioFrequencyUnprocessedTest
这三条需要连接USB microphone麦克风才能测试
USB Audio Peripheral Attributes Test
USB Audio Peripheral Buttons Test
USB Audio Peripheral Play Test
USB Audio Peripheral Record Test
这四条需要连接USB Audio headset耳机才能测试

继续阅读“[CTS Test]项目不支持OTG,如何去除CtsVerifier测试中USB相关的测试项”