What about implementing [AppUpdateManager ](https://developer.android.com/guide/playcore/in-app-updates/kotlin-java) in native code instead of just getting constants? Using native package instead of HTML parsing is a more secure way to do it.