Re:Undefined behavior in C is a reading error
by throwaway2048 on Friday May 21, 2021 @04:24AM
(#27231670)
Android threw away a unix based platform? News to me.
It did, ask termux guys.
The Linux kernel is an implementation detail.
There is nothing UNIX related exposed to userspace.
Java and Kotlin applications, while NDK APIs are clearly defined,
https://developer.android.com/ndk/guides/stable_apis
Or Treble Project for that matter,
https://source.android.com/devices/architecture/hidl
Try to use private APIs (which is what the Linux underpinnings are) and the application might be blessed with being killed by the OS.
The only solution is to throw them away, e.g. Android style.