rewrite apk