在Android模拟器上安装和卸载APK包

source:http://xusaomaiss.iteye.com/blog/375794

【安装APK】

  1. 首先,将模拟器执行起来,直到正式进入系统。
  2. 打开一个cmd窗口,路径切换到模拟器目录下的tools目录。输入:adb install 你要安装的apk文件的路径。e.g. 将android123.apk文件复制到Android SDK的Tools目录中(点击下载Android123.apk文件),使用cmd的cd命令定位到Android 模拟器目录Tools中,执行adb install android123.apk命令,这时模拟器将会自动执行安装。 其实做的是复制文件到Android模拟器的/data/app文件夹,并创建了一个快捷方式。

1) Android NDK下载

http://www.apkbus.com/forum.php?mod=viewthread&tid=3498&fromuid=4
2) 安装ndk

$ tar xvjf OpenCV-2.1.0.tar.bz2
$ cd android-ndk-1.6_r1
$ export NDKROOT=`pwd`
$ ./build/host-setup.sh

3) 下载opencv
http://github.com/billmccord/OpenCV-Android/downloads

4) 编译opencv

$ tar xvzf bill* $ cd app $ ln -s bill* opencv $ make APP=opencv

5) 安装opencv

$ adb push out/apps/opencv/libopencv.so /system/lib/

【卸装APK】

Android并没有提供一个卸载 应用的命令,只能自己手动删除 :

adb shell
cd /data/app
rm app.apk

e.g. D:\android\tools>adb shell rmdata/app/NetScramble_1.1.apk

  • 在Android模拟器上安装的apk文件,是将他的内存系统实时dump到img中保存下来,即tools\lib\images的文件都被更新了
  • adb shell:Android的linux shell显然做了很多精简,大量的linux常用指令都不支持。
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

生活在西班牙

自己动手丰衣足食

BlueAsteroid

Just another WordPress.com site

Jing's Blog

Just another WordPress.com site

Start from here......

我的心情魔方

天才遠私廚

希望能做一個分享各種資訊的好地方

语义噪声

西瓜大丸子汤的博客

笑对人生,傲立寰宇

Just another WordPress.com site

Where On Earth Is Waldo?

A Project By Melanie Coles

the Serious Computer Vision Blog

A blog about computer vision and serious stuff

Cauthy's Blog

paper review...

Cornell Computer Vision Seminar Blog

Blog for CS 7670 - Special Topics in Computer Vision

datarazzi

Life through nerd-colored glasses

Luciana Haill

Brainwaves Augmenting Consciousness

槑烎

1,2,∞

Dr Paul Tennent

and the university of nottingham

turn off the lights, please

A bunch of random, thinned and stateless thoughts around the Web

%d bloggers like this: