reformat code

This commit is contained in:
BinTianqi
2024-05-26 19:29:56 +08:00
parent e21d91c1e4
commit 88484a932d
22 changed files with 1759 additions and 1717 deletions

View File

@@ -10,16 +10,16 @@ var service:IUserService? = null
@Keep
class ShizukuService: IUserService.Stub() {
override fun destroy(){ }
override fun destroy() { }
override fun execute(command: String?): String {
var result = ""
val process:Process
val process: Process
try {
process = Runtime.getRuntime().exec(command)
val exitCode = process.waitFor()
if(exitCode!=0){ result+="Error: $exitCode" }
}catch(e:Exception){
} catch(e:Exception) {
e.printStackTrace()
return e.toString()
}
@@ -33,7 +33,7 @@ class ShizukuService: IUserService.Stub() {
} catch(e: NullPointerException) {
e.printStackTrace()
}
if(result==""){ return "No result" }
if(result=="") { return "No result" }
return result
}