Find Android external storage access
ProprietaryFinds the Android APIs that return a directory on external storage: Environment.getExternalStorageDirectory() and getExternalStoragePublicDirectory(..), and Context#getExternalFilesDir(s), getExternalCacheDir(s), getExternalMediaDirs and getObbDir(s). Other applications can read and change files there, so sensitive data should not be stored there unencrypted (CWE-312), and what is read back should be validated. Test sources are not searched.
org. openrewrite. java. security. search. FindAndroidExternalStorageAccessmod run . --recipe= org. openrewrite. java. security. search. FindAndroidExternalStorageAccessInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.