umi: rootdir: Set FOD Posititon based on HW revision
Values are from stock init.umi.rc
This commit is contained in:
@@ -33,6 +33,10 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml
|
||||
|
||||
# Rootdir
|
||||
PRODUCT_PACKAGES += \
|
||||
init.device.rc
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
||||
|
||||
13
rootdir/Android.bp
Normal file
13
rootdir/Android.bp
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// Copyright (C) 2021 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
// Init configuration files
|
||||
prebuilt_etc {
|
||||
name: "init.device.rc",
|
||||
src: "etc/init.device.rc",
|
||||
sub_dir: "init/hw",
|
||||
vendor: true,
|
||||
}
|
||||
10
rootdir/etc/init.device.rc
Normal file
10
rootdir/etc/init.device.rc
Normal file
@@ -0,0 +1,10 @@
|
||||
on property:ro.boot.hwlevel=P0.1
|
||||
setprop vendor.lineage.fod.position_x 449
|
||||
setprop vendor.lineage.fod.position_y 1825
|
||||
|
||||
on property:ro.boot.hwlevel=P1
|
||||
setprop vendor.lineage.fod.position_x 449
|
||||
setprop vendor.lineage.fod.position_y 1825
|
||||
|
||||
on property:ro.boot.hwlevel=*
|
||||
setprop vendor.lineage.fod.enable true
|
||||
@@ -40,4 +40,3 @@ ro.surface_flinger.force_hwc_copy_for_virtual_displays=true
|
||||
vendor.lineage.fod.position_x=441
|
||||
vendor.lineage.fod.position_y=1808
|
||||
vendor.lineage.fod.size=197
|
||||
vendor.lineage.fod.enable=true
|
||||
|
||||
Reference in New Issue
Block a user