System Settings
Android 4.2+
Risk: MODIFIES_DEVICE
Set Setting: usb_mass_storage_enabled
Modifies the 'usb_mass_storage_enabled' parameter in Android system settings.
Command Syntax
adb shell settings put system usb_mass_storage_enabled <VALUE>
Generic Syntax:
settings put system usb_mass_storage_enabled <VALUE>
Real-World Usage Examples
Configure usb_mass_storage_enabled
Sets usb_mass_storage_enabled to 1.
adb shell settings put system usb_mass_storage_enabled 1