MTK屏蔽谷歌服务报错对话框KK

frameworks/base/services/java/com/android/server/am/ActivityManagerService.java

@@ -1211,8 +1211,17 @@ public final class ActivityManagerService extends ActivityManagerNativeif (mShowDialogs && !mSleeping && !mShuttingDown) {Dialog d = new AppErrorDialog(mContext,ActivityManagerService.this, res, proc);
+                       if(d != null){+                       if(proc != null && (proc.info.packageName.equals("com.google.android.gms"))){+                               d = null;
+                             }
+                        }
+                       if(d != null){ // modify by sqx  sd.show();proc.crashDialog = d;
+                       } // modify by sqx  s} else {// The device is asleep, so just pretend that the user// saw a crash dialog and hit "force quit".
@@ -1246,8 +1255,17 @@ public final class ActivityManagerService extends ActivityManagerNativeDialog d = new AppNotRespondingDialog(ActivityManagerService.this,mContext, proc, (ActivityRecord)data.get("activity"),msg.arg1 != 0);+                          if(d != null){+                          if(proc != null && (proc.info.packageName.equals("com.google.android.gms"))){+                                  d = null;
+                              }
+                         }
+                       if(null != d) { // modify by sqx  sd.show();proc.anrDialog = d;
+                       } } else {// Just kill the app if there is no dialog to be shown.killAppAtUsersRequest(proc, null);
@@ -14315,11 +14333,11 @@ public final class ActivityManagerService extends ActivityManagerNativeintent.addFlags(Intent.FLAG_EXCLUDE_STOPPED_PACKAGES);/// M: ALPS00601880, Fix Settings and RemoteView ANR, Avoid send broadcast to FG queue. @{-        if (intent.getCategories() != null) {+        /*if (intent.getCategories() != null) {if (intent.getCategories().contains("android.intent.category.ALTERNATIVE")) {intent.setFlags(intent.getFlags()&~(Intent.FLAG_RECEIVER_FOREGROUND));}
-        }
+        }*//// @}if (FeatureOption.MTK_LCA_RAM_OPTIMIZE) {

MTK屏蔽谷歌服务报错对话框KK相关推荐

  1. Linux环境邮件服务报错:Couldn‘t connect to host, port: smtp.qq.com, 25; timeout -1;

    在Windows环境下邮件服务能够正常使用,但是在Linux环境下,邮件服务报错,无法发送邮件. 具体报错信息如下: com.sun.mail.util.MailConnectException: C ...

  2. cmd 顺序启动服务_window下启动redis步骤和服务报错解决办法

    window下启动redis的步骤: 打开一个 cmd 窗口 使用 cd 命令切换目录到 C:redis 运行: redis-server.exe redis.windows.conf 如果想方便的话 ...

  3. Ambari删除服务报错之CSRF protection is turned on

    Ambari安装组件失败后执行 curl 删除服务报错 CSRF protection is turned on X-Requested_By HTTP Header is required 解决方案 ...

  4. weblogic启动服务报错

    昨天在搭建测试环境过程中安装完weblogic9.2后,发现启动服务报错后台错误提示:weblogic.management.ManagementException: [Management:1412 ...

  5. struts1起服务报错

    struts1起服务报错 1. 2014-5-10 21:36:56 org.apache.struts.action.ActionServlet init 严重: Unable to initial ...

  6. mysql 启动服务1067_windows无法启动MySQL服务报错1067的解决方法

    突然登陆MySQL时,出现禁止访问或者无法连接到数据库,回到服务,去打开wampmysqld ,发现 "windows无法启动MySQL服务 错误1067" ,死活启动不了,咋办? ...

  7. mysql5启动错误1067_win7 64位 mysql5.5启动服务报错无法启动,错误1067

    前几天还好好的,今天启动就报错. 启动服务报错:windows无法启动mysql4服务(位于本地计算机上) 错误1067:进程意外终止. 查看了一下错误日志,如下: 170319 23:10:52 [ ...

  8. mysql连接服务报错1058

    mysql连接服务报错1058 解决办法: 针对win10系统:控制面板–>管理工具–>服务–>mysql,找到mysql后,若发现其为禁用状态,则选中MySQL后,右击–>属 ...

  9. Arcgis Server 发布服务报错Failed to start the server machine ‘XXX‘. Error while starting AppServer. Requir

    Arcgis Server 发布服务报错 Failed to start the server machine 'XXX'. Error while starting AppServer. Requi ...

最新文章

  1. C语言的逗号!_只愿与一人十指紧扣_新浪博客
  2. TensorFlow教程:快速入门深度学习五步法(附Keras实例)
  3. hive load data inpath 空目录_走近大数据之Hive进阶(一、Hive数据的导入)
  4. abap range 或 Filter的说明
  5. 【NLP】新分类!全总结!最新Awesome-SLU-Survey资源库开源!
  6. C#面向对象设计模式纵横谈——6.Prototype 原型模式(创建型模式)
  7. 统计学 计算机论文,统计学课程论文范文
  8. python爬虫数据可视化_python 爬虫与数据可视化--python基础知识
  9. MiniDao1.8.3 版本发布,轻量级Java持久化框架
  10. python os读取文件
  11. 意见反馈接口php,用PHP制作的意见反馈表源码
  12. flask从表单中的提交中获取数据(不使用第三方库)
  13. python统计字符串个数_python实现字符串中字符分类及个数统计
  14. vim 退格键(backspace)不能用
  15. 汉字转拼音 关于佛字转成了fu
  16. RecyclerView状态异常Cannot call this method while RecyclerView is computing a layout or scrolling
  17. 解决99%的卡刷包无法通过ROM制作工具修改的问题
  18. java happen-before_java 内存模型中的happen-before 是什么?
  19. 如何向数组里添加元素
  20. 【微信小程序】个人信息页面/我的页面

热门文章

  1. 华为鸿蒙系统应用开发工具介绍 DevEco Studio
  2. 效法羲和驭天马,志在长空牧群星
  3. Java是剑客-飘逸;.NET是刀客-霸道 (一) 【转载】
  4. Graphics2D进行后台绘图
  5. java utf 8_java utf-8 乱码的解决方法
  6. java中protect是什么_Java中public、private、protecte、default、public void是什么意思 | 学步园...
  7. SAP的标准委外采购中都有哪些坑
  8. dpi和ppi换算_DPI、PPI、DP、PX 的详细计算方法及算法来源是什么?
  9. android代码修改mp3文件封面,从android中的mp3文件中提取专辑封面
  10. 百度音乐api+c语言,百度音乐接口api - osc_d87glhzv的个人空间 - OSCHINA - 中文开源技术交流社区...