OMS: add 'cmd overlay lookup' command
Add a shell command to look up the value of any resource. This allows a
developer to quickly see what the value of a resource is, using the
current device configuration and the currently enabled overlays. For
more fine-grained control, use 'idmap2 lookup' instead.
Example:
$ adb shell cmd overlay lookup --verbose android android:bool/config_annoy_dianne
Resolution for 0x01110020 android:bool/config_annoy_dianne
For config -en-rUS-ldltr-sw320dp-w320dp-h461dp-normal-notlong-notround-nowidecg-lowdr-port-uiModeType=2-notnight-hdpi-finger-keysexposed-qwerty-trackball-728x480-v29
Found initial: android
true
$ adb shell cmd overlay enable test.overlay
$ adb shell cmd overlay lookup --verbose android android:bool/config_annoy_dianne
Resolution for 0x01110020 test.overlay:bool/config_annoy_dianne
For config -en-rUS-ldltr-sw320dp-w320dp-h461dp-normal-notlong-notround-nowidecg-lowdr-port-uiModeType=2-notnight-hdpi-finger-keysexposed-qwerty-trackball-728x480-v29
Found initial: android
Overlaid: test.overlay
false
Test: manual: adb shell cmd overlay lookup --verbose android android:array/preloaded_drawables
Change-Id: I00efe23b1a0f7342a5cf7f4ba86f3eae6714c9aa
2 files changed