[VTS 9.0_R3] fail项:VtsHalRadioV1_1Target

[DESCRIPTION]
 armeabi-v7a VtsHalRadioV1_1Target
Test Result Details
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setCarrierInfoForImsiEncryption(imsrild1)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setCarrierInfoForImsiEncryption(imsrild2)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setCarrierInfoForImsiEncryption(se1)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setCarrierInfoForImsiEncryption(se2)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setCarrierInfoForImsiEncryption(slot1)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setCarrierInfoForImsiEncryption(slot2)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(imsrild1)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(imsrild2)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(se1)_32bit fail hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
报错讯息如下:
09-27 10:08:35 D/ModuleListener: ModuleListener.testFailed(VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(se1)_32bit, hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
Expected equality of these values:
  CardState::PRESENT
    Which is: 4-byte object <01-00 00-00>
  cardStatus.cardState
    Which is: 4-byte object <00-00 00-00>)
09-27 10:08:35 I/ConsoleReporter: [8/42 armeabi-v7a VtsHalRadioV1_1Target 0123456789ABCDEF] VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(se1)_32bit fail: hardware/interfaces/radio/1.1/vts/functional/radio_hidl_hal_test.cpp:51
Expected equality of these values:
  CardState::PRESENT
    Which is: 4-byte object <01-00 00-00>  期望插卡
  cardStatus.cardState
    Which is: 4-byte object <00-00 00-00>  实际无卡
[SOLUTION]

继续阅读“[VTS 9.0_R3] fail项:VtsHalRadioV1_1Target”

Android P上打开AVB2.0的配置方法

AVB2.0 是google 设计的 verified boot 流程用于保护boot,recovery/system/vendor partion的完整性。每一个partion可以设置为hash或者是chain partion方式

   更多AVB2.0的资讯,您可以参考google spec
https://android.googlesource.com/platform/external/avb/+/master/README.md
   如果你的平台使用的kernel版本大于等于4.9,并且是Android P版本,AVB2.0是必须要开启的
   MTK默认的配置为:recovery,systemchain partion,其余为hash。您也可以根据需要修改

   P版本开启AVB2.0的方法

继续阅读“Android P上打开AVB2.0的配置方法”

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17′ (or `GLIBC_2.18′) not found

Android P 9.0 编译时报如下错误:

原因应该是ubuntu 版本太低 12.04, 要求最低版本:ubuntu 14.04

继续阅读“/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17′ (or `GLIBC_2.18′) not found”

Android P(9.0) userdebug版本执行adb remount失败

[DESCRIPTION]
     在android P版本上如果按照“FAQ18076 android 6.0 M userdebug版本执行adb remount失败”的做法在userdebug版本上执行adb remount会提示以下错误:
remount of the / superblock failed: Permission denied
remount failed
     原因是android P版本后google启用avb(Android Verified Boot)2.0,verified boot and DM-verity默认启用策略发生了变化。详情如下:
DM-Verity behavior changes from vboot1.0 to avb2.0.
On vboot1.0, dm-verity is turned off on eng build and is enabled on userdebug/user build.
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.
  

继续阅读“Android P(9.0) userdebug版本执行adb remount失败”

[cts9.0r1]CtsGraphicsTestCases 包四条case fail

[DESCRIPTION]
CtsGraphicsTestCases
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionByteArray
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionInputStream
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionInputStreamInBitmap
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionStringAndFileDescriptor

fail log如下
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionByteArray fail java.lang.AssertionError: MSE too large for normal case: 3.0239105224609375
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionInputStream fail java.lang.AssertionError: MSE too large for normal case: 3.0239105224609375
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionInputStreamInBitmap fail java.lang.AssertionError: MSE too large for normal case: 3.0239105224609375
android.graphics.cts.BitmapRegionDecoderTest#testDecodeRegionStringAndFileDescriptor fail java.lang.AssertionError: MSE too large for normal case: 3.18511962890625

[SOLUTION]

patchID: ALPS04111863
申请此patch即可!

Google Android Partnership Boot Camp -Shenzhen- Sep 2018 深圳研讨会

相关主题如下:

Android P CTS Hightlight, CTS Instant, Waiver Process

CTS and GTS Best Practice

Android P GMS Req.

Treble Compliance/VTS

Secutiry

OTA

Android Go

Camera Image Test Suite (ITS)

Branding Approval

How to get Android tech help

继续阅读“Google Android Partnership Boot Camp -Shenzhen- Sep 2018 深圳研讨会”

Android 9 Pie 兼容性常见问题及注意事项

应用不兼容的常见原因

使用了系统的 ClassLoader 加载 org.apache.http.* 的库

Android M 就已经开始移除对 Apache HTTP client 的支持。而 Android P 的系统 ClassLoader 已经不支持加载 org.apache.http.*包 (抛出 NoClassDefFoundError),应用必须用自定义的 ClassLoader 来加载,同时确保 org.apache.http.* 的路径包含在应用 classpath 上。

应用不应该再使用 org.apache.http.legacy 库,如果实在必须,可以将它打包进自己的 APK,同时改名以防止与运行时的版本冲突。

继续阅读“Android 9 Pie 兼容性常见问题及注意事项”

CTS 9.0 R1 released, new Android 9 platform and partner docs available

Android 9

Android 9 is the release of the development milestone code-named P. The source code for the following tests, including tests for instant apps, can be synced with the ‘android-cts-9.0_r1’ tag in the open-source tree.