Skip to content

Instantly share code, notes, and snippets.

@nissuk
Created July 16, 2011 14:00
Show Gist options
  • Save nissuk/1086377 to your computer and use it in GitHub Desktop.
Save nissuk/1086377 to your computer and use it in GitHub Desktop.
@rem このバッチファイルはtest.batなどの名前をつけてplatform-toolsフォルダ内に置いて下さい
@rem また、起動するときは http://androidsdk.web.fc2.com/ を参考にA22という名前のAVDを先に作成して下さい
..\tools\emulator -avd A22 -partition-size 1000
@echo エミュレータが立ち上がるまで待ったのち、
@pause
adb -s emulator-5554 shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
adb -s emulator-5554 shell chmod 777 /system/app
adb -s emulator-5554 push Vending.apk /system/app/
adb -s emulator-5554 push GoogleServicesFramework.apk /system/app/
adb -s emulator-5554 push MarketUpdater.apk /system/app/
adb -s emulator-5554 push Development.apk /system/app/
adb -s emulator-5554 shell rm /system/app/SdkSetup.apk
@echo エミュレータを閉じたのち、
@pause
del %USERPROFILE%\.android\avd\A22.avd\cache.img
del %USERPROFILE%\.android\avd\A22.avd\userdata-qemu.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment