LazyIonEs/AndroidToolKit
About
Desktop tools applicable to Android development, supporting Windows, Mac and Linux 🎉
Other ProjectsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
OriginalAndroidToolKit
简体中文 | English
A cross-platform desktop toolkit for Android developers. Inspect certificates and APKs, sign packages, create keystores and APKs, generate icons, and clean build caches on Windows, macOS, and Linux.
Download the latest release · Screenshots · Build and run · FAQ (中文)
Linux has not been thoroughly tested. Please report problems through Issues.
Key Features
| Tool | What you can do |
|---|---|
| Signature Information | Import APK, JKS, or Keystore files; inspect certificate subjects, validity, algorithms, and MD5 / SHA-1 / SHA-256 fingerprints; view APK signature verification results |
| APK Information | Explore package size, files, permissions, and components; filter native libraries by ABI and inspect ELF / ZIP 16 KB alignment; read versions, SDK levels, and file checksums |
| APK Signing | Sign APKs with a keystore and alias; supports V1, V2, V2 Only, V3, and V4 policies and file alignment |
| Keystore Generation | Create a keystore with a custom alias, passwords, validity period, certificate details, key type, and key size |
| APK Generation | Configure the app name, package name, icon, version, and SDK levels; optionally sign the APK immediately after generation |
| Icon Generation | Generate five Android icon densities from PNG / JPG / JPEG images, preview them together or individually, and customize output paths, names, and compression |
| Cache Cleaner | Scan files or folders with custom rules, preview matches, select items, and confirm deletion |
Supports drag and drop, copying information, and system, light, or dark appearance. Settings also provide a default output path and update checks.
Download - Releases
| device | chip | download |
|---|---|---|
| macOS | Apple Silicon (arm64) | |
| macOS | Intel (x64) | |
| Windows | x64 (Intel / AMD) | |
| Windows | ARM64 | |
| Linux | x64 (AMD64 / x86_64) | |
| Linux | ARM64 (aarch64) |
If installation fails on Windows due to permissions, try running the installer as administrator. For macOS launch prompts and other troubleshooting, see the FAQ (中文).
Getting Started
- Inspect a file: Drop an APK into Signature Information or APK Information. For keystores, enter the password and select an alias when prompted.
- Sign or generate: Open the appropriate tool and fill in the input, output directory, and required options. After signing, inspect the output in Signature Information.
- Create icons: Select an image, review the directory, name, and compression options in More settings, then start generation. The UI suggests a 1024 × 1024 px source image.
- Clean caches: Configure rules, then select a project folder or its parent. Review the paths and selected items before confirming deletion.
Cleanup Rules
Open Cache Cleaner → Manage rules to configure file or folder rules:
- Match names and relative paths with equals, starts with, ends with, or contains. File rules also support size thresholds in KB / MB / GB.
- Combine conditions within a rule using ALL or ANY. A match from any enabled rule is included in the results.
- Duplicate, reorder, enable, or disable rules, and choose whether matches are selected by default.
- Use Save to apply changes, Save and try scan to pick a folder and scan, or Cancel to discard the edits.
The default rule matches the exact, case-sensitive folder name build; Build and build.foo do not match. Scanning and deletion do not follow symbolic links, and candidate paths are checked again before deletion. See the FAQ (中文) for details.
Screenshots
The screenshots below show the updated Chinese interface. Click an image to view it at full size.
| Signature Information · Light | Signature Information · Dark |
|---|---|
![]() |
![]() |
APK Information: from package overview to files and native libraries
| Import an APK | Package Composition |
|---|---|
![]() |
![]() |
| Declared Permissions | Components |
|---|---|
![]() |
![]() |
| Native Libraries and Alignment | App Details |
|---|---|
![]() |
![]() |

APK Signing, Keystore Generation, and APK Generation
| APK Signing | Keystore Generation |
|---|---|
![]() |
![]() |

Icon Generation: five densities and individual previews
| Icon Overview | Individual Preview |
|---|---|
Cache Cleaner and Custom Rules
| Cache Cleaner · Light | Cache Cleaner · Dark |
|---|---|
![]() |
![]() |

