update:2019.01.16
fix:修复安装 add:
This commit is contained in:
@@ -654,14 +654,22 @@ public class MyJPushReceiver extends BroadcastReceiver {
|
||||
}
|
||||
}
|
||||
|
||||
private void writeAppPackageList(String s) {
|
||||
if (!TextUtils.isEmpty(s)) {
|
||||
LogUtils.e(s);
|
||||
Settings.System.putString(this.mContext.getContentResolver(), "qch_app_forbid", s);
|
||||
Log.e("SystemSetting", "qch_app_forbid__________" + Settings.System.getString(this.mContext.getContentResolver(), "qch_app_forbid"));
|
||||
return;
|
||||
private void writeAppPackageList(String result) {
|
||||
String appstore = "com.jiaoguanyi.appstore";
|
||||
String store = "com.jiaoguanyi.store";
|
||||
if (!TextUtils.isEmpty(result)) {
|
||||
LogUtils.e(result);
|
||||
if (!result.contains(appstore)) {
|
||||
result = result + "," + appstore;
|
||||
}
|
||||
if (!result.contains(store)) {
|
||||
result = result + "," + store;
|
||||
}
|
||||
Settings.System.putString(mContext.getContentResolver(), "qch_app_forbid", result);
|
||||
} else {
|
||||
Log.e("mjsheng", "writeAppPackageList is null:");
|
||||
|
||||
}
|
||||
Log.e("mjsheng", "writeAppPackageList is null:");
|
||||
}
|
||||
|
||||
private void writeDeselectBrowserIDtoSystem(String s) {
|
||||
@@ -675,11 +683,20 @@ public class MyJPushReceiver extends BroadcastReceiver {
|
||||
}
|
||||
|
||||
//应用id管控
|
||||
private void writeDeselectIDtoSystem(String s1, String s2) {
|
||||
if (!TextUtils.isEmpty(s1) && !TextUtils.isEmpty(s2)) {
|
||||
Settings.System.putString(this.mContext.getContentResolver(), "qch_app_forbid", s2);
|
||||
private void writeDeselectIDtoSystem(String s1, String result) {
|
||||
if (!TextUtils.isEmpty(s1) && !TextUtils.isEmpty(result)) {
|
||||
String appstore = "com.jiaoguanyi.appstore";
|
||||
String store = "com.jiaoguanyi.store";
|
||||
LogUtils.e(result);
|
||||
if (!result.contains(appstore)) {
|
||||
result = result + "," + appstore;
|
||||
}
|
||||
if (!result.contains(store)) {
|
||||
result = result + "," + store;
|
||||
}
|
||||
Settings.System.putString(this.mContext.getContentResolver(), "qch_app_forbid", result);
|
||||
Settings.System.putString(this.mContext.getContentResolver(), "DeselectViewArray", s1);
|
||||
Log.e("SystemSetting", "qch_app_forbid---------" + s2);
|
||||
Log.e("SystemSetting", "qch_app_forbid---------" + result);
|
||||
Log.e("SystemSetting", "deselectViewArray---------" + s1);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user