version:4.6
fix:修复浏览器不能管控 update:增加短信管控,显示电话,通讯录,和短信
This commit is contained in:
12
build.gradle
12
build.gradle
@@ -66,12 +66,12 @@ android {
|
|||||||
minSdkVersion 26
|
minSdkVersion 26
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
|
|
||||||
//MTK
|
// //MTK
|
||||||
versionCode 13
|
// versionCode 13
|
||||||
versionName "2.2"
|
// versionName "2.2"
|
||||||
// //cube
|
//cube
|
||||||
// versionCode 36
|
versionCode 37
|
||||||
// versionName "4.5"
|
versionName "4.6"
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
//选择要添加的对应 cpu 类型的 .so 库。
|
//选择要添加的对应 cpu 类型的 .so 库。
|
||||||
|
|||||||
@@ -281,6 +281,9 @@ public class LoaderTask implements Runnable {
|
|||||||
this.add("com.aoleyunos.dop1");
|
this.add("com.aoleyunos.dop1");
|
||||||
this.add("com.aoleyunos.dop2");
|
this.add("com.aoleyunos.dop2");
|
||||||
//system
|
//system
|
||||||
|
this.add("com.android.dialer");
|
||||||
|
this.add("com.android.messaging");
|
||||||
|
this.add("com.android.contacts");
|
||||||
this.add("com.android.documentsui");
|
this.add("com.android.documentsui");
|
||||||
// this.add("com.android.messaging");
|
// this.add("com.android.messaging");
|
||||||
this.add("com.android.music");
|
this.add("com.android.music");
|
||||||
|
|||||||
@@ -186,37 +186,50 @@ public class ItemClickHandler {
|
|||||||
case "com.mediatek.camera":
|
case "com.mediatek.camera":
|
||||||
case "com.android.camera2":
|
case "com.android.camera2":
|
||||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 0) == 1) {
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 0) == 1) {
|
||||||
ToastUtil.show( "摄像头已禁止使用");
|
ToastUtil.show("摄像头已禁止使用");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "com.android.gallery3d":
|
case "com.android.gallery3d":
|
||||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_gallery", 1) == 1) {
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_gallery", 1) == 1) {
|
||||||
ToastUtil.show( "图库已禁止使用");
|
ToastUtil.show("图库已禁止使用");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "com.android.documentsui":
|
case "com.android.documentsui":
|
||||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_filemanager", 1) == 1) {
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_filemanager", 1) == 1) {
|
||||||
ToastUtil.show( "文件已禁止使用");
|
ToastUtil.show("文件已禁止使用");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "com.android.deskclock":
|
case "com.android.deskclock":
|
||||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 0) == 1) {
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 0) == 1) {
|
||||||
ToastUtil.show( "时钟已禁止使用");
|
ToastUtil.show("时钟已禁止使用");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "com.android.music":
|
case "com.android.music":
|
||||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_music", 1) == 1) {
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_music", 1) == 1) {
|
||||||
ToastUtil.show( "音乐已禁止使用");
|
ToastUtil.show("音乐已禁止使用");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "com.android.soundrecorder":
|
case "com.android.soundrecorder":
|
||||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_soundrecorder", 1) == 1) {
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_soundrecorder", 1) == 1) {
|
||||||
ToastUtil.show( "录音机已禁止使用");
|
ToastUtil.show("录音机已禁止使用");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "com.aoleyun.browser":
|
||||||
|
case "com.android.browser":
|
||||||
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_browser", 1) == 1) {
|
||||||
|
ToastUtil.show("浏览器已禁止使用");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "com.android.messaging":
|
||||||
|
if (Settings.System.getInt(context.getContentResolver(), "qch_app_sms", 1) == 1) {
|
||||||
|
ToastUtil.show("短信已禁止使用");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user