This is a tool to repackage apk file, then the apk can load any xposed modules installed in the device. It is another way to hook an app without root device.
java.io.IOException: Cannot run program "/storage/emulated/0/Documents/Xpatch/2024-11-07-07-14-54-tmp/zipalign": error=13, Permission denied
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at java.base/java.lang.Runtime.exec(Runtime.java:594)
at java.base/java.lang.Runtime.exec(Runtime.java:418)
at com.storm.wind.xpatch.util.ShellCmdUtil.execCmd(ShellCmdUtil.java:28)
at com.storm.wind.xpatch.task.BuildAndSignApkTask.zipalignApk(BuildAndSignApkTask.java:194)
at com.storm.wind.xpatch.task.BuildAndSignApkTask.run(BuildAndSignApkTask.java:56)
at com.storm.wind.xpatch.MainCommand.doCommandLine(MainCommand.java:244)
at com.storm.wind.xpatch.base.BaseCommand.doMain(BaseCommand.java:125)
at com.storm.wind.xpatch.MainCommand.main(MainCommand.java:91)
Caused by: java.io.IOException: error=13, Permission denied
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 9 more
zipalign apk time is :90s
打包apk后依旧无法在android15运行,但在另一台android11上可以运行
打包时出现如下错误,但依旧可以生成打包后的apk,安卓15不能运行不知道是不是跟这个错误有关系
java.io.IOException: Cannot run program "/storage/emulated/0/Documents/Xpatch/2024-11-07-07-14-54-tmp/zipalign": error=13, Permission denied at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) at java.base/java.lang.Runtime.exec(Runtime.java:594) at java.base/java.lang.Runtime.exec(Runtime.java:418) at com.storm.wind.xpatch.util.ShellCmdUtil.execCmd(ShellCmdUtil.java:28) at com.storm.wind.xpatch.task.BuildAndSignApkTask.zipalignApk(BuildAndSignApkTask.java:194) at com.storm.wind.xpatch.task.BuildAndSignApkTask.run(BuildAndSignApkTask.java:56) at com.storm.wind.xpatch.MainCommand.doCommandLine(MainCommand.java:244) at com.storm.wind.xpatch.base.BaseCommand.doMain(BaseCommand.java:125) at com.storm.wind.xpatch.MainCommand.main(MainCommand.java:91) Caused by: java.io.IOException: error=13, Permission denied at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.(ProcessImpl.java:314) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) ... 9 more zipalign apk time is :90s