您的位置:首页 > 移动开发 > Android开发

Ubuntu系统将TaintDroid刷到Android4.3模拟器中并测试其功能

2014-04-22 14:36 447 查看
由于工作需要 TaintDroid 自己就编译了一下  介绍一下少走一些弯路吧!

http://appanalysis.org/tdro1d.html  前面的配置环境编译都按照官方的文档进行 

注意的几点是 : 

1.下载源代码的时候

% repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r1

     完成这步后给

~/tdroid/tdroid-4.3_r1/.repo/mainfest.xml 中更改 fetch=https://android.googlesource.com/"

然后 repo sync

加快下载源代码的速度   自己可以写个脚本下载,防止下载中断 

2.按照官网,一直执行完Step4  由于是要运行在模拟中 然后直接执行Step7

3.在完成上面操作后

% cd ~

中执行

% emulator -kernel kernel-goldfish-xattr-2.6.29 -sysdir ~/tdroid/tdroid-4.3_r1/out/target/product/generic/ -system system.img -data  userdata.img  -ramdisk ~/tdroid/tdroid-4.3_r1/out/target/product/generic/ramdisk.img -sdcard ~/tdroid/tdroid-4.3_r1/out/target/product/generic/sdcard.img -skindir /home/rootkey/java/adt-bundle-linux-x86_64-20140321/sdk/platforms/android-19/skins -skin  WVGA800 -scale 0.7 -memory 2048 -partition-size 1024

启动模拟器 按官方的完成是没有sdcard.img的  直接网上搜索模拟器使用sdcard就行 http://blog.sina.com.cn/s/blog_66afc67b0100pu6j.html  把sdcard.img拷贝到上面命令使用的文件中就可以了

4.当模拟器启动完成后 启动TaintDroidNotify程序   安装360手机助手 就可以看到结果了

                      

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息