ADBShellCaution
adb shell setprop <key> <value>
Set Android system property
Caution RequiredChanging sensitive system properties can trigger visual bugs or crash subsystem services until reboot.
What It Does
Sets a runtime system property in the Android init environment. Useful for testing debug flags, mock sensors, and developer parameters.
Command Syntax
Terminal
$
adb shell setprop <key> <value>Parameters & Placeholders Breakdown
This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:
<key>Vertical Screen CoordinateThe vertical pixel coordinate (Y-axis) from the top-left corner of the touchscreen.
Real-world value:1200
Command syntax:
adb shell input tap 540 1200<value>VALUE ParameterReplace this placeholder with your specific value value.
Real-world value:your-value
Command syntax:
adb shell setprop <key> your-valueUsage Examples
$
adb shell setprop debug.layout true$
adb shell setprop log.tag.MyApp DEBUGPrerequisites & Requirements
- Device connected
- May require root or shell permissions depending on property namespace
Related Commands
Found an error or missing flag for
adb shell setprop <key> <value>?Submit a correction or request additional examples on GitHub.
Having issue? Contact @mkr_infinity
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.