From de3cff39ae53d5de0b65ded03ed0e2893dd93159 Mon Sep 17 00:00:00 2001 From: fanhuitong <981964879@qq.com> Date: Mon, 11 Jul 2022 18:13:11 +0800 Subject: [PATCH] =?UTF-8?q?version:4.6=20fix:=E4=BF=AE=E5=A4=8D=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E4=B8=8D=E8=83=BD=E7=AE=A1=E6=8E=A7=20update?= =?UTF-8?q?:=E5=A2=9E=E5=8A=A0=E7=9F=AD=E4=BF=A1=E7=AE=A1=E6=8E=A7?= =?UTF-8?q?=EF=BC=8C=E6=98=BE=E7=A4=BA=E7=94=B5=E8=AF=9D=EF=BC=8C=E9=80=9A?= =?UTF-8?q?=E8=AE=AF=E5=BD=95=EF=BC=8C=E5=92=8C=E7=9F=AD=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 12 ++++----- src/com/aoleyun/os/model/LoaderTask.java | 3 +++ .../aoleyun/os/touch/ItemClickHandler.java | 25 ++++++++++++++----- 3 files changed, 28 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index f8bc9b6..dbf9378 100644 --- a/build.gradle +++ b/build.gradle @@ -66,12 +66,12 @@ android { minSdkVersion 26 targetSdkVersion 28 - //MTK - versionCode 13 - versionName "2.2" -// //cube -// versionCode 36 -// versionName "4.5" +// //MTK +// versionCode 13 +// versionName "2.2" + //cube + versionCode 37 + versionName "4.6" ndk { //选择要添加的对应 cpu 类型的 .so 库。 diff --git a/src/com/aoleyun/os/model/LoaderTask.java b/src/com/aoleyun/os/model/LoaderTask.java index 7ea2cbc..a0995c7 100644 --- a/src/com/aoleyun/os/model/LoaderTask.java +++ b/src/com/aoleyun/os/model/LoaderTask.java @@ -281,6 +281,9 @@ public class LoaderTask implements Runnable { this.add("com.aoleyunos.dop1"); this.add("com.aoleyunos.dop2"); //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.messaging"); this.add("com.android.music"); diff --git a/src/com/aoleyun/os/touch/ItemClickHandler.java b/src/com/aoleyun/os/touch/ItemClickHandler.java index d8fe220..c5173dd 100644 --- a/src/com/aoleyun/os/touch/ItemClickHandler.java +++ b/src/com/aoleyun/os/touch/ItemClickHandler.java @@ -186,37 +186,50 @@ public class ItemClickHandler { case "com.mediatek.camera": case "com.android.camera2": if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 0) == 1) { - ToastUtil.show( "摄像头已禁止使用"); + ToastUtil.show("摄像头已禁止使用"); return true; } break; case "com.android.gallery3d": if (Settings.System.getInt(context.getContentResolver(), "qch_app_gallery", 1) == 1) { - ToastUtil.show( "图库已禁止使用"); + ToastUtil.show("图库已禁止使用"); return true; } break; case "com.android.documentsui": if (Settings.System.getInt(context.getContentResolver(), "qch_app_filemanager", 1) == 1) { - ToastUtil.show( "文件已禁止使用"); + ToastUtil.show("文件已禁止使用"); return true; } break; case "com.android.deskclock": if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 0) == 1) { - ToastUtil.show( "时钟已禁止使用"); + ToastUtil.show("时钟已禁止使用"); return true; } break; case "com.android.music": if (Settings.System.getInt(context.getContentResolver(), "qch_app_music", 1) == 1) { - ToastUtil.show( "音乐已禁止使用"); + ToastUtil.show("音乐已禁止使用"); return true; } break; case "com.android.soundrecorder": 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; } break;