Skip to content

Commit

Permalink
Update dependency com.github.topjohnwu.libsu:core to v5.3.0 (Lawnchai…
Browse files Browse the repository at this point in the history
…rLauncher#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 <[email protected]>
  • Loading branch information
renovate[bot] and Goooler authored Jun 20, 2024
1 parent f6f00bf commit aaa00c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static void saveScreenshot(SystemUiProxy systemUiProxy, Bitmap screenshot
systemUiProxy.handleImageBundleAsScreenshot(BitmapUtil.hardwareBitmapToBundle(screenshot),
screenshotBounds, visibleInsets, task);
} catch (Throwable ee) {
Shell.su("input keyevent 120").exec();
Shell.cmd("input keyevent 120").exec();
}
}
}
Expand Down

0 comments on commit aaa00c1

Please sign in to comment.