Don't use SDK 31 APIs on APEX

For now, the check is don statically using __ANDROID_APEX__ macro. Soon,
it will be changed to a runtime check using __builtin_available.

Bug: 177365934
Test: m
Change-Id: Id0c23d90b69de3cd5ddfd73de6ebcf7154cb2b1d
2 files changed