mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
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:
@@ -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")
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user