299 lines
7.2 KiB
Makefile
299 lines
7.2 KiB
Makefile
|
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
|
||
|
|
||
|
# SetupWizard 移除设置向导
|
||
|
# add google input
|
||
|
|
||
|
GAPPS_PRODUCT_PACKAGES += \
|
||
|
GoogleFeedback \
|
||
|
GoogleOneTimeInitializer \
|
||
|
GooglePartnerSetup \
|
||
|
PrebuiltGmsCore \
|
||
|
GoogleServicesFramework \
|
||
|
GoogleLoginService \
|
||
|
Phonesky \
|
||
|
GmsConfigOverlayCommon \
|
||
|
LatinImeGoogle
|
||
|
|
||
|
|
||
|
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 += \
|
||
|
GmsCoreSetupPrebuilt
|
||
|
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
|