admin 管理员组

文章数量: 887032


2023年12月25日发(作者:min和if函数的组合使用)

1. 首先,到

/p/msysgit/downloads/list

下载,下载完成后安装Git。

2. Android代码仓库的地址

访问该地址。

可以看到Android项目中,所有的包的列表。

单个包源码的下载方式:

创建目录,运行Git,在Git提供的shell,切换路径到你刚才创建的目录下(cd命令),然后运行下表命令(以为例)

git clone git:///kernel/

3.在linux下可以使用repo批量下载,可惜的是repo没有windows版本。

4. windows直可以使用批量脚本。脚本文本如下,持贝以下字符

一个文本文件中,命名为:,将该文本保存到用来下载源码的目录中。运行Git,在Git提供的shell,切换路径到你刚才创建的目录下(cd命令),运行./

#Create by CreatAutoGetSh

mkdir kernel

cd kernel

git clone git:///kernel/

git clone git:///kernel/

git clone git:///kernel/

git clone git:///kernel/

cd ..

mkdir platform

cd platform

git clone git:///platform/

mkdir bootable

cd bootable

mkdir bootloader

cd bootloader

git clone

git:///platform/bootable/bootloader/

cd ..

git

git:///platform/bootable/

git clone git:///platform/bootable/

cd ..

mkdir bootloader

cd bootloader

git clone git:///platform/bootloader/

cd ..

git clone git:///platform/

git clone git:///platform/

git clone git:///platform/

mkdir external

cd external

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git

git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

clone

clone

git clone git:///platform/external/

git clone git:///platform/external/

git

git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git

git:///platform/external/

git clone git:///platform/external/

git

git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git

git:///platform/external/fsck_

clone

clone

clone

clone

git clone git:///platform/external/

git

git:///platform/external/

git clone git:///platform/external/

git

git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

clone

clone

git clone git:///platform/external/

git clone git:///platform/external/

git

git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

clone

git clone

git:///platform/external/wpa_

git clone git:///platform/external/

git clone git:///platform/external/

git clone git:///platform/external/

cd ..

mkdir frameworks

cd frameworks

git clone git:///platform/frameworks/

mkdir opt

cd opt

git clone

git:///platform/frameworks/opt/

git clone

git:///platform/frameworks/opt/

git clone

git:///platform/frameworks/opt/

cd ..

mkdir policies

cd policies

git clone

git:///platform/frameworks/policies/

cd ..

cd ..

mkdir hardware

cd hardware

git clone

git:///platform/hardware/alsa_

git clone

git:///platform/hardware/

git clone

git:///platform/hardware/libhardware_

git clone git:///platform/hardware/

git clone git:///platform/hardware/

cd ..

git clone git:///platform/

mkdir packages

cd packages

mkdir apps

cd apps

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git

git:///platform/packages/apps/

git clone

clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git

git:///platform/packages/apps/

git

git:///platform/packages/apps/

git

clone

clone

clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

git

git:///platform/packages/apps/

git

git:///platform/packages/apps/

git clone

clone

clone

git:///platform/packages/apps/

git clone

git:///platform/packages/apps/

cd ..

mkdir inputmethods

cd inputmethods

git clone

git:///platform/packages/inputmethods/

git clone

git:///platform/packages/inputmethods/

git clone

git:///platform/packages/inputmethods/

cd ..

mkdir providers

cd providers

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/MediaPro

git clone

git:///platform/packages/providers/

git clone

git:///platform/packages/providers/

cd ..

cd ..

git clone git:///platform/

git clone git:///platform/

mkdir system

cd system

git clone git:///platform/system/

git clone git:///platform/system/

git clone git:///platform/system/

mkdir wlan

cd wlan

git clone

git:///platform/system/wlan/

git clone git:///platform/system/wlan/

cd ..

cd ..

mkdir vendor

cd vendor

mkdir asus

cd asus

git clone

git:///platform/vendor/asus/eee_

cd ..

mkdir csr

cd csr

git clone

git:///platform/vendor/csr/

git clone

git:///platform/vendor/csr/

cd ..

mkdir htc

cd htc

git clone

git:///platform/vendor/htc/

cd ..

mkdir qcom

cd qcom

git clone git:///platform/vendor/qcom/

cd ..

cd ..

cd ..

mkdir tools

cd tools

git clone

git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

git clone git:///tools/

mkdir test

cd test

git clone git:///tools/test/

git clone git:///tools/test/

5. Android的代码库结构改变后,以上脚本将不能适应改变后的结构。

解决办法:下载自动生产脚本。

下载地址:

/source/1543313


本文标签: 下载 脚本 目录 使用