Settings and Appearance
| Settings · Light | Settings · Dark |
|---|---|
![]() |
![]() |
Building and Running
This is a Compose Desktop application built and run on a computer. No Android phone or emulator is required. The Gradle project currently configures JVM targets only, so a normal desktop build does not require a separate Android SDK or NDK installation.
Hardware and Environment
| Item | Requirement or recommendation |
|---|---|
| Computer | macOS, Windows, or Linux with a graphical desktop; the release workflow covers x64 and ARM64. Linux has not been thoroughly tested |
| Hardware | For development, 16 GB or more RAM, an SSD, and tens of GB of free space for Gradle / Cargo caches and packaging output are recommended; these are recommendations, not tested minimums |
| JDK | JDK 21. Point JAVA_HOME to the JDK installation, add its bin directory to PATH, and set the IDE's Gradle JVM to 21. The release workflow uses JetBrains JDK 21 |
| Rust | Install a stable Rust toolchain with working cargo and rustc commands. The project does not pin a Rust toolchain version; the minimum depends on the dependencies resolved by Cargo |
| Gradle | Use the included Wrapper, currently 9.9.3; no separate Gradle installation is needed |
| Kotlin / Compose | The build currently uses Kotlin 2.4.20 and the Compose Multiplatform plugin 1.12.1, downloaded automatically by Gradle |
| Other tools | Git, native build tools for your platform, and network access to Gradle, Maven, and Cargo dependency repositories |
For the authoritative versions, see the version catalog, Gradle Wrapper configuration, and Rust configuration.
Rust image-processing dependencies need a C compiler; x64 builds also need NASM. Prepare the following tools:
| Platform | Native compilation tools | Additional installer requirements |
|---|---|---|
| macOS | Xcode Command Line Tools (xcode-select --install); on Intel Macs, install a current NASM, for example with brew install nasm if Homebrew is available |
A full JDK 21 installation with jpackage / jlink |
| Windows | Visual Studio Build Tools with Desktop development with C++, the Windows SDK, and MSVC tools for the target architecture; for x64, add NASM to PATH |
WiX Toolset 3.x with discoverable candle.exe and light.exe |
| Linux | GCC / Clang and basic compilation tools; on Debian / Ubuntu, install build-essential, plus nasm for x64 |
dpkg and fakeroot for DEB; a package providing rpmbuild for RPM |
See the Rust installation guide and JDK 21 packaging requirements. Keep the JDK, default Rust target, and host architecture aligned, particularly on Apple Silicon where ARM64 and x64 toolchains can coexist.
Get the Source and Run
git clone https://github.com/LazyIonEs/AndroidToolKit.git
cd AndroidToolKit
Check that java -version, javac -version, cargo --version, and rustc --version work and that Java reports version 21. Then run from the repository root:
macOS / Linux:
./gradlew --version
./gradlew :composeApp:run
Windows PowerShell:
.\gradlew.bat --version
.\gradlew.bat :composeApp:run
The first run downloads dependencies, compiles the Rust native library, generates UniFFI Kotlin bindings, and then builds and launches the desktop app. It takes longer than subsequent runs. Gradle connects these steps automatically; there is no need to copy native libraries or generate bindings manually.
For IDE development, open the repository root in IntelliJ IDEA or Android Studio with support for the current Kotlin version. Set the Gradle JVM to JDK 21, sync the project, and run the Gradle task :composeApp:run.
Compile, Test, and Package
Run these commands from the repository root. On Windows, replace ./gradlew with .\gradlew.bat.
# Compile the JVM modules and required Rust library without opening a window
./gradlew :composeApp:jvmJar
# Run shared JVM tests, including desktop UI tests that need a graphical environment
./gradlew :shared:jvmTest
# Create Release installers for the current OS, using the release workflow's task
./gradlew :composeApp:packageReleaseDistributionForCurrentOS
The module JAR produced by jvmJar does not include all runtime dependencies. Use run for development and installers for distribution. Installers are written to the dmg, msi, exe, deb, or rpm subdirectories of composeApp/output/main-release/. They include the required Java runtime, so users do not need the development toolchain.
Build installers on their target OS; local builds use the current architecture by default. macOS produces DMG, Windows produces MSI / EXE, and Linux produces DEB / RPM. See the release workflow for builds across platforms and the Compose Desktop packaging guide for details.
Build Troubleshooting
- Java 21 is missing or JVM versions do not match: Check
JAVA_HOME,java -version,./gradlew --version, and the IDE's Gradle JVM. - Cargo cannot be found: Restart the terminal or IDE after installing Rust. You can also append
-PcargoExecutable=/absolute/path/to/cargoto the Gradle command; on Windows, point it tocargo.exe. - A C compiler, linker, or NASM is missing: Install the native tools listed above and check
PATH. A JDK alone cannot build the Rust dependencies. - Dependency downloads fail: Check network access and Gradle / Cargo proxy settings. A first build cannot rely on
--offline.
Technology Stack
- Kotlin Multiplatform
- Kotlin Coroutines
- Compose Multiplatform
- Kotlinx Serialization
- Rust
- mozjpeg
- libimagequant
- uniffi-rs
For a complete list of dependencies used, check the catalog file
Project Architecture
The project uses Compose Desktop, Kotlin Multiplatform, and Rust. The Gradle build has two modules, :composeApp and :shared, and currently configures only a JVM desktop target. rust is a separate Cargo project invoked by Gradle build tasks. commonMain and jvmMain are source sets within :shared, not additional Gradle modules.
Modules and responsibilities
| Architecture unit | Main responsibilities | Dependency boundary |
|---|---|---|
:composeApp |
main(), Koin startup, application initialization, desktop window, and installer configuration |
Depends on :shared; does not implement individual tool workflows |
:shared / commonMain |
Compose screens, Routes, ViewModels, navigation, theming, domain models, use cases, and repository interfaces; also common data implementations such as preferences and cleaner rules | Use cases access data through interfaces, without referring to desktop repositories or Rust APIs |
:shared / jvmMain |
Repository and data source implementations, file and process operations, APK tooling, network updates, desktop adapters, and dependency wiring | Implements commonMain contracts and calls JVM libraries, system services, and UniFFI bindings |
rust |
Image resizing, PNG quantization and optimization, and JPEG re-encoding | Exposed to the JVM through interfaces defined with UniFFI |
The diagram shows the main runtime request path. Repository interfaces are defined in commonMain; the desktop Koin modules bind them to concrete implementations.
flowchart TD
A["composeApp<br/>Entry point · window"] --> B["shared / commonMain<br/>Route · Screen · ViewModel"]
B --> C["shared / commonMain<br/>UseCase · repository interfaces"]
C -- "Calls Koin-injected implementation at runtime" --> D["shared / jvmMain<br/>Repositories · data sources · desktop adapters"]
D --> E["JVM libraries · files · processes · network"]
D --> F["UniFFI Kotlin bindings"]
F --> G["rust<br/>Image processing"]
Startup and dependency wiring
main()callsstartKoin(desktopModules()). The desktop dependency graph combines dispatchers and settings, desktop data implementations, domain use cases, and page ViewModels.- Before creating the window,
AppBootstrap.prepare()waits for the initial settings load and reads storage capacity. The first screen therefore uses restored settings instead of temporary defaults. Window { App() }connects Koin to Compose. The root observes settings to choose the theme and navigation rail options, hosts navigation, global messages, and the update dialog, and starts a silent update check when enabled.- Closing the window shuts down Koin idempotently. Navigation entries manage the saved state and lifetime of their page ViewModels separately.
Feature request flow
Features generally follow Screen → Route → ViewModel → UseCase → repository interface → desktop implementation. A Screen renders state and reports actions; its Route connects UI services such as file pickers or drag and drop; the ViewModel handles intents and publishes page state through StateFlow; a use case coordinates the business steps. Desktop data sources perform time-consuming file, process, and network work.
- Icon generation:
IconFactoryViewModelcallsGenerateIconsUseCase, which usesImageProcessorandIconOutputsto create icons for five densities.JvmImageProcessorinvokes the UniFFI bindings on an IO dispatcher, Rust resizes and compresses the images, and the output session manages temporary files. - APK inspection and generation:
ReadApkInformationUseCasecombines package metadata, manifest, icons, and components.BuildApkUseCasecoordinates template changes, the build, and optional signing. File inspection,aapt2, APK tooling, and signing implementations live in the JVM data layer. - Update checks: The root
UpdateViewModelgets release information and downloads installers throughUpdateRepository. Its JVM implementation handles HTTP transport and filters release assets for the current OS; a desktop action adapter passes installation requests to the operating system.
State, navigation, and lifecycle
- Navigation 3 keeps a separate back stack for each top-level page, preserving its history when users switch navigation rail items. Navigation entries own saveable UI state and a ViewModelStore. Navigation keys are serialized by fully qualified class name, so moving or renaming them requires checking restoration of previously saved state.
PreferencesRepository.statepublishes snapshots to the root and feature pages. Changes update in-memory state first, then a single writer persists them in order.revisionandpersistedRevisiondistinguish accepted changes from persisted ones.- Pages send one-time messages through the application-level
AppEffectSinkto the rootAppEffectHost; leaving a page does not close that channel. The update dialog also lives at the root, independent of any tool page's lifecycle.
Build and verification
:shared:rustTasks coordinates Cargo compilation, UniFFI Kotlin binding generation, and copying the native library as a resource. jvmMain includes the generated sources and resources in compilation. :composeApp run and packaging tasks depend on this preparation and produce installers for the current operating system. Compose resources, desktop configuration, and installer icons are managed by their respective modules.
Tests live in :shared's jvmTest source set and cover feature state, domain use cases, data implementations, navigation, dependency wiring, and platform adapters. See Compile, Test, and Package above for commands.
License
MIT License
Copyright (c) 2024 LazyIonEs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Explore related projects
Loading…













