Restrict Android CORS bootstrap code to Android platform