Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Apk Mod?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zephyr7030-apk-mod)
---
name: apk-mod
description: Modify, rebuild, verify, and install an APK using the available Android tools and a separate working copy.
---
# Modify an APK
1. Identify the package and use `pm path PACKAGE` to locate its installed APKs. Check whether it has splits. Copy the source APKs into a separate working directory and keep them intact throughout the edit.
2. Inspect the manifest and package information before choosing an edit. Use the packaged `apktool` to decode (`apktool d`) and rebuild (`apktool b`) when resources or smali need changes. Use the available smali tools only for a DEX-level edit. Change only the required resources or code.
3. Rebuild to a fresh output file. Align it with `zipalign` before signing. Check the tool's help for the alignment options required by the target and use the same options to verify alignment.
4. Use the project's signing key when provided. Otherwise use the packaged `apk-keygen` to create or reuse the module's private signing key and certificate. Run `apk-keygen` without arguments. It prints the private key path first and certificate path second, reusing the same pair on subsequent calls. Pass the resulting PKCS#8 key and certificate to `apksigner sign --key KEY --cert CERT --out SIGNED ALIGNED`.
5. Before installation, verify the signed artifact with `apksigner verify --verbose --print-certs SIGNED` and inspect its manifest with `aapt2 dump badging SIGNED`. For a split installation, check that the set is complete and signed consistently.
6. Install only when requested. An update needs the installed package's signing identity. A different signer requires a separate uninstall and reinstall, which removes package data. Explain the consequence before that operation. After installing, check the installed version and the behavior the user asked to change.
The environment summary lists the tools actually available. If a required tool is missing, explain which step is blocked.