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;
//}
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;
//}