(Android) Refactor g_android