You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3.2 Secure Implementation Recommendations. Mobile Security 2026
#1584
Hardware Backing: Force the use of hardware-backed keys by checking KeyInfo.isInsideSecureHardware() after key generation. On devices supporting Android 9 (API 28) or higher, use setIsStrongBoxBacked(true) to enforce hardware protection using a dedicated HSM chip.
Key Attestation: For high-security environments, use Key Attestation to mathematically prove to a backend server that the cryptographic key was created in hardware and has not been tampered with.
Purpose and Encryption Modes: Strictly limit key capabilities during creation (e.g., allow ONLY decryption/encryption with specific padding schemes):
val keyGenerator =KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore")
keyGenerator.init(
KeyGenParameterSpec.Builder("MySecureKeyAlias", KeyProperties.PURPOSE_ENCRYPTorKeyProperties.PURPOSE_DECRYPT)
.setBlockModes(KeyProperties.BLOCK_MODE_GCM)
.setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)
.setUserAuthenticationRequired(true) // require passcode/biometrics to use the key
.build()
)
This is a maintainer FAQ for app-store-compliance, an open playbook and pre-submission guard for App Store and Google Play review. Run bash scripts/install.sh install, then run the guard on your project before you submit. Questions or a correction? Reply below.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
KeyInfo.isInsideSecureHardware()after key generation. On devices supporting Android 9 (API 28) or higher, usesetIsStrongBoxBacked(true)to enforce hardware protection using a dedicated HSM chip.Source section. MOBILE-SECURITY-2026.md, 3.2 Secure Implementation Recommendations.
This is a maintainer FAQ for app-store-compliance, an open playbook and pre-submission guard for App Store and Google Play review. Run
bash scripts/install.sh install, then run the guard on your project before you submit. Questions or a correction? Reply below.All reactions