Replies: 1 comment 1 reply
-
I'm Sorry , Devices is not root . Thank you so much |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi , I am a wifi developer.
I hope to build this feature (Vpn hotspot) in my Android 12/10 Devices.
So I hope to refer to the ip route/rule/iptables of this software.
When i install this app ,always prompt root missing.
I investigated the log .
01-06 16:46:59.780 22630 25286 W RoutingManager: Caused by: be.mygod.librootkotlinx.NoShellException: Root missing
01-06 16:46:59.780 22630 25286 W RoutingManager: Caused by: java.io.IOException: error=13, Permission denied
root cause : RootServer.kt ::
private fun doInit(context: Context, niceName: String) {
val (reader, writer) = try {
process = ProcessBuilder("su").start()
val token1 = UUID.randomUUID().toString()
val writer = DataOutputStream(process.outputStream.buffered())
writer.writeBytes("echo $token1\n")
writer.flush()
val reader = process.inputStream.bufferedReader()
reader.lookForToken(token1)
Logger.me.d("Root shell initialized")
reader to writer
} catch (e: Exception) {
throw NoShellException(e) << throw this exception
}
}
I tried it with an Android 12/10 device and the result was the same.
Devices is can adb root , version is userdebug.
In addition, I tried to install it as a system app , and use chmod 777 to give permission to apk.
Is this a bug? I installed it incorrectly.
Please confirm
Beta Was this translation helpful? Give feedback.
All reactions