SystemProperties

This is a system properties extension tool mirrored from "android.os.SystemProperties".

You can directly access the system's properties through this tool.

  • Note: The core functionality relies on calling system class through Java reflection, which may be limited by the system versions and third-party ROMs.

Functions

Link copied to clipboard
fun contains(key: String): <Error class: unknown class>

Determine whether system properties contain the specified key.

Link copied to clipboard
fun get(key: String, default: String = ""): String

Get the system properties key-value, and return as String.

Link copied to clipboard
fun getBoolean(key: String, default: Boolean = false): Boolean

Get the system properties key-value, and return as Boolean.

Link copied to clipboard
fun getInt(key: String, default: Int = 0): Int

Get the system properties key-value, and return as Int.

Link copied to clipboard
fun getLong(key: String, default: Long = 0): Long

Get the system properties key-value, and return as Long.