forked from opengapps/aosp_build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opengapps-packages.mk
298 lines (259 loc) · 7.28 KB
/
opengapps-packages.mk
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
include vendor/opengapps/build/core/definitions.mk
include vendor/opengapps/build/config.mk
include vendor/opengapps/build/opengapps-files.mk
ifneq ($(filter tvmini,$(TARGET_GAPPS_VARIANT)),)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/tvmini
else
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/pico
ifneq ($(filter 28,$(call get-allowed-api-levels)),)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/assistant/28
endif
endif
GAPPS_PRODUCT_PACKAGES += \
GoogleBackupTransport \
GoogleContactsSyncAdapter \
GoogleFeedback \
GoogleOneTimeInitializer \
GooglePartnerSetup \
PrebuiltGmsCore \
GoogleServicesFramework \
GoogleLoginService \
SetupWizard \
Phonesky \
GoogleCalendarSyncAdapter
TVGAPPS_PRODUCT_PACKAGES += \
ConfigUpdater \
GoogleBackupTransport \
GoogleContactsSyncAdapter \
GoogleServicesFramework \
PhoneskyKamikazeCanvas \
PrebuiltGmsCorePano
# TvMini
TVGAPPS_PRODUCT_PACKAGES += \
AtvRemoteService \
AtvWidget \
Backdrop \
Katniss \
LeanbackIme \
LeanbackLauncher \
SetupWraithPrebuilt \
TV
ifneq ($(filter 23,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
GoogleTTS \
GooglePackageInstaller
TVGAPPS_PRODUCT_PACKAGES += \
GooglePackageInstaller
endif
ifneq ($(filter 24,$(call get-allowed-api-levels)),)
TVGAPPS_PRODUCT_PACKAGES += \
GoogleExtServices \
GoogleExtShared \
RecommendationsService
endif
## in oreo (api level 26), installing PrebuiltGmsCoreInstantApps
## causes Play Store app-installs to get stuck on "Download
## pending...". Do not install on oreo and above.
ifeq ($(filter 26,$(call get-allowed-api-levels)),)
ifneq ($(filter 24,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
PrebuiltGmsCoreInstantApps
endif
endif
ifneq ($(filter 25,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
Turbo
endif
ifneq ($(filter 26,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
AndroidPlatformServices \
GmsCoreSetupPrebuilt \
AndroidMigratePrebuilt
TVGAPPS_PRODUCT_PACKAGES += \
TVLauncher \
TVRecommendations
endif
ifneq ($(filter 28,$(call get-allowed-api-levels)),)
TVGAPPS_PRODUCT_PACKAGES += \
GoogleCalendarSyncAdapter \
GooglePartnerSetup \
GoogleOneTimeInitializer
else
# Removed in 28
TVGAPPS_PRODUCT_PACKAGES += \
NoTouchAuthDelegate \
SecondScreenSetup \
SecondScreenSetupAuthBridge \
CanvasPackageInstaller
endif
ifneq ($(filter nano,$(TARGET_GAPPS_VARIANT)),) # require at least nano
GAPPS_PRODUCT_PACKAGES += \
libjni_latinimegoogle \
Velvet
ifneq ($(filter 28,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
DigitalWellbeing \
MarkupGoogle \
GoogleSoundPicker
endif
ifneq ($(filter micro,$(TARGET_GAPPS_VARIANT)),) # require at least micro
GAPPS_PRODUCT_PACKAGES += \
CalendarGooglePrebuilt \
PrebuiltExchange3Google \
PrebuiltGmail
ifneq ($(filter 26,$(call get-allowed-api-levels)),)
GAPPS_FORCE_PIXEL_LAUNCHER := true
else
GAPPS_PRODUCT_PACKAGES += \
GoogleNow
endif
ifeq ($(filter 23,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
GoogleTTS
endif
ifneq ($(filter mini,$(TARGET_GAPPS_VARIANT)),) # require at least mini
GAPPS_PRODUCT_PACKAGES += \
CalculatorGoogle \
PrebuiltDeskClockGoogle \
Hangouts \
Maps \
Photos \
YouTube
ifneq ($(filter full,$(TARGET_GAPPS_VARIANT)),) # require at least full
GAPPS_FORCE_BROWSER_OVERRIDES := true
GAPPS_PRODUCT_PACKAGES += \
Books \
EditorsDocs \
Drive \
FitnessPrebuilt \
PrebuiltKeep \
Videos \
Music2 \
Newsstand \
PlayGames \
EditorsSheets \
EditorsSlides \
talkback
ifneq ($(filter stock,$(TARGET_GAPPS_VARIANT)),) # require at least stock
GAPPS_FORCE_MMS_OVERRIDES := true
GAPPS_FORCE_WEBVIEW_OVERRIDES := true
GAPPS_PRODUCT_PACKAGES += \
AndroidAuto \
GoogleCamera \
GoogleContacts \
LatinImeGoogle \
StorageManagerGoogle \
TagGoogle \
GoogleVrCore
ifneq ($(filter 23,$(call get-allowed-api-levels)),)
GAPPS_FORCE_DIALER_OVERRIDES := true
endif
ifneq ($(filter 24,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
GooglePrintRecommendationService \
GoogleExtServices \
GoogleExtShared
endif
ifneq ($(filter super,$(TARGET_GAPPS_VARIANT)),)
GAPPS_PRODUCT_PACKAGES += \
Wallet \
DMAgent \
CarrierServices \
GoogleEarth \
GCS \
GoogleHindiIME \
GoogleJapaneseInput \
KoreanIME \
GooglePinyinIME \
Tycho \
Street \
TranslatePrebuilt \
GoogleZhuyinIME
ifneq ($(filter 28,$(call get-allowed-api-levels)),)
GAPPS_PRODUCT_PACKAGES += \
ActionsServices
endif
endif # end super
endif # end stock
endif # end full
endif # end mini
endif # end micro
endif # end nano
ifneq ($(filter tvstock,$(TARGET_GAPPS_VARIANT)),)
TVGAPPS_PRODUCT_PACKAGES += \
AndroidMediaShell \
talkback \
VideosPano \
PlayGamesPano \
YouTubeLeanback
endif # end tvstock
# This needs to be at the end of standard files, but before the GAPPS_FORCE_* options,
# since those also affect DEVICE_PACKAGE_OVERLAYS. We don't want to exclude a package
# that also has an overlay, since that will make us use the overlay but not have the
# package. This can cause issues.
ifneq ($(filter tvmini,$(TARGET_GAPPS_VARIANT)),)
GAPPS_FORCE_PIXEL_LAUNCHER := false
PRODUCT_PACKAGES += $(filter-out $(GAPPS_EXCLUDED_PACKAGES),$(TVGAPPS_PRODUCT_PACKAGES))
else
PRODUCT_PACKAGES += $(filter-out $(GAPPS_EXCLUDED_PACKAGES),$(GAPPS_PRODUCT_PACKAGES))
endif # end tvmini
ifeq ($(GAPPS_FORCE_WEBVIEW_OVERRIDES),true)
ifneq ($(filter 29,$(call get-allowed-api-levels)),)
# starting with Q, put the overlay in a product APK
PRODUCT_PACKAGES += GoogleWebViewOverlay
else ifneq ($(filter 24,$(call get-allowed-api-levels)),)
# starting with nougat, use a different overlay
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/webview/24
else
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/webview/21
endif
PRODUCT_PACKAGES += \
WebViewGoogle
endif
ifeq ($(GAPPS_FORCE_BROWSER_OVERRIDES),true)
ifneq ($(filter 23,$(call get-allowed-api-levels)),)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/browser
endif
PRODUCT_PACKAGES += \
Chrome
endif
ifneq ($(filter 23,$(call get-allowed-api-levels)),)
ifeq ($(GAPPS_FORCE_DIALER_OVERRIDES),true)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/dialer
PRODUCT_PACKAGES += \
GoogleDialer
endif
endif
ifeq ($(GAPPS_FORCE_MMS_OVERRIDES),true)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/mms
PRODUCT_PACKAGES += \
PrebuiltBugle
endif
ifeq ($(GAPPS_FORCE_PIXEL_LAUNCHER),true)
ifneq ($(filter 26,$(call get-allowed-api-levels)),)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/pixelicons/26
else ifneq ($(filter 25,$(call get-allowed-api-levels)),)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/pixelicons/25
endif
ifneq ($(filter 28,$(call get-allowed-api-levels)),)
DEVICE_PACKAGE_OVERLAYS += \
$(GAPPS_DEVICE_FILES_PATH)/overlay/pixellauncher/28
endif
ifneq ($(filter 25,$(call get-allowed-api-levels)),)
PRODUCT_PACKAGES += \
PixelLauncherIcons
endif
PRODUCT_PACKAGES += \
PixelLauncher \
Wallpapers
endif