Device.getSystemProperty()

Overview

Get a system property from an Android device. This is not supported on Windows or iOS.

Added in version 2.0.0

Format

var value = Device.getSystemProperty(key);

Parameter Description Type Required Notes
key The key to the value to retrieve. String Required A list of system properties can be found using the Android Debug Bridge command: adb shell getprop
value A string containing the property value. String Return May return undefined or null if unable to determine value.

Example

Copy
/* Display a toast message of the device CPU application binary interface (ABI).
*/
var value = Device.getSystemProperty("ro.product.cpu.abi");
if(value) {
    View.toast('ABI: ' + value, true);
}