mod: adopt the callback rework to android