<manifest>  
  <remote name="github" fetch="git://github.com"/>  
  <remove-project name="platform/dalvik"/>  
  <project path="dalvik" remote="github" name="TaintDroid/android_platform_dalvik" revision="taintdroid-4.3_r1"/>  
  <remove-project name="platform/libcore"/>  
  <project path="libcore" remote="github" name="TaintDroid/android_platform_libcore" revision="taintdroid-4.3_r1"/>  
  <remove-project name="platform/frameworks/base"/>  
  <project path="frameworks/base" remote="github" name="TaintDroid/android_platform_frameworks_base" revision="taintdroid-4.3_r1"/>  
  <remove-project name="platform/frameworks/native"/>  
  <project path="frameworks/native" remote="github" name="TaintDroid/android_platform_frameworks_native" revision="taintdroid-4.3_r1"/>  
  <remove-project name="platform/frameworks/opt/telephony"/>  
  <project path="frameworks/opt/telephony" remote="github" name="TaintDroid/android_platform_frameworks_opt_telephony" revision="taintdroid-4.3_r1"/>  
  <remove-project name="platform/system/vold"/>  
  <project path="system/vold" remote="github" name="TaintDroid/android_platform_system_vold" revision="taintdroid-4.3_r1"/>  
  <remove-project name="platform/system/core"/>  
  <project path="system/core" remote="github" name="TaintDroid/android_platform_system_core" revision="taintdroid-4.3_r1"/>  
  <remove-project name="device/samsung/manta"/>  
  <project path="device/samsung/manta" remote="github" name="TaintDroid/device_samsung_manta" revision="taintdroid-4.3_r1"/>  
  <remove-project name="device/samsung/tuna"/>  
  <project path="device/samsung/tuna" remote="github" name="TaintDroid/android_device_samsung_tuna" revision="taintdroid-4.3_r1"/>  
  <project path="packages/apps/TaintDroidNotify" remote="github" name="TaintDroid/android_platform_packages_apps_TaintDroidNotify"  
      revision="taintdroid-4.3_r1"/>  
</manifest>  


根据以上方法总是出错误,并提示我没有platform/dalvik项目,我的Ubuntu上确实已经存在dalvik,更改目录也还是提示错误,索性我就自己下载替换Android的源码。

先解释一下:


<remove-project name="platform/dalvik"/>  
  <project path="dalvik" remote="github" name="TaintDroid/android_platform_dalvik" revision="taintdroid-4.3_r1"/>


表达的意思是用taintdroid-4.3_r1的android_platform_dalvik代替已有Android源码中dalvik中的内容。其他含义依次轮推,注意最后不要忘记下载taintdroidnotify。

taintdroid-4.3_r1下载 

git clone https://github.com/TaintDroid/android_platform_dalvik.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/android_platform_libcore.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/android_platform_frameworks_base.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/android_platform_frameworks_native.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/android_platform_frameworks_opt_telephony.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/android_platform_system_vold.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/android_platform_system_core.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/device_samsung_manta.git -b taintdroid-4.3_r1
git clone https://github.com/TaintDroid/android_device_samsung_tuna.git -b taintdroid-4.3_r1

git clone https://github.com/TaintDroid/android_platform_packages_apps_TaintDroidNotify.git -b taintdroid-4.3_r1


一条一条命令输入,还需要等待每个命令完成,很消耗个人时间,所以建议写一个sh文件,把命令放入,直接执行,自己就可以休息休息了。这样可能会问怎么建立sh可执行文件呢,为了方便大家,我在讲述一下ubuntu环境下如何建立可执行文件参考:http://blog.csdn.net/littlle_yan/article/details/78844286

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