Last active
August 29, 2015 14:00
-
-
Save nestserau/11364748 to your computer and use it in GitHub Desktop.
Launches an Android emulator with some predefined settings
This file contains hidden or 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
pushd ~/.android/avd/$1.avd/ | |
sed -i .bak 's/\(window.[xy] = \)-*[0-9]*/\10/g' emulator-user.ini | |
popd | |
pushd ~/android-sdks/tools/ | |
if [ ! -z "$2" ]; then | |
emulator @$1 -scale $2 | |
else | |
emulator @$1 | |
fi | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script now works for both negative and positive values.