diff --git a/app/src/main/java/io/github/muntashirakon/AppManager/compat/PackageManagerCompat.java b/app/src/main/java/io/github/muntashirakon/AppManager/compat/PackageManagerCompat.java index 6c2660d772f..d84d7a1bced 100644 --- a/app/src/main/java/io/github/muntashirakon/AppManager/compat/PackageManagerCompat.java +++ b/app/src/main/java/io/github/muntashirakon/AppManager/compat/PackageManagerCompat.java @@ -300,7 +300,7 @@ public static void setComponentEnabledSetting(ComponentName componentName, @UserIdInt int userId) throws RemoteException { IPackageManager pm = getPackageManager(); - if (BuildCompat.isAtLeastU()) { + if (Build.VERSION.SDK_INT >= 34 || BuildCompat.isAtLeastU()) { String callingPackage = ActivityManagerCompat.SHELL_PACKAGE_NAME; pm.setComponentEnabledSetting(componentName, newState, flags, userId, callingPackage); } else pm.setComponentEnabledSetting(componentName, newState, flags, userId);