CTS/GTS问题分析4 | weiinter105

问题初探

测试命令:
run cts -m CtsOsTestCases -t android.os.cts.SeccompTest#testIsolatedServicePolicy

报错堆栈:
07-24 00:50:08.627 2633 4112 I ActivityManager: Process android.os.cts (pid 13402) has died: vis SF
07-24 00:50:08.627 2022 2022 I Zygote : Process 13402 exited due to signal (31)
07-24 00:50:08.627 13379 13399 I TestRunner: failed: testIsolatedServicePolicy(android.os.cts.SeccompTest)

继续阅读“CTS/GTS问题分析4 | weiinter105”

CTS/GTS问题分析3 | weiinter105

android.security.cts.ListeningPortsTest#testNoListeningLoopbackTcp6Ports
android.security.cts.ListeningPortsTest#testNoListeningLoopbackUdp6Ports
android.security.cts.ListeningPortsTest#testNoRemotelyAccessibleListeningUdp6Ports

问题分析

本地测了一下,前两条没问题,那么下面重点先说下第三条的分析流程:

测试命令: run sts-userbuild -m CtsSecurityTestCases -t android.security.cts.ListeningPortsTest#testNoRemotelyAccessibleListeningUdp6Ports

测试结果:

继续阅读“CTS/GTS问题分析3 | weiinter105”

CTS/GTS问题分析2 | weiinter105

问题初探

测试命令: run gts-suite -s ID -o -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.managedprovisioning.DeviceOwnerProvisioningHostsideTest#testRequiredAppsInManagedProfileForManagedDevice

报错堆栈:
07-27 06:59:30.611 32075 32125 I SilentProvisioningTest: managedProfileProvisionedReceiver.awaitForBroadcast(): failed
07-27 06:59:30.612 2091 2129 D ContactsDatabaseHelper: insertMimeType: vnd.android.cursor.item/website

继续阅读“CTS/GTS问题分析2 | weiinter105”

CTS/GTS问题分析1 | weiinter105

问题初探

测试命令: run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.managedprovisioning.DeviceOwnerProvisioningHostsideTest#testRequiredAppsInManagedDevice

报错堆栈
07-18 16:53:12 I/XtsHostTestBase: Test com.google.android.gts.playstore.ResetPreferredAppsTest#testPersistDefaultBrowser: PASSED
07-18 16:53:19 I/XtsHostTestBase: Test com.google.android.gts.managedprovisioning.AfwRequiredAppsTest#testRequiredApps_DeviceOwner_withGms: FAILURE
07-18 16:53:19 W/XtsHostTestBase: junit.framework.AssertionFailedError: com.google.android.gms is not installed

继续阅读“CTS/GTS问题分析1 | weiinter105”

[Video Record]关于文件4G限制的处理方式

问题描述


 目前代码中的录像默认会有4G的限制,之所以有这样的限制,是因为目前很多存储设备都是fat格式的,fat的size是32位表示的,天然就有4G的限制,而且实际上在限制4G的情况下只能录出来3.8G。是因为
a)要留一部分buffer写moovbox
b)有的还要留部分buffer作为写数据的cache

具体请查看代码

/frameworks/av/media/libstagefright/MPEG4Writer.cpp

1684bool MPEG4Writer::exceedsFileSizeLimit() {
.........
1701 // Be conservative in the estimate: do not exceed 95% of
1702 // the target file limit. For small target file size limit, though,
1703 // this will not help.
1704 return (nTotalBytesEstimate >= (95 * mMaxFileSizeLimitBytes) / 100);// 4G * 95% = 3.8G
1705}

解决方案

继续阅读“[Video Record]关于文件4G限制的处理方式”

git_err:Permissions 0777 for '/home/wa/.ssh/id_rsa' are too open.

把原来电脑的ssh文件拷贝到另一个机器上,只需要修改一下用户名和用户emil就可以使用了,但是这次出现错误:

继续阅读“git_err:Permissions 0777 for '/home/wa/.ssh/id_rsa' are too open.”

[GTS_6.0.R1]GtsPlacementTestCases 下6条CaseFail

问题描述


GtsPlacementTestCases  下6条CaseFail
 com.google.android.placement.gts.DefaultIntentTest#testDefaultIntentHandlers
