1.多app安装超过安装数量限制时或非法app安装失败进入无限安装的死循环,导致launcher偶尔性死机或设备热保护重启
This commit is contained in:
@@ -757,14 +757,24 @@ public class AppManager {
|
||||
tmpFile.renameTo(file);
|
||||
//tmpFile.delete();
|
||||
if(list!=null&&list.size()>0){
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
boolean flag = PakageInstallUtil.silentInstall(mContext, file.getAbsolutePath());
|
||||
LogUtils.loge("no task and restart sys apk back to tmp install result="+flag);
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
}else if(file.exists()&&file.length()==adsInfoBean.getAppSize()){
|
||||
if(list!=null&&list.size()>0){
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
boolean flag = PakageInstallUtil.silentInstall(mContext, file.getAbsolutePath());
|
||||
LogUtils.loge("no task and restart sys apk not install result="+flag);
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user