From 8acda9798b61e91cf757938217d51e13042c27e0 Mon Sep 17 00:00:00 2001 From: fanhuitong <981964879@qq.com> Date: Wed, 26 Oct 2022 10:22:59 +0800 Subject: [PATCH] =?UTF-8?q?version:2.2.10.25=20fix:=20update:=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=A6=81=E7=94=A8app=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 8 ++++---- src/com/aoleyun/os/touch/ItemClickHandler.java | 4 ++++ src/com/aoleyun/os/uiuiutils/JGYUtils.java | 12 +++++++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index c3d73b0..f93df65 100644 --- a/build.gradle +++ b/build.gradle @@ -67,11 +67,11 @@ android { targetSdkVersion 28 // //MTK -// versionCode 31 -// versionName "2.2.8.19" + versionCode 31 + versionName "2.2.10.25" // //cube - versionCode 59 - versionName "6.2.8.19" +// versionCode 59 +// versionName "6.2.8.19" ndk { //选择要添加的对应 cpu 类型的 .so 库。 diff --git a/src/com/aoleyun/os/touch/ItemClickHandler.java b/src/com/aoleyun/os/touch/ItemClickHandler.java index 329cc09..eefc770 100644 --- a/src/com/aoleyun/os/touch/ItemClickHandler.java +++ b/src/com/aoleyun/os/touch/ItemClickHandler.java @@ -186,6 +186,10 @@ public class ItemClickHandler { if (JGYUtils.isUnlocked(context)) { return false; } + if (JGYUtils.isDisable(context, pkg)) { + ToastUtil.show("应用已被禁用"); + return true; + } switch (pkg) { case "com.mediatek.camera": case "com.android.camera2": diff --git a/src/com/aoleyun/os/uiuiutils/JGYUtils.java b/src/com/aoleyun/os/uiuiutils/JGYUtils.java index 3a09444..b5ad746 100644 --- a/src/com/aoleyun/os/uiuiutils/JGYUtils.java +++ b/src/com/aoleyun/os/uiuiutils/JGYUtils.java @@ -11,7 +11,6 @@ import android.provider.Settings; import android.text.TextUtils; import android.util.Log; -import com.android.server.BootReceiver; import com.aoleyun.os.BuildConfig; import com.aoleyun.os.comm.JGYActions; import com.aoleyun.os.model.LoaderTask; @@ -263,5 +262,16 @@ public class JGYUtils { int aihuaUnlock = Settings.System.getInt(context.getContentResolver(), "Aihua_unlock_state", 0); return locked == 1 || aihuaUnlock == 1; } + + public static boolean isDisable(Context context, String pkg) { + String aole_disable_app_list = Settings.Global.getString(context.getContentResolver(), "aole_disable_app_list"); + if (TextUtils.isEmpty(aole_disable_app_list)) { + return false; + } else { + HashSet appSet = new HashSet<>(Arrays.asList(aole_disable_app_list.split(","))); + return appSet.contains(pkg); + } + } + }