miscellaneous Xposed code, not complete for copyright reasons