MorphLock Documentation
1. Offline CLI Quickstart (morphlock-scan)
morphlock-scan is a zero-dependency Apache-2.0 binary that inspects APK, AAB, and XAPK packages completely offline:
go install github.com/morphlock/morphlock-scan/cmd/morphlock-scan@latest # Scan an Android App Bundle morphlock-scan app-release.aab # Enforce Google Play 16KB alignment gate + emit SARIF 2.1.0 morphlock-scan app-release.apk --fail-on-16kb --sarif-out morphlock.sarif
2. Google Play 16KB Alignment Checklist (Feb 1, 2027)
- ELF Segment Alignment: Every 64-bit
.so(arm64-v8a,x86_64) must satisfyPT_LOAD.p_align >= 16384andp_offset % 16384 == p_vaddr % 16384. Build with Android NDK r28+ or pass-Wl,-z,max-page-size=16384. - APK ZIP Data Offset: Uncompressed stored
.soentries inside an APK must be aligned on 16KB boundaries via Android Build Tools 35+ (zipalign -P 16 -f 4). - Legacy Packers Warning: Older native packers modify ELF headers and silently break 16KB alignment. MorphLock verifies 16KB alignment both before and after cloud hardening.
3. Play App Signing SHA-256 Anti-Repackaging Guide
When distributing through Google Play App Signing, Google re-signs your uploaded AAB with your App Signing Key before delivery to users. Always configure MorphLock signature verification with both your local Upload Key SHA-256 (for QA builds) and your Google Play Console App Signing Certificate SHA-256 (for production) so legitimate Play Store installs never fail tamper checks.
4. Zero-Telemetry Self-Hosted Risk Console
Instead of streaming your players' device telemetry to a third-party cloud, MorphLock-hardened builds sign compact risk attestation tokens (Frida, debugger, repackaging, root/hook signals) using per-app keys and transmit them directly to your own backend or our open-source self-hosted Docker container (morphlock/morphlock-console). MorphLock servers never receive or store end-user data.
5. Compliance, Cryptography & Google Play Data Safety FAQ
- Google Play Data Safety Form: Because MorphLock adds zero third-party SDK telemetry or tracking, hardening does not introduce new third-party data-sharing disclosures.
- Google Play Protect & DCL Policy: MorphLock never injects remote code downloaders (Zero Remote DCL). All protection logic resides inside your submitted bundle.
- Export Control (EAR / ECCN): MorphLock uses standard industry cryptographic primitives for integrity attestation and binary IP protection. Enterprise customers requiring a written cryptography inventory for Apple App Store or internal compliance audits can contact support@morphlock.com.
- Crashlytics & Sentry Symbolication: Keep your original unstripped native symbols and R8 mapping files, or upload the companion symbol archive generated alongside your hardened build.