com.google.android.placement.gts.HomescreenLayoutTest#testFolderPlacement
com.google.android.placement.gts.HomescreenLayoutTest#testShortcutPlacement
com.google.android.placement.gts.HomescreenLayoutTest#testWidgetPlacement
com.google.android.placement.gts.InstalledAppsTest#testAppsInstalled
com.google.android.placement.gts.InstalledAppsTest#testSystemAppsInstalled
第一种报错信息:
java.lang.AssertionError: Unable to execute because authorization failed, please ensure the service account key is properly installed..

 

解决方案

继续阅读“[GTS_6.0.R1]GtsPlacementTestCases 下6条CaseFail”

[CTS]CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testCameraFeatures

问题描述


 这个会测试Device的一些feature,不同的device可能会配置不同的feature,比如flash,focus等项目,因此需要根据实际情况去配置
常见fail log的形式:
junit.framework.AssertionFailedError: PackageManager#hasSystemFeature should NOT return true for android.hardware.camera.xxxx
如:
junit.framework.AssertionFailedError: PackageManager#hasSystemFeature should NOT return true for android.hardware.camera.capability.raw

 

解决方案

继续阅读“[CTS]CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testCameraFeatures”

[cts-on-gsi 8.1_R6/CTS8.1 R10] CtsAutoFillServiceTestCases android.autofillservice.cts.SessionLifecycleTest#testDatasetAuthResponseWhileAutofilledAppIsLifecycled 测试 fail

问题描述


  cts-on-gsi 8.1_R6 CtsAutoFillServiceTestCases android.autofillservice.cts.SessionLifecycleTest#testDatasetAuthResponseWhileAutofilledAppIsLifecycled 测试 fail
11-13 15:36:50 D/ModuleListener: ModuleListener.testFailed(android.autofillservice.cts.SessionLifecycleTest#testDatasetAuthResponseWhileAutofilledAppIsLifecycled, android.autofillservice.cts.RetryableException: Timedout out after 2000 ms

 

[CTS] android.cts.security.SELinuxNeverallowRulesTest#testNeverallowRules265

问题描述


 CtsSecurityHostTestCases
android.cts.security.SELinuxNeverallowRulesTest#testNeverallowRules265
fail
junit.framework.AssertionFailedError: The following errors were encountered when validating the SELinuxneverallow rule:

 

[CTS9.0-R3]CtsUsageStatsTestCases包下,五条case测试fail

问题描述


ndroid.app.usage.cts.NetworkUsageStatsTest#testAppDetails
fail junit.framework.AssertionFailedError: No Rx bytes usage for uid 10903 tag null state STATE_ALL
android.app.usage.cts.NetworkUsageStatsTest#testAppSummary
fail junit.framework.AssertionFailedError: No Rx bytes usage for uid 10903
android.app.usage.cts.NetworkUsageStatsTest#testTagDetails
fail junit.framework.AssertionFailedError: No Rx bytes tagged with 0xf00d for uid 10903
android.app.usage.cts.NetworkUsageStatsTest#testUidDetails
fail junit.framework.AssertionFailedError: No Rx bytes usage for uid 10903
android.app.usage.cts.NetworkUsageStatsTest#testUidTagStateDetails
fail junit.framework.AssertionFailedError: No Rx bytes usage for uid 10903 tag 0xf00d state STATE_FOREGROUND

解决方案

继续阅读“[CTS9.0-R3]CtsUsageStatsTestCases包下,五条case测试fail”

[CTS-8.1R10] android.content.pm.cts.shortcutmanager.ShortcutManagerFakingPublisherTest#testSpoofingPublisher

问题描述


[CTS-8.1R10] android.content.pm.cts.shortcutmanager.ShortcutManagerFakingPublisherTest#testSpoofingPublisher

junit.framework.AssertionFailedError: Expected exception type java.lang.SecurityException was not thrown

解决方案

继续阅读“[CTS-8.1R10] android.content.pm.cts.shortcutmanager.ShortcutManagerFakingPublisherTest#testSpoofingPublisher”

谷歌通知:Android 8.x 认证窗口关闭提前至12月23日

[Android GMS Announcements] Brand Approvals Reminder for Android 8.0 and 8.1

Please note that the GMS approval window for device models launching on Android 8.0 and 8.1 (Oreo) officially ends on December 31, 2018.

As Google is officially closed for the holidays from December 24 to 25 and from December 31 to January 1, please submit all Android 8.0 and 8.1 assets for approval by December 23, 2018 to provide yourself ample time for any potential revision.

继续阅读“谷歌通知:Android 8.x 认证窗口关闭提前至12月23日”