android.app.cts.SystemFeaturesTest#testSensorFeatures
Fail:
java.lang.AssertionError: PackageManager#hasSystemFeature(android.hardware.sensor.compass) returns true but SensorManager#getSensorList(2) shows sensors [] expected:<true> but was:<false>
java.lang.AssertionError: PackageManager#hasSystemFeature should NOT return true for android.hardware.camera.autofocus
解决办法:
1.dists frameworks/native/data/etc/路径下增加android.hardware.sensor.compass.xml文件。
android.hardware.sensor.stepdetector.xml文件。handheld_core_hardware.xml文件。
2.HctSystemConfig.mk文件中HCT_PACKAGES_SUBSTITUTE的值变更为Baidu_Location:- TagGoogle:- CalculatorGoogle:- OobConfig:- FaceLock:- GmsEEAType4cIntegration:- GoogleDialer:- Messages:- AndroidAutoStub:-