This repository was archived by the owner on Oct 30, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
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 5252    <string  name =" safe_mode" string >
5353    <string  name =" reboot_to_apply" string >
5454    <string  name =" module_magisk_conflict" string >
55+     <string  name =" home_unofficial_kernelsu" string >
56+     <string  name =" home_unofficial_kernelsu_announce" string >
57+     <string  name =" home_unofficial_kernelsu_body" string >
5558    <string  name =" home_learn_kernelsu" string >
5659    <string  name =" home_learn_kernelsu_url" string >
5760    <string  name =" home_click_to_learn_kernelsu" string >
144147    <string  name =" refresh_release" string >
145148    <string  name =" refresh_refresh" string >
146149    <string  name =" refresh_complete" string >
147- </resources >
150+ </resources >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments