Tool APK Toolkit v1.2 (Windows)

0xd00d

Platinian
Original poster
Apr 4, 2023
14
229
28
UK
APK Toolkit v1.2

APK Toolkit is a native Windows GUI app for Reverse Engineering Android apps. It provides multiple tools & options for decompiling, compiling, extracting and zipping various Android file formats as well as displaying app permissions, metadata and much more

It was written from scratch when APK Easy Tool was discontinued. It has similar features to APK Easy Tool as well as a lot more updated features

Light Skin

light.PNG


Dark Skin

dark.PNG


Features
  • Decompile / Compile / Extract / Zip xapk, apk, jar
  • ZipAlign / Check align xapk, apk
  • Check Align xapk, apk
  • Sign / Verify signature apk
  • Assemble / Disassemble dex, odex, oat (Baksmali / Smali)
  • Convert xapk / split xapk to single apk
  • Drag & drop support for single or multiple files
  • Pin window so it's always on top
  • JumpList and toolbar shortcuts
  • View / Remove app permissions
  • View app info including if app includes native 32bit / 64bit libs and/or global-metadata.dat and libil2cpp.so
  • il2cppdumper & dnspy built in, also supporting single / multiple file drag & drop (Dump directly without decompiling from xapk & apk and then view instantly in dnspy)
  • Install compiled Apk via Adb (Android Debug Bridge) or drag & drop Apk to install
  • Automate adding mod-menu to xapk or apk with single mouse click
  • Automate adding patched libs to xapk or apk
  • Automate adding toast message to app on startup
  • Decode / Rebuild to API level
  • Regex Search & Replace decompiled smali code
  • Remove Ads from Apps / Games via Regex Search & Replace
Requirements
  • Windows (APK Toolkit is a native windows app)
  • Java for additional tools
  • .net framework for additional tools


    Updated to v1.2
  • Added Regex Search & Replace decompiled smali code
  • Added Remove Ads from Apps / Games via Regex Search & Replace
  • Added Light or Dark Skin setting
  • Bug fixes

Download
Hidden content
** You must be signed up and reply to the thread or click 'Like' under this post before you can see the hidden links contained here. **
If you still facing issues revealing the hidden links, please read this.
 
Last edited:

0xd00d

Platinian
Original poster
Apr 4, 2023
14
229
28
UK
Updated to v1.1 with some small bug fixes and additions...
 

0xd00d

Platinian
Original poster
Apr 4, 2023
14
229
28
UK
APK Toolkit v1.2 now includes the ability to remove ads via regex search & replace
Included regex has been gathered from various sources and changed and optimised for speed and efficiency

Notes for creating new regex
  • Regex are checked on a complete smali text file NOT line by line
  • Decompiled smali code line endings are \r\n (CR = Carriage Return, LF = Line Feed) so you can use these if you want to match line endings
  • using $1 in the replace regex will replace the 1st match group, $2 will be the 2nd etc.
  • Apps / Games can have 10's of thousands of decompiled smali code files so avoid using .* without the 'lazy' quantifier (.*?) because regex are not checked line by line but as a whole file. Complex regex using 'any characters' 'greedy' quantifiers .* might be VERY slow due to the amount of files being checked and will probably replace multiple functions at once so avoid 'any character' 'greedy' matches
  • Regex are run only on your selected 'Enabled Checked' list. You can run Search & replace on any number of your 'List' at once but running them all at once might be slow depending on the number of smali files or possibly replace the wrong piece of smali code causing an accidental mobile app crash. For ad removal, you may have to experiment with the different included regex list for different types of ads / banners
  • You can build and test your regex via the online site Regex101 to make sure your regex is valid and only replacing the code you want removed / replaced

If anyone wants to share any regex you have created then please make sure that they are optimised using the notes I listed above and tested on an apk containing your new regex match and the apk re-compiles without errors

If anyone has any problems with any regex you have created and want help then please just ask
 
Last edited:

vicky0x07

Rookie
Aug 17, 2023
1
1
1
31
INTERNET
@0xd00d getting error like this

[15:26:08] Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size) at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:294) at brut. A


there is a fix for this if you update your code

"java_exe" -jar -Duser.language=en -Dfile.encoding=UTF8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true

i have updated the code in APK easyTool now its working fine
1692271644541.png
 
  • Like
Reactions: 0xd00d

0xd00d

Platinian
Original poster
Apr 4, 2023
14
229
28
UK
@0xd00d getting error like this
Thanks for the heads up :laugh:

It seems its caused due to the latest change in JDK 11.0.20

core-libs/java.util.jar
Improved ZIP64 Extra Field Validation(JDK-8302483)
java.util.zip.ZipFile has been updated to provide additional validation of ZIP64 extra fields when opening a ZIP file. This validation may be disabled by setting the system property jdk.util.zip.disableZip64ExtraFieldValidation to true
i'll add the workaround hopefully on the weekend :tumbsup:
 

0xd00d

Platinian
Original poster
Apr 4, 2023
14
229
28
UK
@0xd00d getting error like this

[15:26:08] Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size) at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:294) at brut. A
Can you please supply a download link or name for an affected apk that shows this error? So I can test the fix is now working?