Recipe Name:
Storage best practices: deprecated operating mode
Description:
This operating mode has been deprecated
Level:
warning
Language:
  • java
Tags:
  • security
  • framework specific
  • mobile
  • Android
Documentation

The android.content.Context.MODE_MULTI_PROCESS operating mode has been deprecated since API level 23.

Resources
Recipe
id: scw:android:deprecated-storage-operating-mode
version: 10
metadata:
  name: 'Storage best practices: deprecated operating mode'
  shortDescription: This operating mode has been deprecated
  level: warning
  language: java
  enabled: true
  comment: ""
  descriptionFile: descriptions/Storage_best_practices__deprecated_operating_mode.html
  tags: security;framework specific;mobile;Android
search:
  argument:
    referenceTo:
      name: android.content.Context.MODE_MULTI_PROCESS
availableFixes:
- name: Change to MODE_PRIVATE
  actions:
  - rewrite:
      to: android.content.Context.MODE_PRIVATE
      target: self
- name: Open data and file storage Android documentation
  actions:
  - goto:
      type: URL
      value: https://developer.android.com/training/data-storage/shared-preferences