分类: Android
[8.1R7] [CTSV] USB Audio Peripheral Attributes Test
其中三条用到的设备如下:具体测试步骤请参考:
https://source.android.com/compatibility/cts/usb-audio
- Presonus AudioBox 22VSL(or 44VSL )
- Presonus AudioBox USB
android.security.sts.Poc16_08#testPocCVE_2015_8944
[DESCRIPTION]
android.security.sts.Poc16_08#testPocCVE_2015_8944
android.security.cts.StagefrightTest#testStagefright_cve_2018_9423
继续阅读“android.security.cts.StagefrightTest#testStagefright_cve_2018_9423”
android.security.cts.Poc18_02#testPocCVE_2017_13232
[DESCRIPTION]
android.security.cts.Poc18_02#testPocCVE_2017_13232
android.security.sts.Poc16_12#testPocCVE_2016_8448
[DESCRIPTION]
android.security.sts.Poc16_12#testPocCVE_2016_8448
android.security.sts.Poc17_04#testPocCVE_2014_9922
android.security.cts.StagefrightTest#testStagefright_cve_2016_3741 fail
[DESCRIPTION]
android.security.cts.StagefrightTest#testStagefright_cve_2016_3741 fail
继续阅读“android.security.cts.StagefrightTest#testStagefright_cve_2016_3741 fail”
CVE-2016-6684 fail
CtsSecurityTestCases android.security.cts.StagefrightTest#testBug_34097866
[DESCRIPTION]
CtsSecurityTestCases android.security.cts.StagefrightTest#testBug_34097866
testStagefright_bug_33933140
继续阅读“CtsSecurityTestCases android.security.cts.StagefrightTest#testBug_34097866”
testStagefright_bug_68953854 fail
android.security.cts.StagefrightTest#testStagefright_bug_38487564
[DESCRIPTION]
android.security.cts.StagefrightTest#testStagefright_bug_38487564
继续阅读“android.security.cts.StagefrightTest#testStagefright_bug_38487564”
[CTS_8.1] android.server.cts.KeyguardLockedTests#testDismissKeyguardActivity_method fail
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.TestCase.fail(TestCase.java:227)
at android.server.cts.KeyguardTestBase.assertInLogcat(KeyguardTestBase.java:70)
at android.server.cts.KeyguardTestBase.assertOnDismissSucceededInLogcat(KeyguardTestBase.java:41)
at android.server.cts.KeyguardLockedTests.testDismissKeyguardActivity_method(KeyguardLockedTests.java:119)
继续阅读“[CTS_8.1] android.server.cts.KeyguardLockedTests#testDismissKeyguardActivity_method fail”
[CTS Verifier]CTS Sensor Test#testBatchAndFlush
[DESCRIPTION]
testBatchAndFlush(android.hardware.cts.SensorTest): WaitForFlush | sensor='PROXIMITY', samplingPeriod=0us, maxReportLatency=10000000us | timeout=10000000us
windows环境下repo下载Android源代码
官方推荐Android源码的下载方式是Linux系统上是通过Repo来完成的。Win环境下Repo的使用又依赖Git、Python。源码的下载又涉及到伟大的长城防火墙。所以这篇文章的核心有三个:安装Repo依赖环境、让Repo在Win上面跑起来、使用国内源避开墙。
如果是使用Win10上面用Linux子系统下载,可以参考微软官方的教程(不过依然还是会出问题)。如果直接在Win环境下面,可以参考本教程。
以下是Win下面下载Aosp源代码的步奏。
repo下载Android源码时报 python windowserror 5
WindowsError: [Error 5]
repo sync之后,突然停在了这个地方
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<span style="font-family: arial, helvetica, sans-serif;">Traceback (most recent call last): File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo/main.py", line 538, in <module> _Main(sys.argv[1:]) File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo/main.py", line 512, in _Main result = repo._Run(argv) or 0 File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo/main.py", line 185, in _Run result = cmd.Execute(copts, cargs) File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo<span class="hljs-symbol">\s</span>ubcmds<span class="hljs-symbol">\s</span>ync.py", line 823, in Execute project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync) File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo<span class="hljs-symbol">\p</span>roject.py", line 1377, in Sync_LocalHal self._CopyAndLinkFiles() File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo<span class="hljs-symbol">\p</span>roject.py", line 1294, in _CopyAndLinkF linkfile._Link() File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo<span class="hljs-symbol">\p</span>roject.py", line 299, in _Link self.__linkIt(self.src_rel_to_dest, self.abs_dest) File "E:<span class="hljs-symbol">\L</span>ocalProject<span class="hljs-symbol">\O</span>reo<span class="hljs-symbol">\.</span>repo<span class="hljs-symbol">\r</span>epo<span class="hljs-symbol">\p</span>roject.py", line 279, in __linkIt os.remove(absDest) WindowsError: [Error 5] : u'E:<span class="hljs-symbol">\\</span>LocalProject<span class="hljs-symbol">\\</span>Oreo<span class="hljs-symbol">\\</span>build/core'</span> |
看到这个报错我就有点尴尬了。因为这个repo的脚本是由大神改的。完全不懂脚本啊。
修改后的脚本:
windows下repo sync error: cannot initialize work tree
1. 问题描述
下载Android源代码时,出现这个错误
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Traceback (most recent call last): File "E:\LocalProject\Oreo\.repo\repo/main.py", line 538, in <module> _Main(sys.argv[1:]) File "E:\LocalProject\Oreo\.repo\repo/main.py", line 512, in _Main result = repo._Run(argv) or 0 File "E:\LocalProject\Oreo\.repo\repo/main.py", line 185, in _Run result = cmd.Execute(copts, cargs) File "E:\LocalProject\Oreo\.repo\repo\subcmds\sync.py", line 823, in Execute project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync) File "E:\LocalProject\Oreo\.repo\repo\project.py", line 1335, in Sync_LocalHalf self._InitWorkTree(force_sync=force_sync) File "E:\LocalProject\Oreo\.repo\repo\project.py", line 2502, in _InitWorkTree raise GitError("cannot initialize work tree") error.GitError: cannot initialize work tree |
2. 问题分析
2.1 查看哪里出了问题
从log来看,.repo/repo/project.py是要关注的地方,可以定位到脚本:
raise GitError("cannot initialize work tree")
其所在的函数为_InitWorkTree
_InitWorkTree完整的代码如下:
Android P(9.0) userdebug版本执行adb remount失败
remount failed
DM-verity could be disabled with adb (not fastboot) on userdebug build without unlocking device first.
DM-Verity could not be disabled on user build.
On avb2.0, dm-verity behavior are the same on all build variants.
It's turned on by default and could only be disabled after device is unlocked.
dm-verity disable flag is moved from system image dm-verity metadata(vboot1.0) to vbmeta image(avb2.0), and you have two ways to disable it: adb and fastboot.
CtsSecurityTestCases android.security.cts.ListeningPortsTest#testNoListeningLoopbackTcp6Ports fail
[DESCRIPTION]
android.security.cts.ListeningPortsTest#testNoListeningLoopbackTcp6Ports fail
[SOLUTION]
Google will remove this test case in 2018-11 STS.
No need to worry about com.google.android.youtube problem.
【CTS_All version】android.net.cts.legacy.api22.ConnectivityManagerLegacyTest#testStartUsingNetworkFeature_enableHipri
[DESCRIPTION]
android.net.cts.legacy.api22.ConnectivityManagerLegacyTest
-- testStartUsingNetworkFeature_enableHipri
fail
junit.framework.AssertionFailedError: Did not receive expected CONNECTED broadcast for type 5 after 30000 ms at junit.framework.Assert.fail(Assert.java:50)