From 0b7b251d8df4b1419958b51d5c8668a41c66ead5 Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Fri, 14 Jun 2024 15:09:18 +0800 Subject: [PATCH 1/4] Optimize google maven --- settings.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/settings.gradle b/settings.gradle index 05eb51ad583..c2692429fd7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,8 +2,9 @@ pluginManagement { repositories { google { content { - includeGroupByRegex(".*google.*") - includeGroupByRegex(".*android.*") + includeGroupByRegex("com\\.android.*") + includeGroupByRegex("com\\.google.*") + includeGroupByRegex("androidx.*") } } gradlePluginPortal() @@ -32,8 +33,9 @@ dependencyResolutionManagement { repositories { google { content { - includeGroupByRegex(".*google.*") - includeGroupByRegex(".*android.*") + includeGroupByRegex("com\\.android.*") + includeGroupByRegex("com\\.google.*") + includeGroupByRegex("androidx.*") } } mavenCentral() From 382171893cff0ef29e30409479245cfc101edfc1 Mon Sep 17 00:00:00 2001 From: Lawnchair Bot <115872683+lawnchair-bot@users.noreply.github.com> Date: Sun, 16 Jun 2024 03:49:29 +0330 Subject: [PATCH 2/4] New Crowdin translations by GitHub Action (#4486) Co-authored-by: Crowdin Bot --- lawnchair/res/values-cs-rCZ/strings.xml | 20 ++++++++++---------- lawnchair/res/values-in-rID/strings.xml | 18 +++++++++--------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/lawnchair/res/values-cs-rCZ/strings.xml b/lawnchair/res/values-cs-rCZ/strings.xml index 84b9d7757f4..ebc114855b4 100644 --- a/lawnchair/res/values-cs-rCZ/strings.xml +++ b/lawnchair/res/values-cs-rCZ/strings.xml @@ -433,15 +433,15 @@ Systémová nastavení Odemknout Uzamknout - Use Multiple Lines - Always - If Full Name is Typed - Never - Show Hidden Apps in Search Results + Použít několik řádků + Vždy + Pokud je celý název zadán + Nikdy + Zobrazit skryté aplikace ve vyhledávání Hledání aplikací - Global Search (on-device) - Global Search (via ASI) - Search Algorithm - Calculator - To lock your phone when performing a gesture, Lawnchair requires accessibility access.\n\nLawnchair doesn\'t watch any user action, though the privilege to do so is required for all accessibility services. Lawnchair discards any event sent by the system.\n\nIn order to lock your phone, Lawnchair uses the performGlobalAction Accessibility service. + Globální vyhledávání (v zařízení) + Globální vyhledávání (prostřednictvím ASI) + Algoritmus Hledání + Kalkulačka + K uzamčení telefonu při provádění gesta vyžaduje Lawnchair přístup k usnadnění.\n\nLawnchair nesleduje žádnou akci uživatele, ačkoli oprávnění k tomu je vyžadováno pro všechny služby usnadnění. Lawnchair zahodí jakoukoli událost odeslanou systémem.\n\nAby byl váš telefon uzamčen, používá Lawnchair službu usnadnění performGlobalAction. diff --git a/lawnchair/res/values-in-rID/strings.xml b/lawnchair/res/values-in-rID/strings.xml index 070b3ea17b8..40e61ec6424 100644 --- a/lawnchair/res/values-in-rID/strings.xml +++ b/lawnchair/res/values-in-rID/strings.xml @@ -430,15 +430,15 @@ Pengaturan Sistem Buka kunci Kunci - Use Multiple Lines - Always + + If Full Name is Typed - Never - Show Hidden Apps in Search Results + + Tampilkan aplikasi tersembunyi di hasil penelusuran Pencarian Aplikasi - Global Search (on-device) - Global Search (via ASI) - Search Algorithm - Calculator - To lock your phone when performing a gesture, Lawnchair requires accessibility access.\n\nLawnchair doesn\'t watch any user action, though the privilege to do so is required for all accessibility services. Lawnchair discards any event sent by the system.\n\nIn order to lock your phone, Lawnchair uses the performGlobalAction Accessibility service. + Pencarian Global + Pencarian Global (Via ASI) + Algoritma Pencarian + Kalkulator + Untuk mengunci ponsel Anda saat melakukan gerakan, Lawnchair memerlukan akses aksesibilitas.\n\nLawnchair tidak menonton tindakan pengguna apa pun, meskipun hak istimewa untuk melakukannya diperlukan untuk semua layanan aksesibilitas. Lawnchair membuang acara apa pun yang dikirim oleh sistem.\n\nUntuk mengunci ponsel Anda, Lawnchair menggunakan layanan performGlobalAction Accessibility. From f6f00bfc951c7b8f509b58e5889ace0acf3da69e Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Thu, 20 Jun 2024 10:07:31 +0800 Subject: [PATCH 3/4] Bump compileSdk to 35 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d51bae9a512..eaaf0be250b 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,7 @@ allprojects { apply plugin: 'org.gradle.android.cache-fix' android { - compileSdk 34 + compileSdk 35 defaultConfig { minSdk 26 targetSdk 34 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 4/4] 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 eaaf0be250b..d7b413769e2 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 44d1162fabb..ceef8fe8ff4 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 44920422cf0..730cdb79586 100644 --- a/quickstep/src/com/android/quickstep/util/ImageActionUtils.java +++ b/quickstep/src/com/android/quickstep/util/ImageActionUtils.java @@ -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(); } } }