Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while building project 3 #11

Open
Janluke0 opened this issue Feb 19, 2019 · 0 comments
Open

Issue while building project 3 #11

Janluke0 opened this issue Feb 19, 2019 · 0 comments

Comments

@Janluke0
Copy link

Hi,
wheni build an apk (with out editing it) the resulted apk is identical to the orginal.
that's the output in the GUI console.

Started packaging jar at C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedJar\classes.jar
jar vfu C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedJar\classes.jar *
aggiunta in corso di: com/(in = 0) (out = 0)(memorizzato 0%)
aggiunta in corso di: com/sitael/(in = 0) (out = 0)(memorizzato 0%)
aggiunta in corso di: com/Y/(in = 0) (out = 0)(memorizzato 0%)
aggiunta in corso di: com/Y/SmartVendingApplication.java(in = 21138) (out = 2489)(compresso 88%)
Process completed successfully
Jar packaging complete
Converting the new jar into dex
java -Xmx1500m -cp .;C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\APKRepatcher_lib\dex* com.cooltrickshome.helper.RunProgramDex jar2Dex C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedJar\classes.jar C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedDex\classes.dex
jar2dex C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedJar\classes.jar -> C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedDex\classes.dex
call com.android.dx.command.Main.main[--dex, --no-strict, --output=C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedDex\classes.dex, C:\Users\Janluke\Documents\XXXXXX HACK\APKRepatcher\Projects\XXXXXX_com.Y.apk\modifiedJar\classes.jar]
Process completed successfully
Converted the new jar into dex
Rewriting the dex into apk

at that point a popup appear with the same message as this issue title.

that's the output running the jar from command line

java.lang.ArrayIndexOutOfBoundsException: 3
at net.lingala.zip4j.util.Raw.readShortLittleEndian(Raw.java:57)
at net.lingala.zip4j.core.HeaderReader.readExtraDataRecords(HeaderReader.java:471)
at net.lingala.zip4j.core.HeaderReader.readAndSaveExtraDataRecord(HeaderReader.java:420)
at net.lingala.zip4j.core.HeaderReader.readCentralDirectory(HeaderReader.java:338)
at net.lingala.zip4j.core.HeaderReader.readAllHeaders(HeaderReader.java:94)
at net.lingala.zip4j.core.ZipFile.readZipInfo(ZipFile.java:425)
at net.lingala.zip4j.core.ZipFile.removeFile(ZipFile.java:781)
at com.cooltrickshome.Utility.rewriteDexInAPK(Utility.java:159)
at com.cooltrickshome.APKRepatcher$24$1.doInBackground(APKRepatcher.java:1713)
at com.cooltrickshome.APKRepatcher$24$1.doInBackground(APKRepatcher.java:1)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I would have liked to debug this but i have not too much esperience in java and i can't build it properly. If you can show me how maybe i can help you to fix this issue.

I can share the apk in a private way.
If you need other information just ask.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant