Log date · Mon
Can Apktool reveal APK resources? How to audit a release
APK resources are not secrets. Audit the release package and verify decoding and device behavior after an Apktool upgrade.
Can APK resources keep a secret? The result first
Do not treat resources shipped in an APK as secrets. In two archives we created, the configuration was readable in both; our placeholder was present in one and absent in the version from which we removed it. Packaging or shortening a name is not access control.
Apktool v3.0.3, released on 20 July 2026 at 10:37 UTC, fixed resource handling issues. It is a useful occasion to audit what a release package contains. [1]
| Question | Result |
|---|---|
| Could we list the config? | Both listed assets/config.json. |
| Could we read the content? | Both yielded the JSON. |
| Where was the placeholder? | Present in the full variant; absent in the reduced one. |
| Did this test v3.0.3? | No; the experiment used JDK jar. |
What changed in the release
The GitHub release lists ten changes: a fix for android:* not found errors, empty values for zero flags, ResStringPool optimization, a YAML sanity check and ResConfig getters, XPath tests, and dependency updates. [1] The maintainers also describe improved handling of stripped resource namespaces and reduced string-pool memory use. [2]
These are decoding and tool-maintenance changes. A successful decode does not establish resource completeness or correct loading across device configurations. After an upgrade, retain the same input, tool version and logs, compare the differences, and validate the actual application.
A controlled archive comparison
We used JDK jar 17.0.19 to create two ZIP-based archives: full contains a demonstration endpoint and an obviously fake test key; release retains only the endpoint. We listed and extracted them, then checked the config for an exact match. The JDK documents jar as a general archive tool. [5] This illustrates shipped content; it is not a test of an APK, Android compiled resource tables or Apktool 3.0.3.
== full: extracted config ==
{"endpoint":"https://demo.invalid","test_key":"DEMO-KEY-not-a-real-credential-0000"}
placeholder: present
== release: list ==
assets/
assets/config.json
== release: extracted config ==
{"endpoint":"https://demo.invalid"}
placeholder: absentBoth variants have the same config path; removing the field changed this exact-match result. The endpoint is a public example, and an endpoint is not necessarily sensitive. Conversely, failing to find this full string does not establish that the archive contains no other sensitive values: they may be in other files, in a different format, or generated during the build.
Android resources also include strings, images and alternatives selected for language or device configuration. [4] Review the variants actually delivered in release, not just the default strings.xml in source. A client-side feature flag is available to the recipient; make authorization decisions on a trusted server.
Recommendations by content
These are design recommendations, not protection effects measured by our experiment. Classify each value by privilege and lifetime before deciding whether it belongs in the release.
| Content | Recommendation |
|---|---|
| Shared privileged secret | Keep it on a controlled server; rotate an already shipped value. |
| Test entry point or debug configuration | Exclude it from release and inspect the final package. |
| Public endpoint or ordinary UI copy | It can ship; do not rely on concealment for authorization. |
| Localized and dark-mode resources | Inspect delivered variants and verify loading on devices. |
Server delivery needs access control too: a shared secret that any client can request has merely moved in transit. If an older release already contains a credential, removing it from source cannot recall the package. Restrict its privileges, rotate it, and verify the old value stops working.
Check your own release APK
For a final APK you are authorized to inspect, record the tool version and build identifier and decode into a new isolated directory. The following is a documentation-based command example requiring an installed Apktool; we did not execute it in this run. [3] Do not use --no-assets or --no-res for a complete resource inventory: the former skips assets and the latter leaves resources.arsc undecoded.
apktool --version
apktool d path/to/your-release.apk -o /tmp/your-release-audit
rg -n -i "demo-key|internal|debug|staging" /tmp/your-release-auditReview errors and warnings, and inspect the manifest, resource table, assets, raw files and localized resources. Search terms are only a starting point: do not put real keys in command lines or shared logs, and do not treat no matches as a passed audit. If decoding fails, retain the input and logs, check the tool and framework configuration, and compare with a known working version.
If your pipeline rewrites resources or processes a package after signing, test installation, launch, languages and dark mode on devices, then verify the final signature. Retain before-and-after results with the build identifier. When a difference appears, identify the step that introduced it instead of treating one successful output as proof of compatibility.
Your checklist
- Inventory resources, assets and language variants in the final APK.
- Remove test entry points and internal configuration from release.
- Move shared privileged credentials to a controlled server and rotate old values.
- Record tool versions, decode warnings and build identifiers.
- Verify installation, resource loading and the final signature on devices.
Primary sources
- GitHub: iBotPeaches/Apktool release v3.0.3 · Source date 2026-07-20 · Checked 2026-10-12
- Apktool 3.0.3 release blog · Checked 2026-11-11
- Apktool CLI Parameters · Checked 2026-11-11
- Android app resources overview · Checked 2026-11-11
- Oracle: jar command · Checked 2026-11-11