1# 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/zumapro/aosp_common.mk) 18$(call inherit-product-if-exists, vendor/google_devices/zumapro/factory/pixel/device-factory.mk) 19 20PRODUCT_PROPERTY_OVERRIDES += service.adb.root=1 \ 21 ro.vendor.factory=1 22 23# Factory Libraries of Audio 24PRODUCT_PACKAGES += audioroute libaudioroutelite 25 26# Enable fatp by default for factory builds 27PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ 28 persist.vendor.camera.fatp.enable=1 29 30# Disable camera related features for factory builds 31PRODUCT_PROPERTY_OVERRIDES += \ 32 persist.vendor.camera.af.ignore_gyro=1 \ 33 persist.vendor.camera.multicam.framesync=0 \ 34 vendor.camera.debug.bypass_face_ssd_processor=1 \ 35 vendor.camera.debug.csi_ebuf_enable=0 \ 36 vendor.camera.debug.enable_face_detection=0 \ 37 vendor.camera.debug.force_dpm_on=0 \ 38 vendor.camera.debug.force_eis_on=0 \ 39 vendor.camera.debug.force_eaf_on=0 \ 40 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 \ 43 vendor.camera.debug.force_tnr_on=0 \ 44 vendor.camera.debug.force_segmentation_node_on=0 \ 45 vendor.camera.debug.enable_saliency=0 \ 46 vendor.camera.debug.force_local_tone_mapping_on=0 \ 47 vendor.camera.debug.local_tone_mapping_controller_v1.mode=0 \ 48 vendor.camera.debug.enable_scene_detection=0 \ 49 vendor.camera.debug.enable_sw_denoise=0 \ 50 vendor.camera.debug.enable_video_sw_denoise=0 \ 51 vendor.camera.debug.force_pd_node_on=0 52 53# Disable ScreenDecorations for factory builds 54PRODUCT_PROPERTY_OVERRIDES += \ 55 debug.disable_screen_decorations=true 56 57PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms?=80 58PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200 59PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_display_power_timer_ms=1000 60PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_content_detection_for_refresh_rate=true 61 62# Disable dimming in factory 63PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.0.brightness.dimming.usage=2 64 65 66# factory should always has SELinux permissive 67BOARD_BOOTCONFIG += androidboot.selinux=permissive 68BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive 69 70# Disable DebugFS restrictions in factory builds 71PRODUCT_SET_DEBUGFS_RESTRICTIONS := false 72 73# Disable Bluetooth as default in factory build 74DEVICE_PACKAGE_OVERLAYS += device/google/zumapro/overlay-factory 75 76PRODUCT_COPY_FILES += \ 77 device/google/zumapro/conf/init.factory.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.factory.rc 78 79BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/factory_boost 80 81# Add factory-friendly changes 82PRODUCT_PACKAGES += \ 83 FactoryOverlaySettings \ 84 FactoryOverlayLauncher3 \ 85 FactoryOverlayFrameworkRes \ 86 factory_post_boot 87 88# To prevent rebooting due to crashing services 89PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ 90 init.svc_debug.no_fatal.zygote=true \ 91 persist.device_config.configuration.disable_rescue_party=true 92 93# PixelLogger for RF testing 94PRODUCT_PACKAGES_DEBUG += \ 95 PixelLogger \ 96 97# ModemDiagnosticSystem for desense tool 98PRODUCT_PACKAGES += \ 99 ModemDiagnosticSystem \ 100