feat: 修复壁纸,应用锁密码,浏览器书签失效,增加护眼入口管控,对接专注模式开关
This commit is contained in:
@@ -203,6 +203,8 @@ public class PushManager {
|
||||
private static final String UPDATE_BATCH = "37";
|
||||
/*添加wifi*/
|
||||
private static final String UPDATE_WIFI_PW = "38";
|
||||
/*应用密码锁*/
|
||||
private static final String APP_LOCK_PASSWD = "39";
|
||||
/*远程关机*/
|
||||
private static final String DEVICES_SHUTDOWN_NOW = "40";
|
||||
/*远程定时关机*/
|
||||
@@ -325,15 +327,22 @@ public class PushManager {
|
||||
Toaster.debugShow("收到管控:应用安装");
|
||||
NetInterfaceManager.removeCache(UrlAddress.GET_FORCE_INSTALL_LIST);
|
||||
NetInterfaceManager.removeCache(UrlAddress.GROUP_APP_INSTALL_LIST);
|
||||
doDownloadAndInstall(extras);
|
||||
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
NetInterfaceManager.getInstance().getAppLimit();
|
||||
NetInterfaceManager.getInstance().getDesktopIcon();
|
||||
NetInterfaceManager.getInstance().getDefaultDesktop();
|
||||
NetInterfaceManager.getInstance().getAppAutoStartUpdateAndNet();
|
||||
}
|
||||
}, 5234);
|
||||
}, 2345);
|
||||
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
doDownloadAndInstall(extras);
|
||||
}
|
||||
}, 4321);
|
||||
|
||||
mContext.sendBroadcast(new Intent(AOLEYUN_REFRESH_DESKTOP));
|
||||
break;
|
||||
case MSG_LOCK:
|
||||
@@ -358,7 +367,25 @@ public class PushManager {
|
||||
case GET_FORCEDOWNLOADURL:
|
||||
case GROUP_APP_INSTALL:
|
||||
Toaster.debugShow("收到管控:应用强制安装");
|
||||
downloadForceInstallApk(extras);
|
||||
NetInterfaceManager.removeCache(UrlAddress.GET_FORCE_INSTALL_LIST);
|
||||
NetInterfaceManager.removeCache(UrlAddress.GROUP_APP_INSTALL_LIST);
|
||||
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
NetInterfaceManager.getInstance().getAppLimit();
|
||||
NetInterfaceManager.getInstance().getDesktopIcon();
|
||||
NetInterfaceManager.getInstance().getDefaultDesktop();
|
||||
NetInterfaceManager.getInstance().getAppAutoStartUpdateAndNet();
|
||||
}
|
||||
}, 2345);
|
||||
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
downloadForceInstallApk(extras);
|
||||
}
|
||||
}, 4321);
|
||||
|
||||
mContext.sendBroadcast(new Intent(AOLEYUN_REFRESH_DESKTOP));
|
||||
break;
|
||||
case SET_HOMEPAG_TAG:
|
||||
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
|
||||
@@ -575,6 +602,9 @@ public class PushManager {
|
||||
case UPDATE_WIFI_PW:
|
||||
NetInterfaceManager.getInstance().getWiFiPasswd();
|
||||
break;
|
||||
case APP_LOCK_PASSWD:
|
||||
mContext.sendBroadcast(new Intent(AOLEYUN_REFRESH_DESKTOP));
|
||||
break;
|
||||
case DEVICES_SHUTDOWN_NOW:
|
||||
JgyUtils.getInstance().shutdown();
|
||||
break;
|
||||
@@ -1124,7 +1154,7 @@ public class PushManager {
|
||||
}
|
||||
|
||||
private void getTimeControl(String extras) {
|
||||
NetInterfaceManager.getInstance().getSnTimeControl();
|
||||
// NetInterfaceManager.getInstance().getSnTimeControl();
|
||||
NetInterfaceManager.getInstance().getTimeControl();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user