From aaa00c19f4679e6ab5d12b1ed7bc1adf8fb18178 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 02:09:13 +0000 Subject: [PATCH] Update dependency com.github.topjohnwu.libsu:core to v5.3.0 (#4489) * Update dependency com.github.topjohnwu.libsu:core to v5.3.0 * Update dependency com.github.topjohnwu.libsu:service to v5.3.0 * Migrate --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Goooler --- build.gradle | 4 +--- .../app/lawnchair/gestures/handlers/SleepGestureHandler.kt | 2 +- .../src/com/android/quickstep/util/ImageActionUtils.java | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index eaaf0be250..d7b413769e 100644 --- a/build.gradle +++ b/build.gradle @@ -406,7 +406,7 @@ dependencies { implementation "androidx.room:room-ktx:$roomVersion" ksp "androidx.room:room-compiler:$roomVersion" - implementation "com.github.topjohnwu.libsu:service:5.2.2" + implementation "com.github.topjohnwu.libsu:service:5.3.0" // Persian Date implementation 'com.github.samanzamani:PersianDate:1.7.1' @@ -445,8 +445,6 @@ licensee { allow("Apache-2.0") allow("BSD-3-Clause") allow("GPL-2.0-or-later") - allowDependency("com.github.topjohnwu.libsu", "core", "5.2.2") - allowDependency("com.github.topjohnwu.libsu", "service", "5.2.2") allowUrl("https://github.com/patrykmichalik/opto/blob/master/LICENSE") allowUrl("https://github.com/RikkaApps/HiddenApiRefinePlugin/blob/main/LICENSE") allowUrl("https://opensource.org/licenses/mit-license.php") diff --git a/lawnchair/src/app/lawnchair/gestures/handlers/SleepGestureHandler.kt b/lawnchair/src/app/lawnchair/gestures/handlers/SleepGestureHandler.kt index 44d1162fab..ceef8fe8ff 100644 --- a/lawnchair/src/app/lawnchair/gestures/handlers/SleepGestureHandler.kt +++ b/lawnchair/src/app/lawnchair/gestures/handlers/SleepGestureHandler.kt @@ -68,7 +68,7 @@ class SleepMethodRoot(context: Context) : SleepGestureHandler.SleepMethod(contex override suspend fun isSupported() = Shell.getShell().isRoot override suspend fun sleep(launcher: LawnchairLauncher) { - Shell.su("input keyevent 26").exec() + Shell.cmd("input keyevent 26").exec() } } diff --git a/quickstep/src/com/android/quickstep/util/ImageActionUtils.java b/quickstep/src/com/android/quickstep/util/ImageActionUtils.java index 44920422cf..730cdb7958 100644 --- a/quickstep/src/com/android/quickstep/util/ImageActionUtils.java +++ b/quickstep/src/com/android/quickstep/util/ImageActionUtils.java @@ -97,7 +97,7 @@ public class ImageActionUtils { systemUiProxy.handleImageBundleAsScreenshot(BitmapUtil.hardwareBitmapToBundle(screenshot), screenshotBounds, visibleInsets, task); } catch (Throwable ee) { - Shell.su("input keyevent 120").exec(); + Shell.cmd("input keyevent 120").exec(); } } }