version:m40se 2.9.3
fix:修复m40se 管控写反失效问题 update:
This commit is contained in:
@@ -266,6 +266,7 @@ public class ControlManager {
|
||||
// ToastTool.show("qch_call_forbid::"+setting_call+"----setting_phones::"+setting_phones+"----"+aole_white_list_Array+"---"+qch_call_forbid);
|
||||
Log.e(TAG, "aole_white_list_Array:" + aole_white_list_Array + "---" + aole_white_list_Array);
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform) {
|
||||
//在m40se上 开启管控会造成第三方app无法读取sd卡,暂时打开
|
||||
Settings.System.putInt(mResolver, CommonConfig.AOLE_ACTION_SDCARD_FORBID_ON, 0);
|
||||
} else {
|
||||
boolean aole_sdcard_forbid_on = Settings.System.putInt(mResolver, CommonConfig.AOLE_ACTION_SDCARD_FORBID_ON, state);
|
||||
@@ -287,9 +288,6 @@ public class ControlManager {
|
||||
//蓝牙音频开关
|
||||
int setting_bluetooth = changeNum(settings.getSetting_bluetooth());
|
||||
//蓝牙传输开关
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform) {
|
||||
setting_bht = changeNum(setting_bht);
|
||||
}
|
||||
boolean aole_bht_forbid_on = Settings.System.putInt(mResolver, CommonConfig.AOLE_ACTION_BHT_FORBID_ON, setting_bht);
|
||||
//写入系统数据库
|
||||
Log.e("SystemSetting", "aole_bht_forbid_on:" + aole_bht_forbid_on);
|
||||
@@ -327,9 +325,6 @@ public class ControlManager {
|
||||
|
||||
private void setBluetooth(int state) {
|
||||
try {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform) {
|
||||
state = changeNum(state);
|
||||
}
|
||||
boolean aole_bht_forbid_on = Settings.System.putInt(mResolver, CommonConfig.AOLE_ACTION_BHT_FORBID_ON, state);
|
||||
//写入系统数据库
|
||||
Log.e(TAG, "aole_bht_forbid_on:" + aole_bht_forbid_on);
|
||||
@@ -354,9 +349,6 @@ public class ControlManager {
|
||||
private void setHotspot(SystemSettings settings) {
|
||||
try {
|
||||
int setting_hotspot = changeNum(settings.getSetting_hotspot());//热点
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform) {
|
||||
setting_hotspot = changeNum(setting_hotspot);
|
||||
}
|
||||
if (setting_hotspot == 1) {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction("qch_hotspot_close");
|
||||
@@ -372,9 +364,6 @@ public class ControlManager {
|
||||
}
|
||||
|
||||
private void setHotspot(int state) {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform) {
|
||||
state = changeNum(state);
|
||||
}
|
||||
try {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction("qch_hotspot_close");
|
||||
@@ -827,9 +816,6 @@ public class ControlManager {
|
||||
}
|
||||
|
||||
public void setScreenShared(int state) {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.M40sePlatform) {
|
||||
state = changeNum(state);
|
||||
}
|
||||
Settings.System.putInt(mResolver, CommonConfig.AOLE_ACTION_SCREEN_SHARE, state);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user