Open wazzaa25 opened 1 year ago
Hello. It looks like there is missing the permission for execute the file /Users/Jason/Downloads/ApkRenamer/bin/zipalign Try gain the permission by command chmod 755 /Users/Jason/Downloads/ApkRenamer/bin/zipalign
Same error occurs
Same error, helped this:
chown +x bin/zipalign
I am getting couple of errors towards the end. Any help would be appreciated.
MacBook-Pro:apkrenamer Jason$ java -jar renamer.jar
Enter a new name for the app: Screen2Auto_Working Enter a new package name: Screen2Auto_Working Java version = 20.0.2 Run: java -jar /Users/Jason/Downloads/ApkRenamer/bin/apktool.jar d /Users/Jason/Downloads/ApkRenamer/in/Screen2Auto_3.6.4_apkcombo.com.apk -f -o /Users/Jason/Downloads/ApkRenamer/temp I: Using Apktool 2.7.0 on Screen2Auto_3.6.4_apkcombo.com.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: /Users/Jason/Library/apktool/framework/1.apk I: Regular manifest package... I: Decoding file-resources... W: Cant find 9patch chunk in file: "drawable/_xpopup_shadow.9.png". Renaming it to .png. I: Decoding values /* XMLs... I: Baksmaling classes.dex... I: Copying assets and libs... I: Copying unknown files... I: Copying original files... android:authorities Repair absent name tag in provider node Run: java -jar /Users/Jason/Downloads/ApkRenamer/bin/apktool.jar b /Users/Jason/Downloads/ApkRenamer/temp -o /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.unsigned.apk I: Using Apktool 2.7.0 I: Checking whether sources has changed... I: Smaling smali folder into classes.dex... I: Checking whether resources has changed... I: Building resources... I: Copying libs... (/lib) I: Copying libs... (/kotlin) I: Building apk file... I: Copying unknown files/dir... I: Built apk into: /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.unsigned.apk RunExe: /Users/Jason/Downloads/ApkRenamer/bin/zipalign -p -f -v 4 /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.unsigned.apk /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.zipalign.apk Error due execution /Users/Jason/Downloads/ApkRenamer/bin/zipalign java.io.IOException: Cannot run program "/Users/Jason/Downloads/ApkRenamer/bin/zipalign": error=13, Permission denied at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1140) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1074) at java.base/java.lang.Runtime.exec(Runtime.java:647) at java.base/java.lang.Runtime.exec(Runtime.java:504) at ru.gavrikov.Renamer.runExec(Main.java:270) at ru.gavrikov.Renamer.zipalignApk(Main.java:588) at ru.gavrikov.Renamer.run(Main.java:198) at ru.gavrikov.Main.main(Main.java:62) 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:319)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:249)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1111)
... 7 more
Signed apk /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.apk
Run: java -jar /Users/Jason/Downloads/ApkRenamer/bin/apksigner.jar sign --key /Users/Jason/Downloads/ApkRenamer/keys/testkey.pk8 --cert /Users/Jason/Downloads/ApkRenamer/keys/testkey.x509.pem --out /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.apk /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.zipalign.apk
Exception in thread "main" java.io.FileNotFoundException: /Users/Jason/Downloads/ApkRenamer/out/Screen2Auto_Working.zipalign.apk (No such file or directory)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:346)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:260)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:214)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:190)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:381)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:88)
Exception in thread "main" ru.gavrikov.Renamer$JarExecutionException: The apksigner.jar file exited with an error: 1
at ru.gavrikov.Renamer.runJar(Main.java:320)
at ru.gavrikov.Renamer.signApk(Main.java:596)
at ru.gavrikov.Renamer.run(Main.java:199)
at ru.gavrikov.Main.main(Main.java:62)
MacBook-Pro:apkrenamer Jason$