LIBNATIVEHELPER_S { # introduced=S
  global:
    # NDK API for libnativehelper.
    AFileDescriptor_create;
    AFileDescriptor_getFd;
    AFileDescriptor_setFd;

    # JNI Invocation methods available to platform and apps.
    JNI_CreateJavaVM;
    JNI_GetDefaultJavaVMInitArgs;
    JNI_GetCreatedJavaVMs;

  local:
    *;
};

LIBNATIVEHELPER_PLATFORM { # platform-only
  global:
    JniInvocationCreate;
    JniInvocationDestroy;
    JniInvocationInit;
    JniInvocationGetLibrary;

    jniGetNioBufferBaseArray;
    jniGetNioBufferBaseArrayOffset;
    jniGetNioBufferPointer;
    jniGetNioBufferFields;

    jniUninitializeConstants;
};
