version:6.5 cube
fix: update:修复没有写入强制安装应用
This commit is contained in:
@@ -134,6 +134,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers;
|
||||
import io.reactivex.rxjava3.annotations.NonNull;
|
||||
@@ -879,6 +880,10 @@ public class NetInterfaceManager {
|
||||
List<ForceDownloadData> forceDownloadDataList = gson.fromJson(jsonString, listType);
|
||||
if (forceDownloadDataList != null) {
|
||||
JGYUtils.getInstance().forceDownload(forceDownloadDataList);
|
||||
List<String> forceApp = forceDownloadDataList.stream().map(ForceDownloadData::getApp_package).collect(Collectors.toList());
|
||||
boolean aole_force_app = Settings.System.putString(mContext.getContentResolver(), CommonConfig.AOLE_ACTION_FORCE_APP,
|
||||
String.join(",", forceApp));
|
||||
Log.e("getForceDownload", "aole_force_app:" + aole_force_app);
|
||||
}
|
||||
callback.onComplete();
|
||||
}
|
||||
@@ -917,6 +922,10 @@ public class NetInterfaceManager {
|
||||
cacheHelper.put(UrlAddress.GET_FORCE_INSTALL_LIST, GsonUtils.toJsonString(forceDownloadData));
|
||||
Aria.download(this).resumeAllTask();
|
||||
JGYUtils.getInstance().forceDownload(forceDownloadData);
|
||||
List<String> forceApp = forceDownloadData.stream().map(ForceDownloadData::getApp_package).collect(Collectors.toList());
|
||||
boolean aole_force_app = Settings.System.putString(mContext.getContentResolver(), CommonConfig.AOLE_ACTION_FORCE_APP,
|
||||
String.join(",", forceApp));
|
||||
Log.e("getForceDownload", "aole_force_app:" + aole_force_app);
|
||||
} else if (forceDownloadBean.code == -200) {
|
||||
cacheHelper.put(UrlAddress.GET_FORCE_INSTALL_LIST, "");
|
||||
boolean aole_force_app = Settings.System.putString(mContext.getContentResolver(), CommonConfig.AOLE_ACTION_FORCE_APP, "invalid");
|
||||
|
||||
@@ -445,7 +445,7 @@ public class GuardService extends Service {
|
||||
start.onstar(SystemClock.elapsedRealtime());
|
||||
}
|
||||
writeLog2File("batteryInfo.txt", recordBatteryInfo(intent));
|
||||
dumpBatterystats();
|
||||
// dumpBatterystats();
|
||||
} else {
|
||||
if (Intent.ACTION_POWER_CONNECTED.equals(action)) {
|
||||
LogDBManager.getInstance().creatOtherLog(LogDBManager.LOG_EVENT_BATTERY,
|
||||
|
||||
Reference in New Issue
Block a user