1. 安装AOSP编译工具
sudo apt install git-core
sudo apt install gnupg
sudo apt install flex
sudo apt install bison
sudo apt install gperf
sudo apt install build-essential
sudo apt install curl
sudo apt install libc6-dev
sudo apt install libssl-dev
sudo apt install libncurses5-dev:i386
sudo apt install libxml2-utils
sudo apt install zlib1g-dev:i386
sudo apt install libx11-dev:i386
sudo apt install libreadline6-dev:i386
sudo apt install libgl1-mesa-dev
sudo apt install g++-multilib
sudo apt install tofrodos
sudo apt install python-markdown
sudo apt install python-mako
sudo apt install x11proto-core-dev
sudo apt install xsltproc
sudo apt install dpkg-dev
sudo apt install ccache
2. 安装jdk8
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME
export PATH
3. 使用jack-server
停止 jack-server
./prebuilts/sdk/tools/jack-admin kill-server
卸载 jack-server
./prebuilts/sdk/tools/jack-admin uninstall-server
启动 jack-server
./prebuilts/sdk/tools/jack-admin start-server
4. 配置samba服务器
安装samba服务 apt install samba
添加samba用户 smbpasswd -a 用户名
重启samba服务 service smbd restart
建立samba共享目录
【work_eara】
path=/home/user/work_eara
available=yes
browseable=yes
public=yes
writable=yes
guest ok=no
create mask=0644