Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge-2l:development:android:download-android-source-code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:edge-2l:development:android:download-android-source-code [2025/11/27 02:50]
gray ↷ Page moved from local:users:start:development:android:download-android-source-code to local:users:gray:products:sbc:edge-2l:development:android:download-android-source-code
products:sbc:edge-2l:development:android:download-android-source-code [2026/05/11 01:58] (current)
nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:development:android:download-android-source-code to products:sbc:edge-2l:development:android:download-android-source-code
Line 9: Line 9:
  
 ===== Download from github ===== ===== Download from github =====
- 
-Install git-lfs tool to download Android 12.0 SDK 
- 
-```shell 
-$ sudo apt install git-lfs 
-``` 
  
 1. Create an empty directory to hold your working files. 1. Create an empty directory to hold your working files.
Line 30: Line 24:
 ``` ```
  
-<tabbox Android 13> 
-```shell 
-$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-edge-2l-android13 
-``` 
- 
-<tabbox Android 12> 
-```shell 
-$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-edge-2l-android12 
-``` 
 </tabbox> </tabbox>
  
Line 44: Line 29:
  
 ```shell ```shell
-$ repo sync -c -j4+$ repo sync
 ``` ```
 +<WRAP important> 
 +Do **NOT** add the `-j` option when running `repo sync`. The manifest file for this project includes a remote configuration for `gitkhadas` (https://git.khadas.com/) with `sync-j="1"`. Using `-j` with a higher concurrency value will override this restriction and likely cause sync failures. 
 +</WRAP>
  
 The initial sync operation may take an hour or more to complete. The initial sync operation may take an hour or more to complete.
Line 52: Line 40:
 You might need to run above command repeatly if it fails halfway. Or you can try with this script instead: You might need to run above command repeatly if it fails halfway. Or you can try with this script instead:
 ```bash sync_helper.sh ```bash sync_helper.sh
-repo sync -c -j4+repo sync
 while [ $? = 1 ]; do while [ $? = 1 ]; do
  echo "Sync failed, repeat again:"  echo "Sync failed, repeat again:"
- repo sync -c -j4+ repo sync
 done done
 ``` ```
Line 63: Line 51:
 </WRAP> </WRAP>
  
-4. Run the following command to pull large files. Otherwise, compilation will report an [[https://forum.khadas.com/t/cannot-build-an-android/15886|error]]. +4. Begin a new branch for development.
- +
-```shell +
-$ repo forall -c 'git lfs pull' +
-``` +
- +
-5. Begin a new branch for development.+
  
 ```shell ```shell
Line 80: Line 62:
 1. Download the android source code base package from follow links.\\ 1. Download the android source code base package from follow links.\\
  
-* [[https://pan.baidu.com/s/1_1SuWgORsb1K1EdmOtVUag?pwd=8btx|Edge-2L android13 source code base package]]\\ +* [[https://pan.baidu.com/s/1GdGPUoUAM2kL3PpmKpqr1Q?pwd=vmh5|Edge-2L android14 source code base package]]\\
-* [[https://pan.baidu.com/s/1LamPaQZ94PQIYHl_8YPSnw?pwd=fm3r|Edge-2L android14 source code base package]]\\+
  
 2. Use the following command to unzip the base package and synchronize the code. 2. Use the following command to unzip the base package and synchronize the code.
 ```shell ```shell
-$ cat edge-2l-androidXX-XXXXXXXX.tar.gza* | tar -xzv+$ cat edge-2l-android14-sdk.tar.gz_* | tar -xzv
 $ .repo/repo/repo sync -l $ .repo/repo/repo sync -l
-$ .repo/repo/repo forall -c 'git lfs pull' 
 ``` ```
  
Last modified: 2025/11/27 02:50 by gray