kalman filter source code is actually widely accessible via well known open source project such as apache:common:math. However most of the challenges i have seen are tuning Kalman Filter parameters to your application usecase, as it requires extensive trial and error.
I opened source this repository, aims to provide interactive and extendable tools for calibrating systems modeling to help Android/Kotlin community to apply KF to custom use cases.