Fix for a bug in cocos2dx where it would crash when the app is launched while the hardware Android device is not awake. The launch still works if the phone screen is on, so this bug only happens when the screen is off. Apparently, it was working in the past, but doesn't anymore because of some changes in the new version of the NDK...

Refer to the link below for more details: http://www.cocos2d-x.org/forums/6/topics/33956