androdi 9.0 P版本 CTS 又出现问题了。。

 

arm64-v8a CtsAppTestCases
TestResultDetails
android.app.cts.ActivityManagerMemoryClassTest#testGetMemoryClass

fail

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference

arm64-v8a CtsContentTestCases
TestResultDetails
android.content.res.cts.ConfigurationTest#testSetToDefaults

fail

junit.framework.AssertionFailedError: expected:<1.0> but was:<0.85>

arm64-v8a CtsDpiTestCases
TestResultDetails
android.dpi.cts.ConfigurationTest#testScreenConfiguration

fail

junit.framework.AssertionFailedError: DisplayMetrics.DENSITY_DEVICE_STABLE must be one of the DisplayMetrics.DENSITY_* values: [160, 320, 480, 640, 260, 420, 360, 300, 240, 400, 560, 340, 213, 120, 280, 440]

arm64-v8a CtsThemeHostTestCases
TestResultDetails
android.theme.cts.ThemeHostTest#testThemes

fail

junit.framework.AssertionFailedError: Failed to get resource: /210dpi.zip

修改

diff --git a/device/zte/C61/system.prop b/device/zte/C61/system.prop
index 38bee9c..e7967b3 100755
--- a/device/zte/C61/system.prop
+++ b/device/zte/C61/system.prop
@@ -230,7 +230,8 @@ ro.cw.customized=c.simple_no
 ro.com.google.clientidbase=android-wind
 

-ro.sf.lcd_density=210
+ro.sf.lcd_density=213
+dalvik.vm.heapgrowthlimit=192m
 
 persist.camera.openid=0                #wskyo camera openid 
 
diff --git a/device/zte/products/C61.mk b/device/zte/products/C61.mk
old mode 100644
new mode 100755
index f6f87a2..bbe5680
--- a/device/zte/products/C61.mk
+++ b/device/zte/products/C61.mk
@@ -9,7 +9,7 @@ PRODUCT_MODEL := C61
 PRODUCT_LIST += C61
 TARGET_VENDOR := zte
 
-BUILD_DISPLAY_ID := C61_CNCommon_V1.00
+BUILD_DISPLAY_ID := C61_CNCommon_V3.00
 BUILD_INTERNAL_ID := C61_Z0_CN_LSZOO1JF00J100
 BUILD_DEVICE_DISPLAY := C61
 
diff --git a/frameworks/base/core/java/android/content/res/Configuration.java b/frameworks/base/core/java/android/content/res/Configuration.java
index f6fa972..89fa4a7 100755
--- a/frameworks/base/core/java/android/content/res/Configuration.java
+++ b/frameworks/base/core/java/android/content/res/Configuration.java
@@ -1175,7 +1175,7 @@ public final class Configuration implements Parcelable, Comparable<Configuration
      */
     public void setToDefaults() {
                
-        fontScale = 0.85f;
+        fontScale = 1;
         mcc = mnc = 0;
         mLocaleList = LocaleList.getEmptyLocaleList();
         locale = null;

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值