Coder Social home page Coder Social logo

csanuragjain / apkrepatcher Goto Github PK

View Code? Open in Web Editor NEW
178.0 178.0 44.0 109 KB

APKRepatcher - Modify your apk code with easy GUI

Home Page: https://cooltrickshome.blogspot.com/2017/03/apkrepatcher-now-decompile-recompile.html

License: MIT License

Java 100.00%

apkrepatcher's People

Contributors

csanuragjain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apkrepatcher's Issues

something went wrong in mac high siera

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

Could not reserve enough space for 3993600KB object heap

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

Issue while building project 3

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.

Reference to findViewById is ambiguous

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)

Compilation failed

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

Javac problem

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

Missing information about apk

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.

Support for android Nougat apks

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.

[Request] Allows to change font

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.

IOE exception

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

Any plans on updates?

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.

Failed on apktool 2.3.3

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.

Critical...Bug

memory Allocate cant be changed... remains same after mofify

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.