When I compile SDL2 with SDL_HIDAPI_DISABLED equals 1 and start the application it crash due this line:
mHIDDeviceManager = HIDDeviceManager.acquire(this); in SDLActivity.java. Setting mHIDDeviceManager = null; solves the crash.
Seems that when use HIDDeviceManager the call to native function is the problem, this functions are not defined due SDL_HIDAPI_DISABLED.
My suggest is set some stub function when SDL_HIDAPI_DISABLED is 1.