Find getSharedPreferences(_, MODE_PRIVATE) callers

Proprietary

SharedPreferences is stored as plain XML in app-private storage — on rooted or backed-up devices, that's readable. For tokens, refresh credentials, or PII use EncryptedSharedPreferences (androidx.security.crypto).

org.openrewrite.kotlin.security.FindSharedPreferencesForSensitiveData$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindSharedPreferencesForSensitiveData$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.