Mac os Android 源码开发环境搭建

介绍都在https://source.android.com/source/initializing.html

1、创建image并mount

如述OS X runs on a case-preserving but case-insensitive filesystem,所以需要“Creating a case-sensitive disk image”,如下:

hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
vim ~/.bash_profile,然后输入:
# mount the android file image
function mountAndroid { hdiutil attach ~/android.dmg -mountpoint /Volumes/android; }
需要的时候执行 mountAndroid就可以了

MacPorts: https://distfiles.macports.org/MacPorts/ MacPorts-2.3.2-10.9-Mavericks.pkg

你可能感兴趣的:(android)