Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 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/gs101/aosp_common.mk) |
Adam Shih | e5a49a9 | 2021-04-15 14:35:55 +0800 | [diff] [blame] | 18 | $(call inherit-product-if-exists, vendor/google_devices/gs101/factory/pixel/device-factory.mk) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 19 | |
| 20 | PRODUCT_PROPERTY_OVERRIDES += service.adb.root=1 \ |
| 21 | ro.vendor.factory=1 |
| 22 | |
| 23 | # Factory Libraries of Audio |
| 24 | PRODUCT_PACKAGES += audioroute libaudioroutelite |
| 25 | |
| 26 | # Enable fatp by default for factory builds |
| 27 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 28 | persist.vendor.camera.fatp.enable=1 |
| 29 | |
| 30 | # Disable camera related features for factory builds |
| 31 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 32 | vendor.camera.debug.bypass_face_ssd_processor=1 \ |
| 33 | vendor.camera.debug.csi_ebuf_enable=0 \ |
| 34 | vendor.camera.debug.enable_face_detection=0 \ |
| 35 | vendor.camera.debug.force_dpm_on=0 \ |
| 36 | vendor.camera.debug.force_eis_on=0 \ |
| 37 | vendor.camera.debug.force_eaf_on=0 \ |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 38 | vendor.camera.debug.force_mesh_warp_on=0 \ |
| 39 | vendor.camera.debug.force_rectiface_node_on=0 \ |
| 40 | vendor.camera.debug.force_steadiface_on=0 \ |
pointerkung | b88bba7 | 2021-05-12 21:03:37 +0800 | [diff] [blame] | 41 | vendor.camera.debug.force_tnr_on=0 |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 42 | |
| 43 | # Disable ScreenDecorations for factory builds |
| 44 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 45 | debug.disable_screen_decorations=true |
| 46 | |
| 47 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=80 |
| 48 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200 |
| 49 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_display_power_timer_ms=1000 |
| 50 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_content_detection_for_refresh_rate=true |
| 51 | |
| 52 | # factory should always has SELinux permissive |
Adam Shih | b80f23d | 2021-03-24 09:23:39 +0800 | [diff] [blame] | 53 | BOARD_BOOTCONFIG += androidboot.selinux=permissive |
Adam Shih | 6d8d406 | 2021-04-13 13:39:06 +0800 | [diff] [blame] | 54 | BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 55 | |
| 56 | # Disable Bluetooth as default in factory build |
| 57 | DEVICE_PACKAGE_OVERLAYS += device/google/gs101/overlay-factory |
| 58 | |
| 59 | PRODUCT_COPY_FILES += \ |
| 60 | device/google/gs101/conf/init.factory.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.factory.rc |
| 61 | |
| 62 | # Add factory-friendly changes |
| 63 | PRODUCT_PACKAGES += \ |
| 64 | FactoryOverlaySettings \ |
| 65 | FactoryOverlayLauncher3 \ |
| 66 | FactoryOverlayFrameworkRes |
| 67 | |
Aaron Ding | f87f8ed | 2021-05-11 23:19:46 +0800 | [diff] [blame] | 68 | # Disable DebugFS restrictions in factory builds |
| 69 | PRODUCT_SET_DEBUGFS_RESTRICTIONS := false |
| 70 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 71 | # PixelLogger for RF testing |
| 72 | PRODUCT_PACKAGES_DEBUG += \ |
| 73 | PixelLogger \ |