update:2020.12.26

fix:增加强制应用禁止删除
add:
This commit is contained in:
2020-12-26 18:18:38 +08:00
parent 79ea8888c1
commit e17935ad76
11 changed files with 285 additions and 119 deletions

View File

@@ -1,10 +1,27 @@
package com.info.sn.service;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import com.info.sn.KeepAliveConnection;
import com.info.sn.activity.MainActivity;
import com.info.sn.bean.AppInfo;
import com.info.sn.bean.BaseResponse;
import com.info.sn.network.HTTPInterface;
import com.info.sn.network.NetWorkManager;
import com.info.sn.network.api.ForceInstall;
import com.info.sn.utils.Utils;
import java.util.List;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
public class InitJpushServer extends Service {
public InitJpushServer() {
@@ -28,6 +45,10 @@ public class InitJpushServer extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// HTTPInterface.checkDevicesInfo(InitJpushServer.this);
HTTPInterface.getAllappPackage(InitJpushServer.this);
HTTPInterface.getForceInstall(InitJpushServer.this);
return START_STICKY;
}
}