Skip to content

Unofficial libsu-ktx: Kotlin/coroutines command layer for libsu RootService #209

@Mygod

Description

@Mygod

Hi, I maintain librootkotlinx. I recently released 2.0.0-alpha01, which rewrites the library to use libsu RootService as the backend.

librootkotlinx 2.0 makes libsu RootService feel like idiomatic Kotlin: define typed @Parcelize root commands, call them with suspend functions, stream root-side work/callback via Flow, propagate cancellation/errors across the boundary, and pass ParcelFileDescriptors without writing a single line of AIDL.

Since this repo does not seem to have Discussions enabled, I wanted to share it here in case it is useful to Kotlin users of RootService. Please feel free to close this issue if this is not appropriate.

It is currently in alpha, so feedback on the public API would be especially welcome before the stable 2.0 release.

Demo: https://github.com/Mygod/librootkotlinx/blob/a4c3d55cd7bbbc95386996f32558962a80fa4d40/app/src/main/java/be/mygod/librootkotlinx/demo/MainActivity.kt

Release notes:
https://github.com/Mygod/librootkotlinx/releases/tag/v2.0.0-alpha01

Repo:
https://github.com/Mygod/librootkotlinx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions