-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-paranoidandroid.sh
executable file
·136 lines (98 loc) · 3.14 KB
/
build-paranoidandroid.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Android Compiling Script
#
# This script automates the process of compiling android
# operating system.
#
# Copyright (C) 2014 Shubhang Rathore
#
# This script is specifically for
# Paranoid Android Kitkat ROM
# Clear screen
clear
# Patches
# Put the *.patch or *.diff file in the base folder of each indivisual repo
# where the patches need to applied
echo -e ""
echo -e "#######################################"
echo -e "# #"
echo -e "# APPLYING PATCHES #"
echo -e "# #"
echo -e "#######################################"
echo -e ""
echo -e ""
echo -e "#######################################"
echo -e "# #"
echo -e "# PATCHING BLUETOOTH #"
echo -e "# #"
echo -e "#######################################"
echo -e ""
cd hardware/broadcom/libbt/
git checkout .
patch -p1 < hardware_broadcom_libbt.patch
echo -e ""
echo -e "#######################################"
echo -e "# #"
echo -e "# FIXING HWCOMPOSER ISSUES #"
echo -e "# #"
echo -e "#######################################"
echo -e ""
cd ../../../
cd frameworks/native/
git checkout .
patch -p1 < frameworks_native.patch
echo -e ""
echo -e "#######################################"
echo -e "# #"
echo -e "# FIXING A/V ISSUES #"
echo -e "# #"
echo -e "#######################################"
echo -e ""
cd ../av/
git checkout .
patch -p1 < frameworks_av.patch
echo -e ""
echo -e "#######################################"
echo -e "# #"
echo -e "# PATCHING CHROMIUM #"
echo -e "# #"
echo -e "#######################################"
echo -e ""
cd ../../
cd external/chromium_org/
git checkout .
patch -p1 < external_chromium_org.patch
cd ../../
# echo -e ""
# echo -e ""
# echo -e "Enabling -O3 Optimization flags and Compiling with linaro..."
# echo -e ""
# echo -e ""
# cd build/
# git checkout .
# patch -p1 < enableo3optimization.diff
# patch -p1 < enablelinaro.diff
# cd ../
# Review the aove patch merges before continuing.
# If any errors, resolve them before moving ahead with the
# compilation of the ROM.
echo -e ""
echo -e "#######################################"
echo -e "# #"
echo -e "# PATCHING COMPLETE #"
echo -e "# #"
echo -e "# REVIEW & CHECK FOR ERRORS #"
echo -e "# #"
echo -e "#######################################"
echo -e ""
echo -e ""
echo -e "#######################################"
echo -e "# #"
echo -e "# PRESS ENTER TO CONTINUE #"
echo -e "# #"
echo -e "#######################################"
echo -e ""
read -p
echo -e ""
# Running the Paranoid Android script
# (replace 'i9082' with your own device)
./rom-build.sh i9082