环境:
Win7:8G内存
vmware:vm给ubuntu分配4G内存80G空间
参考视频:
https://www.bilibili.com/video/BV15t411R78o
ubuntu14.04下载地址:
ubuntu-14.04.1-desktop-amd64.iso 下载:
https://pan.baidu.com/s/1jGHxJKU#list/path=%2F&parentPath=%2Fsharelink338936759-158693311665530
ubuntu14.04安装:
ubuntu14.04安装:
参考:韦东山Android系统视频使用手册20160303.pdf
如下图,选中“/dev/sda”,它是 20G 的虚拟硬盘,然后点击“New Partition Table…”,这是
为了在它上面创建分区:
ubuntu14.04安装SSH服务:
sudo apt-get update
sudo apt-get install openssh-server
openssh-server由于未满足依赖性而无法正常工作:
libck-connector0_0.4.5-3.1ubuntu2_amd64.deb
sudo dpkg -i libck-connector0_0.4.5-3.1ubuntu2_amd64.deb
配置ssh服务:
sudo gedit /etc/ssh/sshd_config
#PermitRootLogin without-password
PermitRootLogin yes
重启ssh:
sudo service ssh restart
ubuntu14.04阿里源
czl@ubuntu:~$ lsb_release -c
Codename: precise
vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade
Android源码:
https://pan.baidu.com/s/1ngsZs?errmsg=Auth+Login+Sucess&errno=0&ssnerror=0&#list/path=%2FAndroid%E6%BA%90%E7%A0%81&parentPath=%2F
https://pan.baidu.com/s/1eQSaUqQ#list/path=%2Fsharelink1510979911-342382386067535%2Fandroid%E6%BA%90%E7%A0%81&parentPath=%2Fsharelink1510979911-342382386067535
搭建编译环境:
https://source.android.com/source/initializing
安装所需的程序包 (Ubuntu 14.04)
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip
解压
7zr x android-5.0.2_r1.7z
sudo apt-get install openjdk-7-jdk openjdk-7-jre
. build/envsetup.sh
lunch
sudo make -j4
emulator
Ubuntu 14.04环境编译android源码android-5.0.2_r1.7z