• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2020 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17-include vendor/google_devices/zuma/proprietary/telephony/device-vendor.mk
18include device/google/zuma/device.mk
19
20# Telephony
21PRODUCT_COPY_FILES += \
22    frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.carrierlock.xml
23
24# Android Verified Boot
25PRODUCT_COPY_FILES += \
26    frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
27
28# Set system properties identifying the chipset
29PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Google
30TARGET_VENDOR_PROP += device/google/zuma/vendor.prop
31
32PRODUCT_PRODUCT_PROPERTIES += \
33    persist.vendor.testing_battery_profile=2
34
35# The default value of this variable is false and should only be set to true when
36# the device allows users to retain eSIM profiles after factory reset of user data.
37PRODUCT_PRODUCT_PROPERTIES += \
38    masterclear.allow_retain_esim_profiles_after_fdr=true
39
40# ZramWriteback
41-include hardware/google/pixel/mm/device_gki.mk
42
43# Set thermal warm reset
44PRODUCT_PRODUCT_PROPERTIES += \
45    ro.thermal_warmreset = true
46
47# Set the max page size to 4096 (b/300367402)
48PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 4096
49
50# Trigger fsck on upgrade (305658663)
51PRODUCT_PRODUCT_PROPERTIES += \
52    ro.preventative_fsck = 1
53
54# Indicate that the bootloader supports the MTE developer option switch
55# (MISC_MEMTAG_MODE_MEMTAG_ONCE), with the exception of _fullmte products that
56# force enable MTE.
57ifeq (,$(filter %_fullmte,$(TARGET_PRODUCT)))
58PRODUCT_PRODUCT_PROPERTIES += ro.arm64.memtag.bootctl_supported=1
59PRODUCT_PRODUCT_PROPERTIES += persist.arm64.memtag.app.com.android.se=off
60PRODUCT_PRODUCT_PROPERTIES += persist.arm64.memtag.app.com.google.android.bluetooth=off
61PRODUCT_PRODUCT_PROPERTIES += persist.arm64.memtag.app.com.android.nfc=off
62PRODUCT_PRODUCT_PROPERTIES += persist.arm64.memtag.system_server=off
63else
64PRODUCT_PRODUCT_PROPERTIES += persist.arm64.memtag.app.com.android.chrome=off
65endif
66