Created
September 7, 2015 10:26
-
-
Save stonyw/144333d206825916f9c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$#" -ne 1 ]; then | |
echo "Illegal number of parameters: " $@ ". Use xx_XX format instead." | |
exit | |
fi | |
IFS="_" arr=($1) | |
IFS=" " | |
if [ ${#arr[@]} -ne 2 ]; then | |
echo "Illegal number of parameters: " $@ ". Use xx_XX format instead." | |
exit | |
fi | |
adb shell setprop persist.sys.language ${arr[0]} | |
adb shell setprop persist.sys.country ${arr[1]} | |
adb shell 'stop;sleep 5;start' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment