version:1.2
fix: add:
This commit is contained in:
@@ -56,6 +56,7 @@ public class ApkUtils {
|
||||
|
||||
/**
|
||||
* 获取第三方应用
|
||||
*
|
||||
* @param context
|
||||
* @return
|
||||
*/
|
||||
@@ -749,32 +750,15 @@ public class ApkUtils {
|
||||
@SuppressLint("NewApi")
|
||||
public static void writeAppPackageList(Context context, String result) {
|
||||
addShortcut(context);//开机之后添加图标到桌面
|
||||
|
||||
HashSet<String> factoryAppList = new HashSet<String>() {{
|
||||
this.add("com.jiaoguanyi.appstore");
|
||||
this.add("com.jiaoguanyi.store");
|
||||
this.add("com.uiui.sn");
|
||||
this.add("com.appstore.uiui");
|
||||
this.add("com.uiui.appstore");
|
||||
this.add("com.android.uiuios");
|
||||
this.add("com.uiuios.jgy1");
|
||||
this.add("com.uiuios.jgy2");
|
||||
this.add("com.tt.ttutils");
|
||||
this.add("com.info.chat");
|
||||
this.add("com.info.learning");
|
||||
this.add("com.uiui.browser");
|
||||
this.add("com.uiui.os");
|
||||
this.add("com.alarmclock.uiui");
|
||||
}};
|
||||
HashSet<String> factoryAppSet = new HashSet<>(factoryAppList);
|
||||
HashSet<String> factoryAppList = JGYUtils.getInstance().getOwnApp();
|
||||
if (!TextUtils.isEmpty(result)) {
|
||||
HashSet<String> writeAppSet = new HashSet<>(Arrays.asList(result.split(",")));
|
||||
writeAppSet.addAll(factoryAppSet);
|
||||
writeAppSet.addAll(factoryAppList);
|
||||
String pkgString = String.join(",", writeAppSet);
|
||||
Log.e("fht", "qch_app_forbid :" + pkgString);
|
||||
boolean qch_app_forbid = JGYUtils.putString(context.getContentResolver(), "qch_app_forbid", pkgString);
|
||||
} else {
|
||||
JGYUtils.putString(context.getContentResolver(), "qch_app_forbid", String.join(",", factoryAppSet));
|
||||
JGYUtils.putString(context.getContentResolver(), "qch_app_forbid", String.join(",", factoryAppList));
|
||||
Log.e("fht", "writeAppPackageList is null:");
|
||||
}
|
||||
Utils.writeDisableUpdateList(context);
|
||||
|
||||
Reference in New Issue
Block a user