Google原始刷机镜像
不同Android版本对应标记
源代码标记和 build
Google 的驱动程序
刷写设备
https://android.googlesource.com/platform/build/+/master/tools/docker
编译之前需下载制定型号的驱动
fastboot adb 工具下载
git config
-
-
global
user.email
"youremil.com"
git config
-
-
global
user.name
"yourname"
git config
-
-
global
user.email
"youremil.com"
git config
-
-
global
user.name
"yourname"
wget https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
aosp
-
monthly
/
aosp
-
latest.tar
tar xf aosp
-
latest.tar
cd
/
home
/
yourname
/
.
bin
curl https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
git
-
repo
-
o repo
chmod
+
x repo
export REPO_URL
=
'https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
export PATH
=
/
home
/
yourname
/
.
bin
:$PATH
source .bashrc
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
11.0
.
0_r46
repo sync
1.
修改.repo
/
manifests.git
/
config
2.
修改 url 为 (中科大镜像) git:
/
/
mirrors.ustc.edu.cn
/
aosp
/
platform
/
manifest
git branch
-
a
git checkout <分支>
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
4.0
.
1_r1
-
-
mirror
mkdir
-
p
/
usr
/
local
/
aosp
/
mirror
cd
/
usr
/
local
/
aosp
/
mirror
repo init
-
u https:
/
/
android.googlesource.com
/
mirror
/
manifest
-
-
mirror
repo sync
mkdir
-
p
/
usr
/
local
/
aosp
/
master
cd
/
usr
/
local
/
aosp
/
master
repo init
-
u
/
usr
/
local
/
aosp
/
mirror
/
platform
/
manifest.git
repo sync
wget https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
aosp
-
monthly
/
aosp
-
latest.tar
tar xf aosp
-
latest.tar
cd
/
home
/
yourname
/
.
bin
curl https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
git
-
repo
-
o repo
chmod
+
x repo
export REPO_URL
=
'https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
export PATH
=
/
home
/
yourname
/
.
bin
:$PATH
source .bashrc
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
11.0
.
0_r46
repo sync
1.
修改.repo
/
manifests.git
/
config
2.
修改 url 为 (中科大镜像) git:
/
/
mirrors.ustc.edu.cn
/
aosp
/
platform
/
manifest
git branch
-
a
git checkout <分支>
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
4.0
.
1_r1
-
-
mirror
mkdir
-
p
/
usr
/
local
/
aosp
/
mirror
cd
/
usr
/
local
/
aosp
/
mirror
repo init
-
u https:
/
/
android.googlesource.com
/
mirror
/
manifest
-
-
mirror
repo sync
mkdir
-
p
/
usr
/
local
/
aosp
/
master
cd
/
usr
/
local
/
aosp
/
master
repo init
-
u
/
usr
/
local
/
aosp
/
mirror
/
platform
/
manifest.git
repo sync
find .
-
name .git | xargs rm
-
fr
find .
-
name .git | xargs rm
-
fr
build ID |
标记 |
版本 |
支持的设备 |
安全补丁级别 |
RQ3A.211001.001 |
android-11.0.0_r46 |
Android11 |
Pixel 3、Pixel 3 XL、Pixel 3a、Pixel 3a XL、Pixel 4、Pixel 4 XL、Pixel 4a、Pixel 4a (5G)、Pixel 5 |
2021-10-01 |
echo
"==========start repo sync==="
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
6.0
.
1_r20
repo sync
-
j4
while
[ $?
=
1
]; do
echo “
=
=
=
=
=
=
sync failed, re
-
sync again
=
=
=
=
=
=
”
sleep
3
repo sync
-
j4
-
d
-
-
force
-
sync
-
-
no
-
clone
-
bundle
done
chmod a
+
x down.sh
.
/
down.sh
echo
"==========start repo sync==="
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
6.0
.
1_r20
repo sync
-
j4
while
[ $?
=
1
]; do
echo “
=
=
=
=
=
=
sync failed, re
-
sync again
=
=
=
=
=
=
”
sleep
3
repo sync
-
j4
-
d
-
-
force
-
sync
-
-
no
-
clone
-
bundle
done
chmod a
+
x down.sh
.
/
down.sh
sudo apt update && sudo apt install
-
y git
-
core gnupg flex bison build
-
essential
zip
curl zlib1g
-
dev gcc
-
multilib g
+
+
-
multilib libc6
-
dev
-
i386 libncurses5 lib32ncurses5
-
dev x11proto
-
core
-
dev libx11
-
dev lib32z1
-
dev libgl1
-
mesa
-
dev libxml2
-
utils xsltproc unzip fontconfig python3.
7
openjdk
-
8
-
jdk rsync libssl
-
dev
sudo apt update && sudo apt install
-
y git
-
core gnupg flex bison build
-
essential
zip
curl zlib1g
-
dev gcc
-
multilib g
+
+
-
multilib libc6
-
dev
-
i386 libncurses5 lib32ncurses5
-
dev x11proto
-
core
-
dev libx11
-
dev lib32z1
-
dev libgl1
-
mesa
-
dev libxml2
-
utils xsltproc unzip fontconfig python3.
7
openjdk
-
8
-
jdk rsync libssl
-
dev
apt update \
&& apt install
-
y git
-
core gnupg flex bison build
-
essential \
zip
curl zlib1g
-
dev gcc
-
multilib g
+
+
-
multilib libc6
-
dev
-
i386 \
lib32ncurses5
-
dev x11proto
-
core
-
dev libx11
-
dev lib32z1
-
dev \
libgl1
-
mesa
-
dev libxml2
-
utils xsltproc unzip fontconfig \
openjdk
-
8
-
jre
-
headless openjdk
-
8
-
jdk
-
headless python2.
7
\
libncurses5
sed
-
i
's/TLSv1.1,//'
/
etc
/
java
-
8
-
openjdk
/
security
/
java.security \
&& sed
-
i
's/TLSv1,//'
/
etc
/
java
-
8
-
openjdk
/
security
/
java.security \
&& ln
-
s
/
usr
/
bin
/
python2.
7
/
usr
/
bin
/
python
apt update \
&& apt install
-
y git
-
core gnupg flex bison build
-
essential \
zip
curl zlib1g
-
dev gcc
-
multilib g
+
+
-
multilib libc6
-
dev
-
i386 \
lib32ncurses5
-
dev x11proto
-
core
-
dev libx11
-
dev lib32z1
-
dev \
libgl1
-
mesa
-
dev libxml2
-
utils xsltproc unzip fontconfig \
openjdk
-
8
-
jre
-
headless openjdk
-
8
-
jdk
-
headless python2.
7
\
libncurses5
sed
-
i
's/TLSv1.1,//'
/
etc
/
java
-
8
-
openjdk
/
security
/
java.security \
&& sed
-
i
's/TLSv1,//'
/
etc
/
java
-
8
-
openjdk
/
security
/
java.security \
&& ln
-
s
/
usr
/
bin
/
python2.
7
/
usr
/
bin
/
python
FROM ubuntu:
18.04
ARG userid
ARG groupid
ARG username
RUN apt update && apt install
-
y git
-
core gnupg flex bison build
-
essential
zip
curl zlib1g
-
dev gcc
-
multilib g
+
+
-
multilib libc6
-
dev
-
i386 libncurses5 lib32ncurses5
-
dev x11proto
-
core
-
dev libx11
-
dev lib32z1
-
dev libgl1
-
mesa
-
dev libxml2
-
utils xsltproc unzip fontconfig python3.
7
openjdk
-
8
-
jdk rsync libssl
-
dev
RUN groupadd
-
g $groupid $username \
&& useradd
-
m
-
u $userid
-
g $groupid $username \
&& echo $username >
/
root
/
username \
&& ln
-
s
/
usr
/
bin
/
python3.
7
/
usr
/
bin
/
python
ENV HOME
=
/
home
/
$username
ENV USER
=
$username
ENTRYPOINT chroot
-
-
userspec
=
$(cat
/
root
/
username):$(cat
/
root
/
username)
/
/
bin
/
bash
-
i
FROM ubuntu:
18.04
ARG userid
ARG groupid
ARG username
RUN apt update && apt install
-
y git
-
core gnupg flex bison build
-
essential
zip
curl zlib1g
-
dev gcc
-
multilib g
+
+
-
multilib libc6
-
dev
-
i386 libncurses5 lib32ncurses5
-
dev x11proto
-
core
-
dev libx11
-
dev lib32z1
-
dev libgl1
-
mesa
-
dev libxml2
-
utils xsltproc unzip fontconfig python3.
7
openjdk
-
8
-
jdk rsync libssl
-
dev
RUN groupadd
-
g $groupid $username \
&& useradd
-
m
-
u $userid
-
g $groupid $username \
&& echo $username >
/
root
/
username \
&& ln
-
s
/
usr
/
bin
/
python3.
7
/
usr
/
bin
/
python
ENV HOME
=
/
home
/
$username
ENV USER
=
$username
ENTRYPOINT chroot
-
-
userspec
=
$(cat
/
root
/
username):$(cat
/
root
/
username)
/
/
bin
/
bash
-
i
sudo docker build
-
-
build
-
arg userid
=
$(
id
-
u)
-
-
build
-
arg groupid
=
$(
id
-
g)
-
-
build
-
arg username
=
$(
id
-
un)
-
t aospbuild:android11 .
sudo docker build
-
-
build
-
arg userid
=
$(
id
-
u)
-
-
build
-
arg groupid
=
$(
id
-
g)
-
-
build
-
arg username
=
$(
id
-
un)
-
t aospbuild:android11 .
-
-
restart always
-
-
privileged
docker run
-
it
-
v
/
mnt
/
android
/
android11:
/
android11:rw
-
-
privileged
-
-
restart always
-
-
name aospbuild aospbuild:android11
/
bin
/
bash
chroot
-
-
userspec
=
$(cat
/
root
/
username):$(cat
/
root
/
username)
/
/
bin
/
bash
-
i
-
-
restart always
-
-
privileged
docker run
-
it
-
v
/
mnt
/
android
/
android11:
/
android11:rw
-
-
privileged
-
-
restart always
-
-
name aospbuild aospbuild:android11
/
bin
/
bash
chroot
-
-
userspec
=
$(cat
/
root
/
username):$(cat
/
root
/
username)
/
/
bin
/
bash
-
i
FROM ubuntu:
14.04
ARG userid
ARG groupid
ARG username
RUN apt
-
get update && apt
-
get install
-
y 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 python openjdk
-
7
-
jdk rsync
RUN curl
-
o
/
usr
/
local
/
bin
/
repo https:
/
/
storage.googleapis.com
/
git
-
repo
-
downloads
/
repo \
&& echo
"d06f33115aea44e583c8669375b35aad397176a411de3461897444d247b6c220 /usr/local/bin/repo"
| sha256sum
-
-
strict
-
c
-
\
&& chmod a
+
x
/
usr
/
local
/
bin
/
repo
RUN groupadd
-
g $groupid $username \
&& useradd
-
m
-
u $userid
-
g $groupid $username \
&& echo $username >
/
root
/
username \
&& echo
"export USER="
$username >>
/
home
/
$username
/
.gitconfig
COPY gitconfig
/
home
/
$username
/
.gitconfig
RUN chown $userid:$groupid
/
home
/
$username
/
.gitconfig
ENV HOME
=
/
home
/
$username
ENV USER
=
$username
ENTRYPOINT chroot
-
-
userspec
=
$(cat
/
root
/
username):$(cat
/
root
/
username)
/
/
bin
/
bash
-
i
FROM ubuntu:
14.04
ARG userid
ARG groupid
ARG username
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
最后于 2022-10-26 19:27
被iyue_t编辑
,原因: