CodeQL library for Java
Search

Module SharedPreferences

Provides classes related to android.content.SharedPreferences.

Import path

import semmle.code.java.frameworks.android.SharedPreferences

Imports

java

Provides all default Java QL imports.

Classes

CreateEncryptedSharedPreferencesMethod

The create method of androidx.security.crypto.EncryptedSharedPreferences.

EncryptedSharedPreferences

The class androidx.security.crypto.EncryptedSharedPreferences, which implements SharedPreferences with encryption support.

GetSharedPreferencesEditorMethod

The method android.content.SharedPreferences::edit, which returns an android.content.SharedPreferences.Editor.

PutSharedPreferenceMethod

A method that updates a key-value pair in a android.content.SharedPreferences through a SharedPreferences.Editor. The value is not written until a StorePreferenceMethod is called.

SharedPreferences

The interface android.content.SharedPreferences.

SharedPreferencesEditor

The interface android.content.SharedPreferences.Editor.

StoreSharedPreferenceMethod

A method on SharedPreferences.Editor that writes the pending changes to the underlying android.content.SharedPreferences.