This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:edge2:development:android:download-android-source-code [2022/09/07 09:04] goenjoy |
products:sbc:edge2:development:android:download-android-source-code [2023/12/26 21:50] (current) goenjoy |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
+ | |||
====== Edge2 Download Android Source Code ====== | ====== Edge2 Download Android Source Code ====== | ||
Line 7: | Line 10: | ||
===== Get Source Code ===== | ===== Get Source Code ===== | ||
- | 1. Create an empty directory to hold your working files: | + | 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. | ||
```shell | ```shell | ||
Line 14: | Line 23: | ||
``` | ``` | ||
- | 2. Run '' | + | 2. Run '' |
- | * Android | + | < |
+ | ```shell | ||
+ | $ repo init -u https:// | ||
+ | ``` | ||
+ | |||
+ | <tabbox Android 12> | ||
+ | ```shell | ||
$ repo init -u https:// | $ repo init -u https:// | ||
``` | ``` | ||
+ | </ | ||
- | 3. Run '' | + | 3. Run '' |
```shell | ```shell | ||
Line 43: | Line 59: | ||
</ | </ | ||
- | 4. Based on different unbutu versions, the following operations may be required to pull large files(Otherwise, | + | 4. Go to the following |
- | You need to go to the following | + | |
+ | <tabbox Android 13> | ||
+ | |||
+ | ```shell | ||
+ | external/ | ||
+ | device/ | ||
+ | ``` | ||
+ | ```shell | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | Git LFS: (4 of 4 files) 208.97 MB / 208.97 MB | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | Git LFS: (1 of 1 files) 211.07 MB / 211.07 MB | ||
+ | ``` | ||
+ | |||
+ | <tabbox Android 12> | ||
```shell | ```shell | ||
external/ | external/ | ||
prebuilts/ | prebuilts/ | ||
- | system/core | ||
device/ | device/ | ||
``` | ``` | ||
```shell | ```shell | ||
- | xxx@server:/users/edge2$ cd external/ | + | /users/Edge2$ cd external/ |
- | xxx@server:/users/edge2/ | + | /users/Edge2/ |
- | Git LFS: (6 of 6 files) | + | / |
- | xxx@server:/users/edge2/ | + | Git LFS: (4 of 4 files) |
- | /users/edge2 | + | /users/Edge2/ |
- | xxx@server:/users/vim4$ cd prebuilts/ | + | /users/Edge2 |
- | xxx@server:/users/vim4/ | + | /users/Edge2$ cd prebuilts/ |
- | xxx@server:/users/vim4/ | + | /users/Edge2/ |
- | Git LFS: (2 of 2 files) | + | Git LFS: (3 of 3 files) 936.69 MB / 936.69 MB |
- | 。。。... | + | /users/Edge2/ |
+ | / | ||
+ | / | ||
+ | / | ||
+ | Git LFS: (1 of 1 files) | ||
``` | ``` | ||
+ | </ | ||
- | 5. Begin a new branch for development: | + | 5. Begin a new branch for development. |
```shell | ```shell |