Skip to content
Commit cc97ebd0 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Add a shell command to reset selected/enabled IMEs

With this CL, you can reset currently selected/enabled IMEs with a shell
command as follows:
  adb shell ime reset-ime

This should be useful for end-to-end tests where often we want to clean
up persistent IME state to the default ones as if the device is
initially booted.

Fixes: 70475949
Test: Manually tested as follows:
  1. make -j SoftKeyboard
  2. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  3. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  4. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  5. Make sure that SoftKeyboard is enabled and selected
  6. adb shell ime reset-ime
  7. Make sure that SoftKeyboard is no longer enabled and selected
Change-Id: I1e27aa1c9edf5d9a6d529c469ad42fd1e42b13b1
parent 926488d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment