version:2.1.2
update:debug模式下不管控开发人员选项 fix:修改和删除主页时浏览器黑白名单更新不及时 add:
This commit is contained in:
@@ -41,7 +41,7 @@ android {
|
|||||||
//新平台正式
|
//新平台正式
|
||||||
newly {
|
newly {
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
versionCode 512
|
versionCode 513
|
||||||
//versionCode 1037
|
//versionCode 1037
|
||||||
versionName "2.1.2"
|
versionName "2.1.2"
|
||||||
/*********************************极光推送************************************/
|
/*********************************极光推送************************************/
|
||||||
|
|||||||
@@ -1386,7 +1386,9 @@ public class MainPresenter implements MainContact.Presenter {
|
|||||||
SysSettingUtils.setDisableSetting(mContext);
|
SysSettingUtils.setDisableSetting(mContext);
|
||||||
SPUtils.put(mContext, "SystemSettingData", "");
|
SPUtils.put(mContext, "SystemSettingData", "");
|
||||||
//获取系统管控先不要关闭开发人员选项
|
//获取系统管控先不要关闭开发人员选项
|
||||||
Settings.System.putInt(mContext.getContentResolver(), "qch_Developeroptions", 1);
|
if (!BuildConfig.DEBUG) {
|
||||||
|
Settings.System.putInt(mContext.getContentResolver(), "qch_Developeroptions", 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@@ -1437,9 +1439,11 @@ public class MainPresenter implements MainContact.Presenter {
|
|||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e) {
|
public void onError(Throwable e) {
|
||||||
Log.e("getDeveloper", "onError: " + e.getMessage());
|
Log.e("getDeveloper", "onError: " + e.getMessage());
|
||||||
int oldStatus = Settings.System.getInt(mContext.getContentResolver(), "qch_Developeroptions", 1);
|
if (!BuildConfig.DEBUG) {
|
||||||
Log.e("getDeveloper", "oldStatus: " + oldStatus);
|
int oldStatus = Settings.System.getInt(mContext.getContentResolver(), "qch_Developeroptions", 1);
|
||||||
JGYUtils.getInstance().setDeveloperOptions(oldStatus);
|
Log.e("getDeveloper", "oldStatus: " + oldStatus);
|
||||||
|
JGYUtils.getInstance().setDeveloperOptions(oldStatus);
|
||||||
|
}
|
||||||
onComplete();
|
onComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -929,7 +929,7 @@ public class HTTPInterface {
|
|||||||
if (callback != null)
|
if (callback != null)
|
||||||
callback.onComplete();
|
callback.onComplete();
|
||||||
Log.e("getHomePageBookmarks", "onComplete: ");
|
Log.e("getHomePageBookmarks", "onComplete: ");
|
||||||
|
setBrowserBlackList(context);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -851,13 +851,16 @@ public class JGYUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setDeveloperOptions(int state) {
|
public void setDeveloperOptions(int state) {
|
||||||
Settings.System.putInt(mContext.getContentResolver(), "qch_Developeroptions", state);
|
if (!BuildConfig.DEBUG) {
|
||||||
if (state == 1) {
|
Settings.System.putInt(mContext.getContentResolver(), "qch_Developeroptions", state);
|
||||||
Intent intent = new Intent();
|
if (state == 1) {
|
||||||
intent.setAction("qch_developeroptions_close");
|
Intent intent = new Intent();
|
||||||
intent.setPackage("com.android.settings");
|
intent.setAction("qch_developeroptions_close");
|
||||||
mContext.sendBroadcast(intent);
|
intent.setPackage("com.android.settings");
|
||||||
|
mContext.sendBroadcast(intent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void hookWebView() {
|
public void hookWebView() {
|
||||||
|
|||||||
Reference in New Issue
Block a user