增加远程获取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

@@ -793,11 +793,11 @@ public class ApkUtils {
Log.e("addShortcut", "packages: " + s);
}
String installedList = installedListBuilder.toString();
boolean qch_force_app = JGYUtils.putString(context.getContentResolver(), "qch_launcher_icon_app", installedList);
boolean aole_force_app = JGYUtils.putString(context.getContentResolver(), "qch_launcher_icon_app", installedList);
// String old = JGYUtils.getString(context.getContentResolver(), "qch_launcher_icon_app");
// Log.e("addShortcut", old);
Log.e("addShortcut", "installedList:" + installedList);
Log.e("addShortcut", "putstring:" + qch_force_app);
Log.e("addShortcut", "putstring:" + aole_force_app);
}
@SuppressLint("NewApi")
@@ -808,10 +808,10 @@ public class ApkUtils {
HashSet<String> writeAppSet = new HashSet<>(Arrays.asList(result.split(",")));
writeAppSet.addAll(factoryAppList);
String pkgString = String.join(",", writeAppSet);
Log.e("fht", "qch_app_forbid :" + pkgString);
boolean qch_app_forbid = JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, pkgString);
Log.e("fht", "aole_app_forbid: " + pkgString);
boolean aole_app_forbid = JGYUtils.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, pkgString);
} else {
JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, String.join(",", factoryAppList));
JGYUtils.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, String.join(",", factoryAppList));
Log.e("fht", "writeAppPackageList is null:");
}
Utils.writeDisableUpdateList(context);