-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mk
executable file
·95 lines (81 loc) · 3.61 KB
/
config.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
LOCAL_PATH := vendor/teamone/mod
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay/common/
# Themed bootanimation
TARGET_MISC_BLOCK_OFFSET ?= 0
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.misc.block.offset=$(TARGET_MISC_BLOCK_OFFSET)
PRODUCT_PACKAGES += \
misc_writer_system \
themed_bootanimation
# Prebuilt Packages
PRODUCT_PACKAGES += \
NexusLauncherRelease \
NexusWallpapersStubPrebuilt2018 \
SafetyHubPrebuilt \
SettingsIntelligenceGooglePrebuilt
ifeq ($(TARGET_GAPPS_ARCH),arm64)
PRODUCT_PACKAGES += \
MatchmakerPrebuiltPixel3
endif
# build.prop entrys
PRODUCT_PROPERTY_OVERRIDES += \
ro.wallpapers_loc_request_suw=true
# Bootanimation
ifeq ($(TARGET_BOOT_ANIMATION_RES),720)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/bootanimation/bootanimation_720.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanim$
else ifeq ($(TARGET_BOOT_ANIMATION_RES),1080)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/bootanimation/bootanimation_1080.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
PRODUCT_COPY_FILES += $(LOCAL_PATH)/bootanimation/bootanimation-dark_1080.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation-dark.zip
else ifeq ($(TARGET_BOOT_ANIMATION_RES),1440)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/bootanimation/bootanimation_1440.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
PRODUCT_COPY_FILES += $(LOCAL_PATH)/bootanimation/bootanimation-dark_1440.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation-dark.zip
else
ifeq ($(TARGET_BOOT_ANIMATION_RES),)
$(warning "TARGET_BOOT_ANIMATION_RES is undefined, assuming 720p")
else
$(warning "Current bootanimation res is not supported, forcing 720p")
endif
PRODUCT_COPY_FILES += $(LOCAL_PATH)/bootanimation/bootanimation_720.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
PRODUCT_COPY_FILES += $(LOCAL_PATH)/bootanimation/bootanimation-dark_720.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation-dark.zip
endif
# Files
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(LOCAL_PATH)/etc,$(TARGET_COPY_OUT_PRODUCT)/etc)
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(LOCAL_PATH)/fonts,$(TARGET_COPY_OUT_PRODUCT)/fonts)
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(LOCAL_PATH)/media,$(TARGET_COPY_OUT_PRODUCT)/media)
# Set Pixel blue light theme on Gboard
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.ime.theme_id=5
# Default ringtone
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.config.ringtone=The_big_adventure.ogg
# Charger
PRODUCT_PACKAGES += \
charger_res_images
# Storage manager
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.storage_manager.enabled=true
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=0
endif
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
dalvik.vm.debug.alloc=0 \
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
ro.error.receiver.system.apps=com.google.android.gms \
ro.setupwizard.enterprise_mode=1 \
ro.com.android.dataroaming=false \
ro.atrace.core.services=com.google.android.gms,com.google.android.gms.ui,com.google.android.gms.persistent \
ro.com.android.dateformat=MM-dd-yyyy \
persist.sys.disable_rescue=true \
ro.setupwizard.rotation_locked=true
# Default notification/alarm sounds
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.config.notification_sound=Popcorn.ogg \
ro.config.alarm_alert=Bright_morning.ogg
# GApps
#include vendor/gapps/config.mk