update android_main thread hack