增加远程获取sn,台电设备适配

This commit is contained in:
2022-06-13 21:42:42 +08:00
parent 0d324c17a4
commit 7e95fd1181
14 changed files with 256 additions and 197 deletions

View File

@@ -862,12 +862,12 @@ public class Utils {
@SuppressLint("NewApi")
static synchronized public boolean writeDisableUpdateList(Context context) {
//允许安装的app
String now = JGYUtils.getString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID);
String now = JGYUtils.getString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID);
//禁止升级的app
String upgrade_disallow = Settings.System.getString(context.getContentResolver(), "upgrade_disallow");
//所有app
String only_jgy_shortcut_list = Settings.System.getString(context.getContentResolver(), CommonConfig.ONLY_SHORTCUT_LIST);
Log.e("writeDisableUpdateList", "qch_app_forbid: " + now);
Log.e("writeDisableUpdateList", "aole_app_forbid: " + now);
HashSet<String> nowList = new HashSet<>();
HashSet<String> disallowList = new HashSet<>();
HashSet<String> allList = new HashSet<>();
@@ -905,12 +905,12 @@ public class Utils {
}
boolean writeSucceed = false;
if (allList.size() > 0) {
Log.e("writeDisableUpdateList", "allList:" + allList);
Log.e("writeDisableUpdateList", "allList: " + allList);
String list = String.join(",", allList);
writeSucceed = JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, list);
Log.e("writeDisableUpdateList", "qch_app_forbid:" + list);
writeSucceed = JGYUtils.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, list);
Log.e("writeDisableUpdateList", "aole_app_forbid: " + list);
} else {
writeSucceed = JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, "Invalid");
writeSucceed = JGYUtils.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, "Invalid");
}
return writeSucceed;
/*功能和应用安装白名单一样首先会写入所有的app名单。