update:2020.12.23
fix:更换主页图标
add:
This commit is contained in:
2020-12-23 16:16:58 +08:00
parent ad3d6745b1
commit 63cc954eb9
16 changed files with 198 additions and 51 deletions

View File

@@ -213,4 +213,7 @@ public class Configure {
//上传我的设备
public final static String GET_LOCK_SCREEN_STATE = HTTP_TAG_HEAD_NEW + "Sn/getSnScreen";
//获取霸屏状态
public final static String GET_DESKTOP = HTTP_TAG_HEAD_NEW + "Sn/getSnDesktop";
//获取默认桌面升级
}

View File

@@ -94,20 +94,20 @@ public class SysSettingUtils {
//设置电话功能,电话白名单
int setting_call = changeNum(jsonObject.getInteger("setting_call"));
boolean qch_call_forbid = Settings.System.putInt(mContext.getContentResolver(), "qch_call_forbid", setting_call);
Log.e("SystemSetting", "qch_call_forbid---------" + qch_call_forbid);
Log.e("SystemSetting", "qch_call_forbid:" + qch_call_forbid);
int setting_phone = changeNum(jsonObject.getInteger("setting_phone"));
boolean qch_white_list_on = Settings.System.putInt(mContext.getContentResolver(), "qch_white_list_on", setting_phone);
Log.e("SystemSetting", "qch_white_list_on---------" + qch_white_list_on);
Log.e("SystemSetting", "qch_white_list_on:" + qch_white_list_on);
String setting_phones = jsonObject.getString("setting_phones");
boolean qch_white_list_Array = Settings.System.putString(mContext.getContentResolver(), "qch_white_list_Array", setting_phones);
// ToastTool.show("qch_call_forbid::"+setting_call+"----setting_phones::"+setting_phones+"----"+qch_white_list_Array+"---"+qch_call_forbid);
Log.e("SystemSetting", "qch_white_list_Array---------" + qch_white_list_Array + "---" + setting_phones);
Log.e("SystemSetting", "qch_white_list_Array:" + qch_white_list_Array + "---" + setting_phones);
int setting_memory = changeNum(jsonObject.getInteger("setting_memory"));
boolean qch_sdcard_forbid_on = Settings.System.putInt(mContext.getContentResolver(), "qch_sdcard_forbid_on", setting_memory);
Log.e("SystemSetting", "qch_sdcard_forbid_on---------" + qch_sdcard_forbid_on);
Log.e("SystemSetting", "qch_sdcard_forbid_on:" + qch_sdcard_forbid_on);
} catch (Exception e) {
Log.e(TAG, "setPhoneList: " + e.getMessage());
}

View File

@@ -943,7 +943,6 @@ public class Utils {
MySQLData.SetBooleanData(context, CommonDatas.IS_RESET, true);
}
}
}
synchronized private static int getBatteryLevel(Context mContext) {
@@ -1018,9 +1017,7 @@ public class Utils {
private static String getMD5fromFileName(String fileName) {
int position = fileName.lastIndexOf("/");
return fileName.substring(position + 9, fileName.length() - 4);
}
public static void ariaDownload(Context context, String url, JSONObject jsonObject) {
@@ -1170,13 +1167,12 @@ public class Utils {
int screenWidth = (int) (width / density); // 屏幕宽度(dp)
int screenHeight = (int) (height / density);// 屏幕高度(dp)
Log.e("h_bl", "屏幕度(像素):" + width);
Log.e("h_bl", "屏幕度(像素):" + height);
Log.e("h_bl", "屏幕密度0.75 / 1.0 / 1.5" + density);
Log.e("h_bl", "屏幕密度dpi120 / 160 / 240" + densityDpi);
Log.e("h_bl", "屏幕dp" + screenWidth);
Log.e("h_bl", "屏幕高度dp" + screenHeight);
// Log.e("h_bl", "屏幕宽度(像素):" + width);
// Log.e("h_bl", "屏幕度(像素):" + height);
// Log.e("h_bl", "屏幕度(0.75 / 1.0 / 1.5" + density);
// Log.e("h_bl", "屏幕密度dpi120 / 160 / 240" + densityDpi);
// Log.e("h_bl", "屏幕宽度dp" + screenWidth);
// Log.e("h_bl", "屏幕dp" + screenHeight);
return width + "×" + height;
}