zl程序教程

您现在的位置是:首页 >  其他

当前栏目

mac使用apktool打包回apk

打包Mac APK 使用
2023-09-14 09:06:36 时间

升级最新版的apktool

下载目录:https://ibotpeaches.github.io/Apktool/install/.

权限修改

将上述的文件放在usr/local/bin目录下并执行

chmod +x apktool.jar

删除1.apk

进入apktool.jar的所在目录,也就是usr/local/bin 执行下面语句


java -jar apktool.jar empty-framework-dir

看到


I: Removing 1.apk framework file...

开始打包

然后重新打包。到需要打包的apk的目录

执行


apktool.sh b login

输出


I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...

即可。