1.4.0103 更换图标,G10P 标签MTK11改为G104,G10P标签为G10P
This commit is contained in:
@@ -76,9 +76,9 @@ public class SysSettingUtils {
|
||||
setBar(context, 1);
|
||||
setCamera(context, 1);
|
||||
setTF(context, 1);
|
||||
setIcon(context, 1);
|
||||
setIcon(context, 0);
|
||||
setWallpaper(context, 0);
|
||||
setCanReset(context, 1);
|
||||
setCanReset(context, 0);
|
||||
setAutoTime(context, 1);
|
||||
setBrowserInput(context, 1);
|
||||
if (!BuildConfig.DEBUG) {
|
||||
@@ -94,7 +94,10 @@ public class SysSettingUtils {
|
||||
public static void setEnableSetting(Context context) {
|
||||
ToastUtil.betaShow("打开所有功能");
|
||||
setPhoneList(context, 0);
|
||||
// setUSBstate(context,0);
|
||||
if (JGYUtils.C2Tag.equalsIgnoreCase(JGYUtils.getInstance().getAppPlatform())) {
|
||||
openMtp(context);
|
||||
}
|
||||
// setUSBstate(context, 0);
|
||||
setBluetooth(context, 0);
|
||||
setHotspot(context, 0);
|
||||
setBar(context, 0);
|
||||
@@ -110,6 +113,12 @@ public class SysSettingUtils {
|
||||
setAdminApp(context, 0);
|
||||
}
|
||||
|
||||
private static void openMtp(Context context) {
|
||||
String usbStatus = CommonConfig.AOLE_ACTION_USB_USB_MTP;
|
||||
Intent usbIntent = new Intent(usbStatus);
|
||||
context.sendBroadcast(usbIntent);
|
||||
}
|
||||
|
||||
private static void setPhoneList(Context context, int state) {
|
||||
try {
|
||||
//设置电话功能,电话白名单
|
||||
@@ -169,8 +178,6 @@ public class SysSettingUtils {
|
||||
//Midi模式:usb_midi
|
||||
if (!BuildConfig.DEBUG) {
|
||||
try {
|
||||
SuperPower mService = (SuperPower) context.getSystemService("mdm");
|
||||
mService.setUsbDataDisabled(true);
|
||||
boolean aole_usb_choose = Settings.System.putString(context.getContentResolver(), "aole_usb_choose", "usb_charge");
|
||||
Log.e(TAG, "aole_usb_choose:" + aole_usb_choose);
|
||||
String usbStatus = CommonConfig.AOLE_ACTION_USB_USB_CHARGE;
|
||||
@@ -184,6 +191,9 @@ public class SysSettingUtils {
|
||||
usbIntent.setPackage("com.android.settings");
|
||||
}
|
||||
context.sendBroadcast(usbIntent);
|
||||
|
||||
SuperPower mService = (SuperPower) context.getSystemService("mdm");
|
||||
mService.setUsbDataDisabled(true);
|
||||
} catch (NoClassDefFoundError | Exception e) {
|
||||
Log.e(TAG, "setUSBstate: " + e.getMessage());
|
||||
}
|
||||
@@ -552,7 +562,7 @@ public class SysSettingUtils {
|
||||
//设置5个app的开关
|
||||
//时钟
|
||||
// int deskclock = 1;
|
||||
Settings.System.putInt(context.getContentResolver(), "qch_app_deskclock", 0);
|
||||
Settings.System.putInt(context.getContentResolver(), "qch_app_deskclock", state);
|
||||
ApkUtils.hideSystemSettingAPP(context, "com.android.deskclock");
|
||||
Log.e(TAG, "qch_app_deskclock" + state);
|
||||
//录音机
|
||||
|
||||
Reference in New Issue
Block a user