Can I directly run kotlin code with Root? #5
-
It seems, libsu requires implementing a Root service to run Kotlin code, can I run kotlin code without implementing any service using this lib? If yes, please provide an example. |
Beta Was this translation helpful? Give feedback.
Answered by
Mygod
Apr 26, 2023
Replies: 1 comment 3 replies
-
Yes. That's the whole point of this library. See README for demos.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These are the simplest example: https://github.com/Mygod/librootkotlinx/blob/master/app/src/main/java/be/mygod/librootkotlinx/demo/MainActivity.kt
https://github.com/Mygod/pogoplusle/blob/700bf6109f9e93fda0ead62392e8f0c489af5a18/app/src/main/java/be/mygod/pogoplusplus/BluetoothPairingReceiver.kt#L20-L38