Android彻底解决Youtube和Google play store等套件报错崩溃的问题
}if (mShowDialogs && !mSleeping && !mShuttingDown) {
android.util.Log.d("song","applicationLabel="+mContext.getPackageManager().getApplicationLabel(proc.info));
//holatek patch add by szh for youtube error begin 20190507
if(mContext.getPackageManager().getApplicationLabel(proc.info).equals("YouTube")){
android.util.Log.d("song","block the youtube error dialog !!!");
forceStopPackage("",UserHandle.USER_ALL);
}else if(mContext.getPackageManager().getApplicationLabel(proc.info).equals("")){
forceStopPackage("",UserHandle.USER_ALL);
}else if(mContext.getPackageManager().getApplicationLabel(proc.info).equals("")){
forceStopPackage("",UserHandle.USER_ALL);
}else if(mContext.getPackageManager().getApplicationLabel(proc.info).equals("")){
forceStopPackage("",UserHandle.USER_ALL);
}else if(mContext.getPackageManager().getApplicationLabel(proc.info).equals("")){
forceStopPackage("",UserHandle.USER_ALL);
}else{
Dialog d = new AppErrorDialog(mContext,ActivityManagerService.this, res, proc);
d.show();
proc.crashDialog = d;
}
//holatek patch add by szh for youtube error end 20190507
}