update:2020.06.12
fix:更换图标 add:增加连接上wifi之后启动管控功能
This commit is contained in:
@@ -204,4 +204,6 @@ public class Configure {
|
||||
//获取隐藏桌面图标
|
||||
public final static String NET_AND_LAUNCH_API = HTTP_TAG_HEAD_NEW + "automatic/get";
|
||||
//获取应用升级自启
|
||||
public static final String GET_STUDENTS_INFO = HTTP_TAG_HEAD_NEW + "Sn/getStudent";
|
||||
|
||||
}
|
||||
|
||||
@@ -919,8 +919,14 @@ public class Utils {
|
||||
|
||||
static synchronized public boolean writeDisableUpdateList(Context context, String[] banList, String[] notList) {
|
||||
String now = Settings.System.getString(context.getContentResolver(), "qch_app_forbid");
|
||||
String[] nowList = now.split(",");
|
||||
List<String> allList = new ArrayList<>(Arrays.asList(nowList));//已经写入的列表
|
||||
String[] nowList;
|
||||
List<String> allList;
|
||||
if (now == null || now.equalsIgnoreCase("")) {
|
||||
allList = new ArrayList<>();
|
||||
} else {
|
||||
nowList = now.split(",");
|
||||
allList = new ArrayList<>(Arrays.asList(nowList));//已经写入的列表
|
||||
}
|
||||
boolean writeSucceed = false;
|
||||
if (banList != null && banList.length > 0) {
|
||||
for (String s : banList) {
|
||||
@@ -944,7 +950,7 @@ public class Utils {
|
||||
list = list.substring(0, list.length() - 1);
|
||||
Log.e("fht", list);
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), "qch_app_forbid", list);
|
||||
Log.e("fht","qch_app_forbid:"+list);
|
||||
Log.e("fht", "qch_app_forbid:" + list);
|
||||
} else {
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), "qch_app_forbid", "Invalid");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user