Android 8.0 学习(22) Android8.0平台Eng版本中显示界面切换闪红框

Android O平台Eng版本中显示界面切换闪红框

1、问题

 
 Version >= Android O1
 
在Android O平台Eng版本中,在切换显示界面、开任何apk、操作按钮等操作时,会出现闪红框的现象。
 
 

2、解决方法

 
 出现这种情况的原因是谷歌在eng load中强制开启了penalty_flash ,若要关闭此功能,请做如下修改:
 
File: alps/frameworks/base/core/java/android/os/StrictMode.java
Funcion: public static boolean conditionallyEnableDebugLogging()
// Eng builds have flashes on all the time. The suppression property
// overrides this, so we force the behavior only after the short-circuit
// check above.
/// MTK suggestion: Remove the force red frame
//if (Build.IS_ENG) {
// doFlashes = true;
//}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值