chore: 更新网络接口管理与推送相关代码及构建配置

This commit is contained in:
2026-09-23 14:17:16 +08:00
parent 35ef418786
commit f60ab78568
6 changed files with 174 additions and 59 deletions

View File

@@ -109,7 +109,7 @@ public class SysSettingUtils {
}
setStatusBar(context, 1);
setAdminApp(context, 1);
setSystemAppDisable(context, 0);
setSystemAppDisable(context, 1);
setNotification(context, 0);
setSettingsMenuShow(context);
setEyeProtectionModeEntrance(context, 1);
@@ -646,7 +646,7 @@ public class SysSettingUtils {
public static void setCamera(Context context, int state) {
try {
//摄像头开关
boolean qch_app_camera = Settings.System.putInt(context.getContentResolver(), "qch_app_camera", 0);
boolean qch_app_camera = Settings.System.putInt(context.getContentResolver(), "qch_app_camera", state);
Log.e(TAG, "qch_app_camera1:" + state);
// ApkUtils.hideSystemSettingAPP(context, "com.mediatek.camera");
Log.e(TAG, "setting_camera---------" + qch_app_camera);
@@ -1082,6 +1082,14 @@ public class SysSettingUtils {
} else {
Settings.System.putInt(context.getContentResolver(), "qch_app_sms", 0);
}
JsonElement calcCategory = jsonObject.get("calculator_control");
if (calcCategory != null && !calcCategory.isJsonNull()) {
int calculator_control = calcCategory.getAsInt();
Settings.System.putInt(context.getContentResolver(), "aole_app_calculator", changeNum(calculator_control));
} else {
Settings.System.putInt(context.getContentResolver(), "aole_app_calculator", 0);
}
}
/**
@@ -1096,6 +1104,7 @@ public class SysSettingUtils {
Settings.System.putInt(context.getContentResolver(), "qch_app_soundrecorder", status);
Settings.System.putInt(context.getContentResolver(), "qch_app_browser", status);
Settings.System.putInt(context.getContentResolver(), "qch_app_sms", status);
Settings.System.putInt(context.getContentResolver(), "aole_app_calculator", status);
}
public static void setSnSetting(Context context, SnSetting snSetting) {