编译讯为android7.1注意事项

  1. 安装 ubuntu 14.04.05 版本:ubuntu-14.04.05-desktop-amd64.iso

  2. 修改 root 密码
    set passwd root

    sudo passwd

  3. 设置系统中,数据源为阿里云
    ``

  4. 安装 openjdk1.8

1
2
3
4
5
6
7
8
9
10
apt-get install device-tree-compiler
add-apt-repository ppa:openjdk-r/ppa
apt-get update
apt-get install openjdk-8-jdk

在多个 JDK 版本中切换 JDK:
update-alternatives --config java
update-alternatives --config javac
update-alternatives --config javadoc

  1. 安装基础包
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash

####################################################################
# Warning:
# Ubuntu 12.04.2 introduced a new X stack that isn't compatible with
# with the old glx packages.

# ------------------------------------------------------------------
# 12.04 --> 12.04.2 (*-lts-quantal)
# ------------------------------------------------------------------
# libgl1-mesa-glx:i386 --> libgl1-mesa-glx-lts-quantal:i386
# libgl1-mesa-dev --> libgl1-mesa-dev-lts-quantal
# ------------------------------------------------------------------
#
# DON'T install libgl1-mesa-glx:i386 on 12.04.2, else it will *BREAK*
# your system.
####################################################################

# Execute an action
FA_DoExec() {
echo "==> Executing: '${@}'"
eval $@ || exit $?
}

# Ubuntu 12.04.2 LTS
FA_DoExec apt-get install \
git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 \
libgl1-mesa-glx-lts-quantal:i386 libgl1-mesa-dev-lts-quantal \
g++-multilib mingw32 tofrodos lib32ncurses5-dev \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386


if [ ! -h /usr/lib/i386-linux-gnu/libGL.so ]; then
FA_DoExec ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 \
/usr/lib/i386-linux-gnu/libGL.so
fi

# Development support
FA_DoExec apt-get install \
vim dos2unix minicom gawk

  1. 解压 android7.1 代码到/home/android7.1
1
2
mkdir android7.1
tar -xvf 4418-6818-android7.1-20200811.tar.gz
  1. 根据主板芯片类型,修改(内存、显示屏)配置《4418-6818-Android7.1 编译手册.pdf》

  2. Ensure Jack server is installed and started

1
2
Remove TLSv1, TLSv1.1 from jdk.tls.disabledAlgorithms in /etc/java-8-openjdk/security/java.security file
Restart the jack server: cd /prebuilts/sdk/tools/ ./jack-admin kill-server ./jack-admin start-server

2.

发布于

2022-03-19

更新于

2023-08-18

许可协议

评论