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
17ifneq ($(BOARD_WITHOUT_RADIO),true)
18-include vendor/google_devices/gs101/proprietary/telephony/device-vendor.mk
19endif
20include device/google/gs101/device.mk
21
22ifneq ($(BOARD_WITHOUT_RADIO),true)
23# Telephony
24PRODUCT_COPY_FILES += \
25    frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.carrierlock.xml
26endif
27
28# Android Verified Boot
29PRODUCT_COPY_FILES += \
30    frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
31
32# Set system properties identifying the chipset
33PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Google
34PRODUCT_VENDOR_PROPERTIES += ro.soc.model=Tensor
35
36PRODUCT_PRODUCT_PROPERTIES += \
37    persist.vendor.testing_battery_profile=2
38
39# The default value of this variable is false and should only be set to true when
40# the device allows users to retain eSIM profiles after factory reset of user data.
41PRODUCT_PRODUCT_PROPERTIES += \
42    masterclear.allow_retain_esim_profiles_after_fdr=true
43
44# ZramWriteback
45-include hardware/google/pixel/mm/device_gki.mk
46
47# Set thermal warm reset
48PRODUCT_PRODUCT_PROPERTIES += \
49    ro.thermal_warmreset = true
50
51# Trigger fsck on upgrade (305658663)
52PRODUCT_PRODUCT_PROPERTIES += \
53    ro.preventative_fsck = 1