Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 2W

310 bytes added, 17:02, 27 September 2023
Download the source code of Android 12
<li><p>First download the compressed package of the Android 12 source code and the compressed package of the files modified by Orange Pi Zero2w from Google Cloud Drive</p>
<ol style="list-style-type: lower-alpha;">
<li>Google Cloud Drive</li></ol></li></ol>
[[File:zero2w-img387.png]]
</ol></li></ol>
<ol start="2" style="list-style-type: decimal;">
<li>After downloading the compressed package of Android 12 source code, please check whether the MD5 checksum is correct. If it is incorrect, please download the source code again. Here's how to check the MD5 checksum:</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~$ '''md5sum -c H618-Android12-Src.tar.gz.md5sum'''
H618-Android12-Src.tar.gzaa: '''<span style="color:#FF0000">OK</span>'''
H618-Android12-Src.tar.gzab: '''<span style="color:#FF0000">OK</span>'''
......
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then you need to merge multiple compressed files into one, and then extract the Android source code. The command looks like this:</li></ol>{| class="wikitable" style="width:800px;" |-| test@test:~$ '''cat H618-Android12-Src.tar.gzagz<span style="color:#FF0000">a</span>* &gt; H618-Android12-Src.tar.gz'''
test@test:~$ '''tar -xvf H618-Android12-Src.tar.gz'''
|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then unzip the compressed package of the files modified by Orange Pi Zero2w</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~$ '''tar zxf opizero2w_android12_patches.tar.gz'''
'''opizero2w_android12_patches''' opizero2w_android12_patches.tar.gz
|}</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Then copy the files modified by Orange Pi Zero2w to the Android source code</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~$ '''cp -rf opizero2w_android12_patches/* H618-Android12-Src/'''
|}
</ol>
<span id="compile-the-source-code-of-android-12"></span>
<span id="compile-the-source-code-of-android-12"></span>
== Compile the source code of Android 12 ==