Appraysal
Back to Rules
WARNINGDefiniteGuideline SecurityGoogle PlayAndroidSafety

Insecure File Permissions

Creating world-readable or world-writable files is a severe security risk.

Quick Fix

Use Context.MODE_PRIVATE for file creation and never make files world-readable or writable.

What Gets Detected

Detection Type:CODE PATTERN
Patterns detected:
MODE_WORLD_READABLEMODE_WORLD_WRITEABLEsetReadable(true, false)setWritable(true, false)

Check Your App

Scan your project to see if this rule affects your app

Run Free Scan