version:
fix:优化请求次数 add:
This commit is contained in:
@@ -27,6 +27,7 @@ import androidx.core.content.FileProvider;
|
||||
|
||||
import com.uiui.sn.BuildConfig;
|
||||
import com.uiui.sn.R;
|
||||
import com.uiui.sn.config.CommonConfig;
|
||||
import com.uiui.sn.receiver.InstallResultReceiver;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
@@ -698,7 +699,7 @@ public class ApkUtils {
|
||||
}
|
||||
|
||||
public static void addShortcut(Context context) {
|
||||
String packageList = Settings.System.getString(context.getContentResolver(), "only_jgy_shortcut_list");
|
||||
String packageList = Settings.System.getString(context.getContentResolver(), CommonConfig.ONLY_SHORTCUT_LIST);
|
||||
if (TextUtils.isEmpty(packageList)) {
|
||||
JGYUtils.putString(context.getContentResolver(), "qch_launcher_icon_app", "");
|
||||
return;
|
||||
@@ -756,9 +757,9 @@ public class ApkUtils {
|
||||
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);
|
||||
boolean qch_app_forbid = JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, pkgString);
|
||||
} else {
|
||||
JGYUtils.putString(context.getContentResolver(), "qch_app_forbid", String.join(",", factoryAppList));
|
||||
JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, String.join(",", factoryAppList));
|
||||
Log.e("fht", "writeAppPackageList is null:");
|
||||
}
|
||||
Utils.writeDisableUpdateList(context);
|
||||
|
||||
Reference in New Issue
Block a user