File tree Expand file tree Collapse file tree 5 files changed +36
-5
lines changed
java/me/weishu/kernelsu/ui Expand file tree Collapse file tree 5 files changed +36
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ perform_cleanup() {
3939# Sets up or update KernelSU environment
4040setup_kernelsu () {
4141 echo " [+] Setting up KernelSU..."
42- test -d " $GKI_ROOT /KernelSU" || git clone https://github.com/tiann /KernelSU && echo " [+] Repository cloned."
42+ test -d " $GKI_ROOT /KernelSU" || git clone https://github.com/backslashxx /KernelSU && echo " [+] Repository cloned."
4343 cd " $GKI_ROOT /KernelSU"
4444 git stash && echo " [-] Stashed current changes."
4545 if [ " $( git status | grep -Po ' v\d+(\.\d+)*' | head -n1) " ]; then
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ android {
6969 applicationVariants.all {
7070 outputs.forEach {
7171 val output = it as BaseVariantOutputImpl
72- output.outputFileName = " KernelSU_${managerVersionName} _${managerVersionCode} -$name .apk"
72+ output.outputFileName = " KernelSU_${managerVersionName} _${managerVersionCode} -magic- $name .apk"
7373 }
7474 kotlin.sourceSets {
7575 getByName(name) {
@@ -133,4 +133,4 @@ dependencies {
133133
134134 implementation(libs.miuix)
135135 implementation(libs.haze)
136- }
136+ }
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ fun HomePager(
197197 if (checkUpdate) {
198198 UpdateCard ()
199199 }
200+ Unofficial ()
200201 InfoCard ()
201202 DonateCard ()
202203 LearnMoreCard ()
@@ -207,6 +208,33 @@ fun HomePager(
207208 }
208209}
209210
211+ @Composable
212+ fun Unofficial () {
213+ val uriHandler = LocalUriHandler .current
214+ val url = stringResource(R .string.home_unofficial_kernelsu_announce)
215+
216+ Card (
217+ modifier = Modifier
218+ .fillMaxWidth(),
219+ ) {
220+ BasicComponent (
221+ title = stringResource(R .string.home_unofficial_kernelsu),
222+ summary = stringResource(R .string.home_unofficial_kernelsu_body),
223+ rightActions = {
224+ Icon (
225+ modifier = Modifier .size(28 .dp),
226+ imageVector = Icons .Rounded .Link ,
227+ tint = colorScheme.onSurface,
228+ contentDescription = null
229+ )
230+ },
231+ onClick = {
232+ uriHandler.openUri(url)
233+ }
234+ )
235+ }
236+ }
237+
210238@Composable
211239fun UpdateCard () {
212240 val context = LocalContext .current
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ fun download(
6363}
6464
6565fun checkNewVersion (): LatestVersionInfo {
66- val url = " https://api.github.com/repos/tiann /KernelSU/releases/latest"
66+ val url = " https://api.github.com/repos/backslashxx /KernelSU/releases/latest"
6767 // default null value if failed
6868 val defaultValue = LatestVersionInfo ()
6969 runCatching {
Original file line number Diff line number Diff line change 5353 <string name =" safe_mode" >Safe mode</string >
5454 <string name =" reboot_to_apply" >Reboot to take effect</string >
5555 <string name =" module_magisk_conflict" >Modules are unavailable due to a conflict with Magisk!</string >
56+ <string name =" home_unofficial_kernelsu" >🍌 Unofficial Build</string >
57+ <string name =" home_unofficial_kernelsu_announce" >https://github.com/tiann/KernelSU/issues/1705</string >
58+ <string name =" home_unofficial_kernelsu_body" >Non-GKI support ended; see announcement.</string >
5659 <string name =" home_learn_kernelsu" >Learn KernelSU</string >
5760 <string name =" home_learn_kernelsu_url" >https://kernelsu.org/guide/what-is-kernelsu.html</string >
5861 <string name =" home_click_to_learn_kernelsu" >Learn how to install KernelSU and use modules</string >
145148 <string name =" refresh_release" >Release to refresh</string >
146149 <string name =" refresh_refresh" >Refreshing…</string >
147150 <string name =" refresh_complete" >Refreshed successfully</string >
148- </resources >
151+ </resources >
You can’t perform that action at this time.
0 commit comments