csanuragjain / apkrepatcher Goto Github PK
View Code? Open in Web Editor NEWAPKRepatcher - Modify your apk code with easy GUI
Home Page: https://cooltrickshome.blogspot.com/2017/03/apkrepatcher-now-decompile-recompile.html
License: MIT License
APKRepatcher - Modify your apk code with easy GUI
Home Page: https://cooltrickshome.blogspot.com/2017/03/apkrepatcher-now-decompile-recompile.html
License: MIT License
Getting following error while loading the apk in to tool
Dex2Jar: classes.dex to /Users/user/Downloads/APKRepatcher.V1.0.0/Projects/myapk.apk/dex2Jar/classes.jar
java -Xmx1500m -cp .;/Users/user/Downloads/APKRepatcher.V1.0.0/APKRepatcher_lib/dex/* com.cooltrickshome.helper.RunProgramDex dex2Jar /Users/user/Downloads/APKRepatcher.V1.0.0/Projects/myapk.apk/dexFile/classes.dex /Users/user/Downloads/APKRepatcher.V1.0.0/Projects/myapk.apk/dex2Jar/classes.jar
Error: Could not find or load main class com.cooltrickshome.helper.RunProgramDex
Encountered errors/warnings while running this program
java -Xmx3900m -jar C:\Users\Hassan-Uddin\Desktop\APKRepatcher\APKRepatcher_lib\apktool\apktool.jar d C:\Users\Hassan-Uddin\Desktop\wk\e.apk -f -o C:\Users\Hassan-Uddin\Desktop\APKRepatcher\Projects\e.apk\apkToolSource
Error occurred during initialization of VM
Could not reserve enough space for 3993600KB object heap
Encountered errors/warnings while running this program
Smali extracted using apktool.
Copying dex file for Analysis
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.
When i try to compile code, programm gives me that error. Don't you know, how to fix it?
error: reference to findViewById is ambiguous
this.webW = (WebView) findViewById(R.id.s_web);
^
both method findViewById(int) in Activity and method <T>findViewById(int) in AppCompatActivity match
where T is a type-variable:
T extends View declared in method <T>findViewById(int)
jadx seems to fail.
could you perhaps update to jadx 0.7.1 hope that helps ?
When i compile with your GUI , i've some errors( package android.XXX not found )
But if i copy the javac command , and exec it in terminal , i've this error:
bash: /home/tda/Documents/APKRepatcher/APKRepatcher_lib/userLibrary/android.jar: Permission non accordée
I cannot seem to figure out what this error means when I try to recompile/save the apk.
Could this please be looked into? Here is a picture https://i.imgur.com/2rf18ZX.png
When compiling , the javac command is :
javac -cp .:/home/XXX/Documents/APKRepatcher/Projects/XXX.apk/modifiedJar/;/home/XXX/Documents/APKRepatcher/APKRepatcher_lib/userLibrary/* XXX.java
BUT there is a ';' which must be replaced by a ":" otherwise the order is not good
Hello, I see program shows original name of the apk but could You add also apk's original package name? During decompiling I use to search direct path of the apk project, sometimes I don't want preview additional libraries.
I am getting Exception because of existing jadx version not support android N.
Latest jadx version 0.9.0 has added support for android N.
Please update jadx libs.
Hi, since most of the outputs are source code, it might be better to use fonts like "Courier New" or Courier when editing/viewing those source code, since it's easier to looked at because each character have the same width and it's easier to differentiate between uppercase I, lowercase L, and number 1.
So i was hoping to be able to change the font.
Thanks in advance.
Because the way the libraries are organize, it is difficult for use to even update those supporting programs and libraries. Jadx in particular, needs to have an easy way to be upgraded.
Hello, when i try to open a APK, the program throw this exception:
java.io.IOException: Cannot run program "java" (in directory "D:\apkrepatcher\test\Projects\test.apk"): CreateProcess error=267, The name of the directory is not valid
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.cooltrickshome.Utility.runProgram(Utility.java:237)
at com.cooltrickshome.Utility.extractAPK(Utility.java:107)
at com.cooltrickshome.PrepareProject.start(PrepareProject.java:28)
at com.cooltrickshome.APKRepatcher$23$1.doInBackground(APKRepatcher.java:1598)
at com.cooltrickshome.APKRepatcher$23$1.doInBackground(APKRepatcher.java:1570)
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)
Caused by: java.io.IOException: CreateProcess error=267, The name of the directory is not valid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 13 more
I find this tool very helpful. it's really sad to see no updates in 2 years. I'm not able to create a SystemUI project because of the outdated tools included. Would be great if anyone could update them. Many thanks.
Hi,
I just update APKRepatcher_lib/apktool/apktool.jar with the new Apktool v2.3.3
but the program failed to decompile and freezing if I try to open apk file...
Thanks.
Hello, I am under archlinux and when I try to compile the edited file, I have errors like:
error: package android.XXX does not exist
How to solve that ?
memory Allocate cant be changed... remains same after mofify
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.