Skip to content

Mastering Setprop Commands


Set OEM Unlock Enable

setprop sys.oem_unlock_allowed 1

Set OEM Unlock Disable

setprop sys.oem_unlock_allowed 0

Auto Answer Call

setprop persist.sys.tel.autoanswer.ms 2000

Disable Auto Answer

setprop persist.sys.tel.autoanswer.ms 0

Set Device Locale

setprop persist.sys.locale <locale>

Enable Debugging of Firebase Analytics for App

setprop debug.firebase.analytics.app <package_name>

Set Log Level for Tag

setprop log.tag.<tag_name> <log_level>

Change Dalvik VM Flags

setprop dalvik.vm.dex2oat-flags <flags>

Enable/Disable Debuggable Mode

setprop ro.debuggable <value>

Adjust Wi-Fi Supplicant Scanning Interval

setprop wifi.supplicant_scan_interval <interval>

Configure USB Behavior

setprop persist.sys.usb.config <config>

Set Preferred Library for Dalvik VM

setprop persist.sys.dalvik.vm.lib <lib>

Enable/Disable JNI Checks

setprop ro.kernel.android.checkjni <value>

Enable/Disable Secure Mode

setprop ro.secure <value>

Enable/Disable Secure ADB Mode

setprop ro.adb.secure <value>

Set Primary DNS Server

setprop net.dns1 <DNS1>

Set Secondary DNS Server

setprop net.dns2 <DNS2>

Set Device Timezone

setprop persist.sys.timezone <timezone>

Set Device Locale Persistently

setprop persist.sys.locale <locale>

Set Locale for Product-Specific Information

setprop ro.product.locale <locale>

Enable/Disable ADB Service

setprop persist.service.adb.enable <value>

Enable/Disable USB ConfigFS

setprop persist.sys.usb.configfs <value>

Enable/Disable Monkey Testing

setprop ro.monkey <value>

Enable/Disable Preloading of Storage Assets

setprop persist.sys.storage_preload <value>

Set USB Configuration

setprop sys.usb.config <config>

Set USB State

setprop persist.sys.usb.state <state>

Enable/Disable UI Hardware Acceleration

setprop persist.sys.ui.hw <value>

Set Purgeable Assets Property

setprop persist.sys.purgeable_assets <value>

Set USB Configuration Persistently

setprop persist.sys.usb.config <config>

Set Preferred Library for Dalvik VM Persistently

setprop persist.sys.dalvik.vm.lib <lib>

Adjust LCD Density

setprop ro.sf.lcd_density <density>

Set Wi-Fi Interface Name

setprop wifi.interface <interface>

Set Default TCP Buffer Size

setprop net.tcp.buffersize.default <size>

Set HSXPA Value for RIL

setprop ro.ril.hsxpa <value>

Set GPRS Class for RIL

setprop ro.ril.gprsclass <class>

Enable/Disable A52 Audio Codec for RIL

setprop ro.ril.enable.a52 <value>

Enable/Disable A53 Audio Codec for RIL

setprop ro.ril.enable.a53 <value>

Set Prefix for 3G Dialing

setprop ro.ril.enable.3g.prefix <value>

Disable Synchronization of PRL and Preferred Roaming List

setprop ro.ril.disable.sync.pp <value>

Set Call Ring Delay for Telephony

setprop ro.telephony.call_ring.delay <delay>

Set Default Network Type for Telephony

setprop ro.telephony.default_network <network_type>

Set RIL Configuration for Telephony

setprop ro.telephony.ril.config <config>

Set ICCID for ERI (Enhanced Roaming Indicator)

setprop persist.radio.eri.iccid <iccid>

Set libargs for RIL

setprop rild.libargs <libargs>

Set Numeric Operator ID for GSM SIM

setprop gsm.sim.operator.numeric <numeric>

Set Numeric Operator ID for GSM Network

setprop gsm.operator.numeric <numeric>

Set ISO Country Code for GSM Network

setprop gsm.operator.iso-country <country_code>

Set Operator Name for GSM Network

setprop gsm.operator.alpha <operator_name>

Set Subscription Types for RIL

setprop ril.subscription.types <subscription_types>

Set libpath for RIL

setprop rild.libpath <libpath>

Set libargs for RIL

setprop rild.libargs <libargs>

Set Multi-SIM Configuration

setprop persist.radio.multisim.config <config>

Set Stack ID for Multi-SIM

setprop persist.radio.multisim.stackid <stack_id>