fix(network): 调整强制下载缓存时间为5分钟
- 缩短强制下载列表缓存时间,从10分钟改为5分钟 - 缩短网络订阅节流时间,从1小时改为5分钟 - 设备恢复出厂时清理其他应用并重置系统设置 - 增加G11NW型号特定应用包 - 更新版本号至1.6.0908
This commit is contained in:
@@ -540,7 +540,7 @@ public class NetInterfaceManager {
|
||||
public Observable<BaseResponse<List<ForceDownloadData>>> getForceDownloadObservable() {
|
||||
return withCache(schedule(getAppDownloadApi().getForceDownloadApi(HTTP_KEY, Utils.getSerial(mContext))),
|
||||
UrlAddress.GET_FORCE_INSTALL_LIST,
|
||||
10 * CACHE_EXPIRE_ONE_MINUTE);
|
||||
5 * CACHE_EXPIRE_ONE_MINUTE);
|
||||
}
|
||||
|
||||
public Observable<BaseResponse<List<ForceDownloadData>>> getGroupForceDownloadObservable() {
|
||||
|
||||
@@ -317,10 +317,13 @@ public class PushManager {
|
||||
Utils.doMasterClear(mContext);
|
||||
Aria.download(this).removeAllTask(true);
|
||||
mMMKV.clearAll();
|
||||
JgyUtils.getInstance().deleteOtherApp();
|
||||
JgyUtils.getInstance().cleanAoleAppCache();
|
||||
JgyUtils.getInstance().wakeUpAoleyunAPP();
|
||||
NetInterfaceManager.getInstance().getPushAndPubAppTag();
|
||||
NetInterfaceManager.clearAllCache();
|
||||
Settings.System.putString(mContext.getContentResolver(), CommonConfig.AOLE_ACTION_FORCE_APP, "");
|
||||
Settings.System.putString(mContext.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, "");
|
||||
sendRefreshBroadcast(mContext);
|
||||
break;
|
||||
case MSG_INSTALL:
|
||||
|
||||
@@ -471,7 +471,7 @@ public class MainService extends BaseService implements NetworkUtils.OnNetworkSt
|
||||
.subscribe(killObserver);
|
||||
|
||||
Observable.create(networkSubscribe)
|
||||
.throttleFirst(1, TimeUnit.HOURS)
|
||||
.throttleFirst(5, TimeUnit.MINUTES)
|
||||
.subscribe(networkObserver);
|
||||
|
||||
JgyUtils.getInstance().checkAoleyunApp();
|
||||
|
||||
@@ -1494,6 +1494,10 @@ public class JgyUtils {
|
||||
if ("G23".equals(Build.MODEL)) {
|
||||
pkgSet.addAll(ApkUtils.zhengwu);
|
||||
}
|
||||
if ("G11NW".equals(Build.MODEL)) {
|
||||
pkgSet.add("com.copilot");
|
||||
pkgSet.add("com.xty22");
|
||||
}
|
||||
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G11Platform) {
|
||||
pkgSet.addAll(ApkUtils.G11Pkgs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user