[PATCH] wrap functions in base for android