forked from shakalaca/adb-win64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get-sources.sh
executable file
·39 lines (35 loc) · 1.29 KB
/
get-sources.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# DEPENDENCIES
# -------------------------
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar -xvzf openssl-1.0.2j.tar.gz
# CONFIG
# -------------------------
# Branch to checkout from Android source code repo
branch=android-7.1.2_r33
# DOWNLOAD necessary files
# -------------------------
echo "\n>> >>> ADB for ARM <<< \n"
echo "\n>> Downloading necessay files ($branch branch)\n"
mkdir android-adb
cd android-adb
mkdir system
cd system
git clone -b $branch https://android.googlesource.com/platform/system/core
patch -p1 -d core < ../../system_core.patch
git clone -b $branch https://android.googlesource.com/platform/system/extras
cd ..
mkdir external
cd external
git clone -b $branch https://android.googlesource.com/platform/external/zlib
git clone -b $branch https://android.googlesource.com/platform/external/zopfli/
git clone -b $branch https://android.googlesource.com/platform/external/safe-iop/
git clone -b $branch https://android.googlesource.com/platform/external/gtest/
cd ..
mkdir platform
cd platform
git clone -b $branch https://android.googlesource.com/platform/development/
git clone -b $branch https://android.googlesource.com/platform/build/
mkdir frameworks
cd frameworks
git clone -b $branch https://android.googlesource.com/platform/frameworks/base/