blob: 5434fbf4ee648884f44fd7772b7974c5c47d4ffe [file] [log] [blame]
Robin Pengc2b5ca92021-02-23 20:00:28 +08001#
2# Copyright 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$(call inherit-product, device/google/gs101/aosp_common.mk)
Adam Shihe5a49a92021-04-15 14:35:55 +080018$(call inherit-product-if-exists, vendor/google_devices/gs101/factory/pixel/device-factory.mk)
Robin Pengc2b5ca92021-02-23 20:00:28 +080019
20PRODUCT_PROPERTY_OVERRIDES += service.adb.root=1 \
Chenglu Linf45c7d12021-07-06 10:57:59 +080021 ro.vendor.factory=1 \
22 ro.adb.secure=0
Robin Pengc2b5ca92021-02-23 20:00:28 +080023
24# Factory Libraries of Audio
25PRODUCT_PACKAGES += audioroute libaudioroutelite
26
27# Enable fatp by default for factory builds
28PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
29 persist.vendor.camera.fatp.enable=1
30
31# Disable camera related features for factory builds
32PRODUCT_PROPERTY_OVERRIDES += \
cheneda5afec52021-06-07 12:49:31 +080033 persist.vendor.camera.partial_result_count=1 \
Robin Pengc2b5ca92021-02-23 20:00:28 +080034 vendor.camera.debug.bypass_face_ssd_processor=1 \
Robin Pengc2b5ca92021-02-23 20:00:28 +080035 vendor.camera.debug.enable_face_detection=0 \
36 vendor.camera.debug.force_dpm_on=0 \
37 vendor.camera.debug.force_eis_on=0 \
38 vendor.camera.debug.force_eaf_on=0 \
Yan-De Chen06c8aad2021-06-02 13:23:30 +000039 vendor.camera.debug.force_local_tone_mapping_on=0 \
Robin Pengc2b5ca92021-02-23 20:00:28 +080040 vendor.camera.debug.force_mesh_warp_on=0 \
41 vendor.camera.debug.force_rectiface_node_on=0 \
42 vendor.camera.debug.force_steadiface_on=0 \
Yan-De Chen06c8aad2021-06-02 13:23:30 +000043 vendor.camera.debug.force_tnr_on=0 \
chened03726782021-09-30 18:20:39 +080044 vendor.camera.debug.local_tone_mapping_controller_v1.mode=0 \
45 vendor.camera.debug.force_segmentation_node_on=0 \
46 vendor.camera.debug.enable_saliency=0
Robin Pengc2b5ca92021-02-23 20:00:28 +080047
48# Disable ScreenDecorations for factory builds
49PRODUCT_PROPERTY_OVERRIDES += \
50 debug.disable_screen_decorations=true
51
52PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=80
53PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200
54PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_display_power_timer_ms=1000
55PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_content_detection_for_refresh_rate=true
56
57# factory should always has SELinux permissive
Adam Shihb80f23d2021-03-24 09:23:39 +080058BOARD_BOOTCONFIG += androidboot.selinux=permissive
Adam Shih6d8d4062021-04-13 13:39:06 +080059BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
Robin Pengc2b5ca92021-02-23 20:00:28 +080060
61# Disable Bluetooth as default in factory build
62DEVICE_PACKAGE_OVERLAYS += device/google/gs101/overlay-factory
63
64PRODUCT_COPY_FILES += \
65 device/google/gs101/conf/init.factory.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.factory.rc
66
67# Add factory-friendly changes
68PRODUCT_PACKAGES += \
69 FactoryOverlaySettings \
70 FactoryOverlayLauncher3 \
71 FactoryOverlayFrameworkRes
72
Aaron Dingf87f8ed2021-05-11 23:19:46 +080073# Disable DebugFS restrictions in factory builds
74PRODUCT_SET_DEBUGFS_RESTRICTIONS := false
75
Robin Pengc2b5ca92021-02-23 20:00:28 +080076# PixelLogger for RF testing
77PRODUCT_PACKAGES_DEBUG += \
Adam Shih3e058b12021-06-11 11:11:33 +080078 PixelLogger
Chenglu Lin5e7d13a2021-07-16 16:41:12 +080079
80# Tool for installing Widevine keybox
81PRODUCT_PACKAGES_DEBUG += \
82 WvInstallKeybox