version:1.6.0317
bugfixes:修复网络黑白名单报错 add:增加设置菜单管控,增加中性桌面包名
This commit is contained in:
@@ -1269,46 +1269,46 @@ public class SysSettingUtils {
|
||||
*/
|
||||
private static void setSettingsMenuShow(Context context, JsonObject jsonObject) {
|
||||
List<String> menus = new ArrayList<>();
|
||||
// OTA升级管控 (默认允许)
|
||||
int ota_upgrade_control = jsonObject.get("ota_upgrade_control").getAsInt();
|
||||
if (ota_upgrade_control == 0) {
|
||||
menus.add("system_updates");
|
||||
}
|
||||
// 生物识别和密码 (默认允许)
|
||||
int biometric_and_password = jsonObject.get("biometric_and_password").getAsInt();
|
||||
if (biometric_and_password == 0) {
|
||||
menus.add("biometrics_password");
|
||||
}
|
||||
// // OTA升级管控 (默认允许)
|
||||
// int ota_upgrade_control = jsonObject.get("ota_upgrade_control").getAsInt();
|
||||
// if (ota_upgrade_control == 0) {
|
||||
// menus.add("system_updates");
|
||||
// }
|
||||
// // 生物识别和密码 (默认允许)
|
||||
// int biometric_and_password = jsonObject.get("biometric_and_password").getAsInt();
|
||||
// if (biometric_and_password == 0) {
|
||||
// menus.add("biometrics_password");
|
||||
// }
|
||||
// 省电模式 (默认允许)
|
||||
int power_saving_mode = jsonObject.get("power_saving_mode").getAsInt();
|
||||
if (power_saving_mode == 0) {
|
||||
menus.add("battery");
|
||||
}
|
||||
// 安全 (默认允许)
|
||||
int security = jsonObject.get("security").getAsInt();
|
||||
if (security == 0) {
|
||||
menus.add("security");
|
||||
}
|
||||
// 大屏特色功能 (默认允许)
|
||||
int large_screen_features = jsonObject.get("large_screen_features").getAsInt();
|
||||
if (large_screen_features == 0) {
|
||||
// menus.add("");
|
||||
}
|
||||
// 辅助功能 (默认允许)
|
||||
int accessibility = jsonObject.get("accessibility").getAsInt();
|
||||
if (accessibility == 0) {
|
||||
menus.add("accessibility");
|
||||
}
|
||||
// 隐私 (默认允许)
|
||||
int privacy = jsonObject.get("privacy").getAsInt();
|
||||
if (privacy == 0) {
|
||||
menus.add("privacy");
|
||||
}
|
||||
// 更多链接 (默认允许)
|
||||
int more_links = jsonObject.get("more_links").getAsInt();
|
||||
if (more_links == 0) {
|
||||
menus.add("more_connections");
|
||||
}
|
||||
// // 安全 (默认允许)
|
||||
// int security = jsonObject.get("security").getAsInt();
|
||||
// if (security == 0) {
|
||||
// menus.add("security");
|
||||
// }
|
||||
// // 大屏特色功能 (默认允许)
|
||||
// int large_screen_features = jsonObject.get("large_screen_features").getAsInt();
|
||||
// if (large_screen_features == 0) {
|
||||
//// menus.add("");
|
||||
// }
|
||||
// // 辅助功能 (默认允许)
|
||||
// int accessibility = jsonObject.get("accessibility").getAsInt();
|
||||
// if (accessibility == 0) {
|
||||
// menus.add("accessibility");
|
||||
// }
|
||||
// // 隐私 (默认允许)
|
||||
// int privacy = jsonObject.get("privacy").getAsInt();
|
||||
// if (privacy == 0) {
|
||||
// menus.add("privacy");
|
||||
// }
|
||||
// // 更多链接 (默认允许)
|
||||
// int more_links = jsonObject.get("more_links").getAsInt();
|
||||
// if (more_links == 0) {
|
||||
// menus.add("more_connections");
|
||||
// }
|
||||
// 通知和状态栏 (默认允许)
|
||||
int notification_and_status_bar = jsonObject.get("notification_and_status_bar").getAsInt();
|
||||
if (notification_and_status_bar == 0) {
|
||||
@@ -1319,46 +1319,47 @@ public class SysSettingUtils {
|
||||
if (app_management_general == 0) {
|
||||
menus.add("apps");
|
||||
}
|
||||
// 荣耀账号登录 (默认禁止)
|
||||
int honor_account_login = jsonObject.get("honor_account_login").getAsInt();
|
||||
if (honor_account_login == 0) {
|
||||
menus.add("honor_id");
|
||||
}
|
||||
// 智慧互联 (默认禁止)
|
||||
int smart_interconnect = jsonObject.get("smart_interconnect").getAsInt();
|
||||
if (smart_interconnect == 0) {
|
||||
menus.add("super_device");
|
||||
}
|
||||
// VPN管控 (默认禁止)
|
||||
int vpn_control = jsonObject.get("vpn_control").getAsInt();
|
||||
if (vpn_control == 0) {
|
||||
menus.add("vpn_settings");
|
||||
}
|
||||
// 默认应用 (默认禁止)
|
||||
int default_applications = jsonObject.get("default_applications").getAsInt();
|
||||
if (default_applications == 0) {
|
||||
// menus.add("");
|
||||
}
|
||||
// 应用分身 (默认禁止)
|
||||
int app_cloning = jsonObject.get("app_cloning").getAsInt();
|
||||
if (app_cloning == 0) {
|
||||
menus.add("apps_clone");
|
||||
}
|
||||
// 应用启动管理 (默认禁止)
|
||||
int app_startup_management = jsonObject.get("app_startup_management").getAsInt();
|
||||
if (app_startup_management == 0) {
|
||||
menus.add("apps_startup_management");
|
||||
}
|
||||
// // 荣耀账号登录 (默认禁止)
|
||||
// int honor_account_login = jsonObject.get("honor_account_login").getAsInt();
|
||||
// if (honor_account_login == 0) {
|
||||
// menus.add("honor_id");
|
||||
// }
|
||||
// // 智慧互联 (默认禁止)
|
||||
// int smart_interconnect = jsonObject.get("smart_interconnect").getAsInt();
|
||||
// if (smart_interconnect == 0) {
|
||||
// menus.add("super_device");
|
||||
// }
|
||||
// // VPN管控 (默认禁止)
|
||||
// int vpn_control = jsonObject.get("vpn_control").getAsInt();
|
||||
// if (vpn_control == 0) {
|
||||
// menus.add("vpn_settings");
|
||||
// }
|
||||
// // 默认应用 (默认禁止)
|
||||
// int default_applications = jsonObject.get("default_applications").getAsInt();
|
||||
// if (default_applications == 0) {
|
||||
//// menus.add("");
|
||||
// }
|
||||
// // 应用分身 (默认禁止)
|
||||
// int app_cloning = jsonObject.get("app_cloning").getAsInt();
|
||||
// if (app_cloning == 0) {
|
||||
// menus.add("apps_clone");
|
||||
// }
|
||||
// // 应用启动管理 (默认禁止)
|
||||
// int app_startup_management = jsonObject.get("app_startup_management").getAsInt();
|
||||
// if (app_startup_management == 0) {
|
||||
// menus.add("apps_startup_management");
|
||||
// }
|
||||
// 应用管理 (默认禁止)
|
||||
int app_management_control = jsonObject.get("app_management_control").getAsInt();
|
||||
if (app_management_control == 0) {
|
||||
menus.add("apps_management");
|
||||
menus.add("apps_honor_tips");
|
||||
}
|
||||
// Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_SETTINGS_DISALLOW, String.join(",", menus));
|
||||
// int app_management_control = jsonObject.get("app_management_control").getAsInt();
|
||||
// if (app_management_control == 0) {
|
||||
// menus.add("apps_management");
|
||||
// menus.add("apps_honor_tips");
|
||||
// }
|
||||
Log.e(TAG, "setSettingsMenuShow: " + menus);
|
||||
Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_SETTINGS_DISALLOW, String.join(",", menus));
|
||||
}
|
||||
|
||||
private static void setSettingsMenuShow(Context context) {
|
||||
// Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_SETTINGS_DISALLOW, "");
|
||||
Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_SETTINGS_DISALLOW, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user