version:1.7

fix:优化接口请求
update:增加锁屏密码
This commit is contained in:
2022-11-04 18:03:47 +08:00
parent b1645f0fae
commit fdedb3eb19
18 changed files with 876 additions and 416 deletions

View File

@@ -10,6 +10,7 @@ import android.util.Log;
import com.fuying.sn.config.CommonConfig;
import com.fuying.sn.manager.ControlManager;
import com.fuying.sn.network.NetInterfaceManager;
import com.fuying.sn.service.main.MainService;
import com.fuying.sn.utils.ApkUtils;
import com.fuying.sn.utils.CacheUtils;
import com.fuying.sn.utils.JGYUtils;
@@ -88,7 +89,7 @@ public class APKinstallReceiver extends BroadcastReceiver {
private static void sendAppInfo() {
Observable.create((ObservableEmitter<String> emitter) -> newAppListener = emitter::onNext)
.throttleLast(3, TimeUnit.MINUTES)
.throttleLast(5, TimeUnit.MINUTES)
.subscribe(new Observer<String>() {
@Override
public void onSubscribe(Disposable d) {
@@ -99,12 +100,12 @@ public class APKinstallReceiver extends BroadcastReceiver {
public void onNext(String s) {
Log.e("sendAppInfo", "onNext: " + s);
int isLogined = (int) SPUtils.get(mContext, CommonConfig.isLogined, 2);
if (isLogined == 2) return;
if (isLogined != 2) {
NetInterfaceManager.getInstance().getForceInstall();
NetInterfaceManager.getInstance().getAppInside();
}
NetInterfaceManager.getInstance().SendAppInstallInfo();
NetInterfaceManager.getInstance().getForceInstall();
NetInterfaceManager.getInstance().getAllappPackage();
NetInterfaceManager.getInstance().getAppInside();
NetInterfaceManager.getInstance().getOverallApp();
MainService.getPresenter().getAllApp();
}
@Override