вторник, 20 февраля 2018 г.

adb getprop

Get device properties by adb (tested on API 19, 25)

adb shell getprop

for custom prop(example: get device name (String)) (tested on API 19, 25)

adb shell getprop ro.product.model

Example:

adb get settings system

Get system device settings by adb (tested on API 25)

adb shell settings list system

for custom setting (example: get current system volume (int))(tested on API 19)

adb shell settings get system volume_ring

For more info:

https://developer.android.com/reference/android/provider/Settings.System.html

Example:

adb get settings secure

Get secure device settings by adb (tested on API 25)

adb shell settings list secure

for custom setting (example: get current mock_location state (enabled/disabled))(tested on API 19)

adb shell settings get secure mock_location

For more info:

https://developer.android.com/reference/android/provider/Settings.Secure.html

Example:

adb get settings global

Get global device settings by adb (tested on API 25)

adb shell settings list global

for custom setting (example: get current bluetooth state (enabled/disabled))(tested on API 19)

adb shell settings get global bluetooth_on

For more info:

https://developer.android.com/reference/android/provider/Settings.Global.html

Example:

Git hooks

Original info: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks My goal: Validate commit message and deny commit if a comment di...