Android apps can also contain native code. Indeed, WhatsApp includes such libraries, to help with Curve25519 encryption, video encoding, voice over IP, and other functionality.
But it should be straightforward enough to see if text messages or UI elements (suppress key change notification) are being change depending on the output of those libraries.