platform_vendor_tequila/config/common.mk

212 lines
6.1 KiB
Makefile
Raw Normal View History

# Allow vendor/extra to override any property by setting it first
$(call inherit-product-if-exists, vendor/extra/product.mk)
2024-05-25 06:08:27 +02:00
PRODUCT_BRAND ?= tequilaOS
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
# Bootanimation
PRODUCT_COPY_FILES += \
vendor/tequila/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.com.google.clientidbase=android-google
else
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
endif
ifeq ($(TARGET_BUILD_VARIANT),eng)
# Disable ADB authentication
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0
else
# Enable ADB authentication
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1
# Disable extra StrictMode features on all non-engineering builds
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.strictmode.disable=true
endif
Modular backuptool.sh. Executes backup and restore methods defined in arbitrary /system/addon.d/*.sh scripts. Tips & Tricks ============= * 50-cm.sh contains only a reference implementation. You may customize the methods however you wish. For example, 20-foobar.sh pre-backup can use a loop with conditionals to generate a dynamic backup list in /tmp/foobar_file_list which is later printed by list_files() so the backup method will act on those files. * Optional methods pre-backup, post-backup, pre-restore, or post-restore may be defined for special purposes. * Inject new files into /tmp/addon.d/ prior to backuptool.sh backup if you want to act during the current CM upgrade. * Delete files from /tmp/addon.d/ during post-restore if you want to permanently remove files from /system/addon.d/ Addons may use this approach to run a script only once. * Scripts run in sort -n order. Prefix with numbers 00 through 99 if want to run in a particular order. * You can have two separate scripts, implementing only backup in one, and only restore in the other with a different number prefix of each. This allows even greater control the backup/restore order even further. * You could use pre-backup to generate a one-time use backup script in /tmp/addon.d/ that deletes itself in post-restore. Patch Series ============ http://review.cyanogenmod.com/#change,13265 CyanogenMod/android_build * edify generator http://review.cyanogenmod.com/#change,13266 CyanogenMod/android_system_core * permissions on /system/addon.d http://review.cyanogenmod.com/#change,13267 CyanogenMod/android_vendor_cm * 50-cm.sh reference backup script * modular backuptool.sh * support backuptool.functions used by /system/addon.d/*.sh scripts Change-Id: Ifd5eaf9dcfd68d92e5043c21d1bae1dc0ad54860
2012-03-04 09:37:42 +01:00
# Backup Tool
PRODUCT_COPY_FILES += \
2024-05-25 06:08:27 +02:00
vendor/tequila/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
vendor/tequila/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
vendor/tequila/prebuilt/common/bin/50-tequila.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-tequila.sh
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
2024-05-25 06:08:27 +02:00
system/addon.d/50-tequila.sh
ifneq ($(strip $(AB_OTA_PARTITIONS) $(AB_OTA_POSTINSTALL_CONFIG)),)
PRODUCT_COPY_FILES += \
2024-05-25 06:08:27 +02:00
vendor/tequila/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \
vendor/tequila/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \
vendor/tequila/prebuilt/common/bin/backuptool_postinstall.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_postinstall.sh
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/bin/backuptool_ab.sh \
system/bin/backuptool_ab.functions \
system/bin/backuptool_postinstall.sh
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.ota.allow_downgrade=true
endif
endif
2024-05-25 06:08:27 +02:00
# tequila-specific broadcast actions whitelist
PRODUCT_COPY_FILES += \
2024-05-25 06:08:27 +02:00
vendor/tequila/config/permissions/tequila-sysconfig.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/tequila-sysconfig.xml
2024-05-25 06:08:27 +02:00
# tequila-specific init rc file
PRODUCT_COPY_FILES += \
2024-05-25 06:08:27 +02:00
vendor/tequila/prebuilt/common/etc/init/init.tequila-system_ext.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.tequila-system_ext.rc
# Enable SIP+VoIP on all targets
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.software.sip.voip.xml
# Enable wireless Xbox 360 controller support
PRODUCT_COPY_FILES += \
frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:$(TARGET_COPY_OUT_PRODUCT)/usr/keylayout/Vendor_045e_Product_0719.kl
2024-05-25 06:08:27 +02:00
# This is tequila!
PRODUCT_COPY_FILES += \
2024-05-25 06:08:27 +02:00
vendor/tequila/config/permissions/org.tequila.android.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/org.tequila.android.xml
# Log privapp-permissions whitelist
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.control_privapp_permissions=log
# Do not include art debug targets
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
# Strip the local variable table and the local variable type table to reduce
# the size of the system image. This has no bearing on stack traces, but will
# leave less information available via JDWP.
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
# Disable vendor restrictions
PRODUCT_RESTRICT_VENDOR_FILES := false
ifneq ($(TARGET_DISABLE_EPPE),true)
# Require all requested packages to exist
2024-05-25 06:08:27 +02:00
$(call enforce-product-packages-exist-internal,$(wildcard device/*/$(TEQUILA_BUILD)/$(TARGET_PRODUCT).mk),product_manifest.xml rild Calendar Launcher3 Launcher3Go Launcher3QuickStep Launcher3QuickStepGo android.hidl.memory@1.0-impl.vendor vndk_apex_snapshot_package)
endif
# Build Manifest
PRODUCT_PACKAGES += \
build-manifest
2024-05-25 06:08:27 +02:00
# tequila packages
PRODUCT_PACKAGES += \
Updater
PRODUCT_COPY_FILES += \
2024-05-25 06:08:27 +02:00
vendor/tequila/prebuilt/common/etc/init/init.tequila-updater.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.tequila-updater.rc
# Config
PRODUCT_PACKAGES += \
SimpleDeviceConfig \
SimpleSettingsConfig
2024-05-25 06:08:27 +02:00
# Extra tools in tequila
PRODUCT_PACKAGES += \
bash \
curl \
getcap \
htop \
nano \
setcap \
vim
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/bin/curl \
system/bin/getcap \
system/bin/setcap
# Filesystems tools
PRODUCT_PACKAGES += \
fsck.ntfs \
mkfs.ntfs \
mount.ntfs
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/bin/fsck.ntfs \
system/bin/mkfs.ntfs \
system/bin/mount.ntfs \
system/%/libfuse-lite.so \
system/%/libntfs-3g.so
# Openssh
PRODUCT_PACKAGES += \
scp \
sftp \
ssh \
sshd \
sshd_config \
ssh-keygen \
start-ssh
PRODUCT_COPY_FILES += \
2024-05-25 06:08:27 +02:00
vendor/tequila/prebuilt/common/etc/init/init.openssh.rc:$(TARGET_COPY_OUT_PRODUCT)/etc/init/init.openssh.rc
# rsync
PRODUCT_PACKAGES += \
rsync
# Storage manager
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.storage_manager.enabled=true
# These packages are excluded from user builds
PRODUCT_PACKAGES_DEBUG += \
procmem
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/bin/procmem
endif
# Root
PRODUCT_PACKAGES += \
adb_root
ifneq ($(TARGET_BUILD_VARIANT),user)
ifeq ($(WITH_SU),true)
PRODUCT_PACKAGES += \
su
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/xbin/su
endif
endif
# SystemUI
PRODUCT_DEXPREOPT_SPEED_APPS += \
CarSystemUI \
SystemUI
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
dalvik.vm.systemuicompilerfilter=speed
# SetupWizard
PRODUCT_PRODUCT_PROPERTIES += \
setupwizard.theme=glif_v4 \
setupwizard.feature.day_night_mode_enabled=true
2024-05-25 06:08:27 +02:00
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/tequila/overlay/no-rro
PRODUCT_PACKAGE_OVERLAYS += \
2024-05-25 06:08:27 +02:00
vendor/tequila/overlay/common \
vendor/tequila/overlay/no-rro
PRODUCT_PACKAGES += \
DocumentsUIOverlay \
NetworkStackOverlay
2024-05-25 06:08:27 +02:00
include vendor/tequila/config/version.mk
2024-05-25 06:08:27 +02:00
-include vendor/tequila-priv/keys/keys.mk
-include $(WORKSPACE)/build_env/image-auto-bits.mk
2024-05-25 06:08:27 +02:00
-include vendor/tequila/config/partner_gms.mk