Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit a27c3ad

Browse files
committed
manager: unofficial build
- warn and inform that this is not an official build. - add emoji as promised - also update setup.sh for automated builds - add 'magic' on apk filename
1 parent 8c07502 commit a27c3ad

File tree

5 files changed

+36
-5
lines changed

5 files changed

+36
-5
lines changed

kernel/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ perform_cleanup() {
3939
# Sets up or update KernelSU environment
4040
setup_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

manager/app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
}

manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff 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
211239
fun UpdateCard() {
212240
val context = LocalContext.current

manager/app/src/main/java/me/weishu/kernelsu/ui/util/Downloader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fun download(
6363
}
6464

6565
fun 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 {

manager/app/src/main/res/values/strings.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
<string name="safe_mode">Safe mode</string>
5353
<string name="reboot_to_apply">Reboot to take effect</string>
5454
<string name="module_magisk_conflict">Modules are unavailable due to a conflict with Magisk!</string>
55+
<string name="home_unofficial_kernelsu">🍌 Unofficial Build</string>
56+
<string name="home_unofficial_kernelsu_announce">https://github.com/tiann/KernelSU/issues/1705</string>
57+
<string name="home_unofficial_kernelsu_body">Non-GKI support ended; see announcement.</string>
5558
<string name="home_learn_kernelsu">Learn KernelSU</string>
5659
<string name="home_learn_kernelsu_url">https://kernelsu.org/guide/what-is-kernelsu.html</string>
5760
<string name="home_click_to_learn_kernelsu">Learn how to install KernelSU and use modules</string>
@@ -144,4 +147,4 @@
144147
<string name="refresh_release">Release to refresh</string>
145148
<string name="refresh_refresh">Refreshing…</string>
146149
<string name="refresh_complete">Refreshed successfully</string>
147-
</resources>
150+
</resources>

0 commit comments

Comments
 (0)