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 <wangzongler@gmail.com>
This commit is contained in:
renovate[bot]
2024-06-20 02:09:13 +00:00
committed by GitHub
parent f6f00bfc95
commit aaa00c19f4
3 changed files with 3 additions and 5 deletions

View File

@@ -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")

View File

@@ -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()
}
}

View File

@@ -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();
}
}
}