Tool APK Toolkit v1.3 (Windows)

0xd00d

Platinian
Original poster
Apr 4, 2023
15
251
48
UK
APK Toolkit v1.3

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 (xapk, apk, jar, dex, odex, oat)
  • Extract / Zip (xapk, apk, jar)
  • ZipAlign / Check align (xapk, apk)
  • Check Align (xapk, apk)
  • Sign / Verify signature (apk)
  • Convert xapk / split xapk to single apk
  • Edit app info (Icons, Name, Package Name, Version, Build, MinSdk, TargetSdk)
  • Extract / Save app icons
  • Clone APK (Install multiple instances of the same app by cloning it)
  • Drag & drop support for single or multiple files
  • Pin window so it's always on top
  • JumpList and toolbar shortcuts
  • View, Add or 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
  • Automate adding multiple extra manifest permissions
  • Decode / Rebuild to API level
  • Powerful multi-threaded regex search, and search & replace. Run multiple regex at once on decompiled smali code
  • Remove Ads from Apps / Games via Regex Search & Replace
  • Base64 Encode / Decode text or png image
  • Light or Dark skin
Requirements
  • Windows (APK Toolkit is a native windows app)
  • Java for additional tools
  • .net framework for additional tools


    Updated to v1.3
  • Added option to Automate adding multiple extra manifest permissions
  • Added Clone APK (Install multiple instances of the same app by cloning it)
  • Added option to edit app info (Icons, Name, Package Name, Version, Build, MinSdk, TargetSdk) To replace all icon sizes, choose your replacement icon and it will be automatically be resized for all replacements (Square & Round)
  • Added option to round icon corners
  • Added option to automatically generate a round icon
  • Added option to Save app icon via right click popup
  • Added options in edit app info to Save Square or Round icons via right click popups
  • Added Quiet & Verbose options to ApkTool settings
  • Added Resource mode option dropdown to ApkTool settings
  • Added Verbose option to APK Toolkit
  • Added Smali Regex Search to tools menu
  • Added Base64 Encode / Decode text or png image to tools menu
  • Added 'Open file' and 'Open file location' to the log window right click popup
  • Removed Baksmali / Smali tab
    All Decompiling & Compiling of all formats are now processed all in the same place, either from the file / directory selections or via drag & drop via the Decompile and Compile buttons. dex, odex and oat files will be decompiled to the decompiled directory and compiled to the compiled directory. Deodex option moved to settings, Baksmali & Smali directories removed from project, jumplist & toolbar
  • Changed permissions list so you can now select multiple permissions and remove all selected
  • Directories renamed
  • Fixed ZIP64 Extra Field Validation error after Java update
  • Improved error / exception handling / reporting
  • UI changes
  • 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
15
251
48
UK
Updated to v1.1 with some small bug fixes and additions...
 

0xd00d

Platinian
Original poster
Apr 4, 2023
15
251
48
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
15
251
48
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
15
251
48
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?