Android小知识总结

1.编译没有odex的升级包(eng版本):

修改product/device/XXX/“lunch的启动选项”/BoardConfig.mk

# In user-builds, dexpreopt always enable, but we can disable in here.
#DISABLE_DEXPREOPT := true
# In eng/others-build, dexpreopt disable, but we can enable in here.
#WITH_DEXPREOPT := true

 

2.android 查看所有的包:

pm list packages

demo: shell@hwH60:/ $ pm list packages 

启动一个应用:
am start + packagename

demo: shell@hwH60:/ $ am start com.yht.b

 

4.Android打包一个Apk后,查看它的VersionCode、VersionName 

aapt dump badging REL_Doctor_v2.6.apk

posted @ 2014-07-07 10:31  自由飞翔2012  阅读(175)  评论(0编辑  收藏  举报