-
Notifications
You must be signed in to change notification settings - Fork 0
Anotações
#Build app Contacts
###config environment
. build/envsetup.sh
lunch full-eng
export PATH=/home/diego/dev/jdk6/bin:$PATH
###build app
mmm packages/apps/Contacts
###update the system.img with new apk (optional)
make snod
###run emulator
emulator -partition-size 256 &
###to make possible to write to /system
adb remount
###uninstall Contacts.apk
adb shell rm /system/priv-app/Contacts.apk
###install the new apk
adb install out/target/product/generic/system/priv-app/Contacts.apk
###uninstall again(rm from priv-app only works the first time when run the emulator)
adb uninstall com.android.contacts
#.profile configuration
alias ckjm="/home/diego/git/LaTeXworks/tcc_android_pattern/ckjm-1.9/ckjm2txt /home/diego/dev/android/out/target/common/obj/APPS/Contacts_intermediates/classes.jar /home/diego/git/LaTeXworks/tcc_android_pattern/ckjm-1.9/metrics/partial-$(date +%N).txt"
alias apk="mmm packages/apps/Contacts"
alias eapk=". build/envsetup.sh && lunch full-eng && export PATH=/home/diego/dev/jdk6/bin:$PATH"
alias iapk="adb uninstall com.android.contacts ; adb install out/target/product/generic/system/priv-app/Contacts.apk"
alias mapk="adb remount && adb shell rm /system/priv-app/Contacts.apk"
alias emuapk="emulator -no-boot-anim -partition-size 256 &"