This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
products:sbc:edge-2l:development:android:download-android-source-code [2025/11/26 02:24] gray created |
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:// | ||
| - | ``` | ||
| - | |||
| - | <tabbox Android 12> | ||
| - | ```shell | ||
| - | $ repo init -u https:// | ||
| - | ``` | ||
| </ | </ | ||
| 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:// | ||
| + | </ | ||
| 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: | ||
| </ | </ | ||
| - | 4. Run the following command to pull large files. Otherwise, compilation will report an [[https:// | + | 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:// | + | * [[https:// |
| - | * [[https:// | + | |
| 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/ | ||
| ``` | ``` | ||