version:3.3
fix:修复几个闪退问题,升级后清除桌面数据 update:时钟,摄像头允许打开,日历app允许显示
This commit is contained in:
@@ -941,9 +941,9 @@ public class MainSPresenter implements MainSContact.Presenter {
|
||||
public void onNext(@NonNull BaseResponse baseResponse) {
|
||||
requestSucceeded = true;
|
||||
Log.e(TAG + ":" + "getAppLimit", "onNext: " + baseResponse);
|
||||
Log.e(TAG + ":" + "getAppLimit", "onNext: " + baseResponse.data.toString());
|
||||
JsonObject jsonObject = parseString(new Gson().toJson(baseResponse.data)).getAsJsonObject();
|
||||
if (baseResponse.code == OK) {
|
||||
Log.e(TAG + ":" + "getAppLimit", "onNext: " + baseResponse.data.toString());
|
||||
JsonObject jsonObject = parseString(new Gson().toJson(baseResponse.data)).getAsJsonObject();
|
||||
String data = jsonObject.get("result").getAsString();
|
||||
//开机图标
|
||||
boolean write = Settings.System.putString(mContext.getContentResolver(), JGYActions.ACTION_JGY_SHORTCUTLIST, data);
|
||||
|
||||
@@ -45,6 +45,7 @@ import com.aoleyun.sn.manager.ConnectManager;
|
||||
import com.aoleyun.sn.network.NetInterfaceManager;
|
||||
import com.aoleyun.sn.rlog.LogDBManager;
|
||||
import com.aoleyun.sn.utils.ApkUtils;
|
||||
import com.aoleyun.sn.utils.CacheUtils;
|
||||
import com.aoleyun.sn.utils.ForegroundAppUtil;
|
||||
import com.aoleyun.sn.utils.JGYUtils;
|
||||
import com.aoleyun.sn.utils.SPUtils;
|
||||
@@ -105,7 +106,7 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
|
||||
start.onstar(WiFiAlias);
|
||||
}
|
||||
}
|
||||
if (!checkAoleyunApp()){
|
||||
if (!checkAoleyunApp()) {
|
||||
mPresenter.checkInfoUpdate();
|
||||
}
|
||||
TimeTask task = new TimeTask();
|
||||
@@ -268,7 +269,12 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
|
||||
task.execute("ntp.aliyun.com");
|
||||
ApkUtils.UninstallAPP(this, "com.joytv.live");
|
||||
ApkUtils.UninstallAPP(this, "com.tencent.android.qqdownloader");
|
||||
getPackageManager().setApplicationEnabledSetting("com.android.email", PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0);
|
||||
|
||||
try {
|
||||
getPackageManager().setApplicationEnabledSetting("com.android.email", PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0);
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "onCreate: " + e.getMessage());
|
||||
}
|
||||
|
||||
lifecycleSubject.onNext(ActivityEvent.CREATE);
|
||||
mPresenter = new MainSPresenter(this);
|
||||
@@ -290,6 +296,12 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
|
||||
int oldVersionCode = (int) SPUtils.get(this, CommonConfig.SN_VERSIONCODE, 0);
|
||||
if (oldVersionCode < BuildConfig.VERSION_CODE) {
|
||||
Log.e(TAG, "onCreate: " + "upgrade successful");
|
||||
try {
|
||||
new CacheUtils().cleanApplicationUserData(this, "com.aoleyun.os");
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "onReceive: " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
// if (ConnectManager.getInstance().isRebootFistConnect()) {
|
||||
start.onstar(ConnectManager.REBOOT_LAST_ONNECT_TIME);
|
||||
@@ -309,7 +321,7 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
|
||||
@Override
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
JGYUtils.getInstance().wakeUpAppstore();
|
||||
if (!checkAoleyunApp()){
|
||||
if (!checkAoleyunApp()) {
|
||||
mPresenter.checkInfoUpdate();
|
||||
}
|
||||
return START_STICKY;
|
||||
|
||||
Reference in New Issue
Block a user