forked from android-generic/vendor_ag-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvendorsetup.sh
80 lines (66 loc) · 1.88 KB
/
vendorsetup.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
rompath=$(pwd)
ag_vendor_path="ag"
function apply-x86-patches
{
vendor/${ag_vendor_path}/utils/autopatch.sh
}
function apply-x86-extras
{
vendor/${ag_vendor_path}/utils/ap_extras.sh
}
function apply-x86-kernel-patches()
{
vendor/${ag_vendor_path}/utils/ap_kernel.sh $1
}
function ag-menu()
{
if [ "$1" == "" ]; then
echo -e "You must specify a target type (pc, gsi, emu)"
elif [ "$1" == "gsi" ]; then
echo -e "You must wait for that target type to become available. Check repo for updates"
elif [ "$1" == "emu" ]; then
echo -e "You must wait for that target type to become available. Check repo for updates"
else
bash vendor/${ag_vendor_path}/ag-core/ag-menu.sh $1 $2 $3 $4
fi
}
function ag-menu-l()
{
if [ "$1" == "" ]; then
echo -e "You must specify a target type (pc, gsi, emu)"
elif [ "$1" == "gsi" ]; then
echo -e "You must wait for that target type to become available. Check repo for updates"
elif [ "$1" == "emu" ]; then
echo -e "You must wait for that target type to become available. Check repo for updates"
else
. vendor/${ag_vendor_path}/ag-core/ag-menu.sh $1 $2 $3 $4
fi
}
function manifest-backup
{
bash vendor/${ag_vendor_path}/scripts/manifest-backup/manifest-backup.sh
}
function get-cros-files-x86
{
echo "Setting up Proprietary environment for: $1"
lunch android_x86-userdebug
echo "Building proprietary tools... This might take a little..."
echo "Be prepared to enter root password in order to mount the cros images and unpack things"
cd vendor/google/chromeos-x86
./extract-files.sh
cd ..
cd ..
cd ..
}
function get-cros-files-x86_64
{
echo "Setting up Proprietary environment for: $1"
lunch android_x86_64-userdebug
echo "Building proprietary tools... This might take a little..."
echo "Be prepared to enter root password in order to mount the cros images and unpack things"
cd vendor/google/chromeos-x86
./extract-files.sh
cd ..
cd ..
cd ..
}