mimurarias.com / apkappsec
On-Device Android SAST · Engineering Series

APK AppSec Engineering Notes

Architecture deep dives behind APK AppSec — a pure Kotlin/JVM static security analyzer built for indie Android developers running pre-release sanity checks and AppSec engineers, QA, and students performing fast defensive go/no-go triage directly on a phone.

Read Part 1 → Get on Google Play
100% Offline Engine Pure Kotlin/JVM core/ with zero network calls and zero Android SDK imports.
No Root, No Server Parses binary AXML, multi-DEX, and resources.arsc directly on-device.
Actionable Triage Separates app code from 3rd-party SDK noise; exports structured JSON, TXT, and PDF.

Engineering Articles

Parsing Binary AXML, DEX, and ARSC On-Device in Pure Kotlin

End-to-end architecture walkthrough: reading compiled manifests without apktool, streaming multi-DEX APKs within Android's heap budget, measured on-device scan latency, four false-positive traps, and honest SAST limitations.

Read article →

Why R8 Full Mode Breaks Naive Obfuscation Detectors

How synthetic package repackaging fools package-prefix checks, why manifest components and Room _Impl classes stay unrenamed, and how to classify R8 vs. unobfuscated vs. native/IL2CPP builds accurately.

Taming False Positives with Dual Hardening & Hygiene Scoring

Geometric decay (0.5^n), severity budgets, cleartext URL triage, config-only Shannon entropy, and separating app-owned bytecode findings from third-party SDK noise.

Anatomy of Binary AndroidManifest.xml (AXML) and resources.arsc

Chunk layouts, UTF-16 and MUTF-8 string pools, sparse and 16-bit offset resource tables, and recovering compiled @string/... keys without aapt2.

Live Benchmark: Auditing OVAA + Gemini AI Triage

Watch APK AppSec scan Oversecured's Vulnerable Android App (5.3 MB, 9 DEX, 80,984 strings in 13.08 s) offline on a mid-range phone and export structured JSON directly to Gemini for independent triage.

Watch 2-min Demo →