@echo off
echo --------------------------------------------------------
echo Get devices
adb devices > devices.txt
echo --------------------------------------------------------
echo start install C:\Users\911\Desktop\WI_IME.apk
for /f "skip=1 tokens=1 delims= " %%i in (devices.txt) do (
echo install to devices %%i
adb -s %%i install -r C:\Users\911\Desktop\WI_IME.apk
adb -s %%i shell settings put secure enabled_input_methods com.hit.wi/.SoftKeyboard
adb -s %%i shell ime set com.hit.wi/.SoftKeyboard
)
del devices.txt
echo --------------------------------------------------------
pause