среда, 13 июня 2018 г.
Add KV data to JUnit test (console run)
adb shell am instrument -w -e class com.example.developer.appname.SomeTests#testName -e key1 param1 -e key2 param2 com.example.developer.appname.test/android.support.test.runner.AndroidJUnitRunner
Spaces and some other characters is not supported in key or value
in android test use InstrumentationRegistry.getArguments().get(key)
Spaces and some other characters is not supported in key or value
in android test use InstrumentationRegistry.getArguments().get(key)
Run anroid JUnit test with android JUnit runner from console
adb shell am instrument -w -e class com.example.developer.appname.SomeTests#testName com.example.developer.appname.test/android.support.test.runner.AndroidJUnitRunner
вторник, 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 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 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 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:
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:
среда, 10 января 2018 г.
Подписаться на:
Сообщения (Atom)
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...
-
Get system device settings by adb (tested on API 25) adb shell settings list system for custom setting (example: get current system vol...
-
Get global device settings by adb (tested on API 25) adb shell settings list global for custom setting (example: get current bluetooth ...

