diff options
author | Aaron Kling <webgeek1234@gmail.com> | 2019-12-07 23:30:21 -0600 |
---|---|---|
committer | Nolen Johnson <johnsonnolen@gmail.com> | 2020-06-07 02:39:38 +0200 |
commit | 79a6b1dc1e8d855c74960e1429f03122424103b1 (patch) | |
tree | e458257525deaee174984e354dbbb58aabbfe782 | |
parent | 6e7d52cbb149ab80530f86be094933d28b68509e (diff) | |
download | android_device_lineage_atv-79a6b1dc1e8d855c74960e1429f03122424103b1.tar.gz android_device_lineage_atv-79a6b1dc1e8d855c74960e1429f03122424103b1.tar.bz2 android_device_lineage_atv-79a6b1dc1e8d855c74960e1429f03122424103b1.zip |
Add Lineage ATV init file
This is to hold platform specific init sequences. To start, this
only sets internal resolution. 1920x1080 is mandated by Google for
all ATV devices for the UI, then the graphics driver needs to scale
to the output display resolution.
Change-Id: Icf6ef04ac085c92d1ece8346ae28cf61ed35c8eb
(cherry picked from commit 1b28800712bbe83f9ee52ea4b21e11dcbf3ef011)
-rw-r--r-- | initfiles/Android.mk | 8 | ||||
-rw-r--r-- | initfiles/init.lineage.atv.rc | 20 | ||||
-rw-r--r-- | lineage_atv.mk | 4 |
3 files changed, 32 insertions, 0 deletions
diff --git a/initfiles/Android.mk b/initfiles/Android.mk new file mode 100644 index 0000000..5afb1dc --- /dev/null +++ b/initfiles/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.lineage.atv.rc +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := init.lineage.atv.rc +LOCAL_MODULE_RELATIVE_PATH := init +include $(BUILD_PREBUILT) diff --git a/initfiles/init.lineage.atv.rc b/initfiles/init.lineage.atv.rc new file mode 100644 index 0000000..a3233a5 --- /dev/null +++ b/initfiles/init.lineage.atv.rc @@ -0,0 +1,20 @@ +# Copyright (C) 2019 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +on fs + setprop ro.config.size_override 1920,1080 + +on post-fs-data + setprop persist.sys.display.resolution 1920x1080 + setprop persist.vendor.sys.display.resolution 1920x1080 diff --git a/lineage_atv.mk b/lineage_atv.mk index 98a5013..a79a637 100644 --- a/lineage_atv.mk +++ b/lineage_atv.mk @@ -14,6 +14,10 @@ # limitations under the License. # +# Init files +PRODUCT_PACKAGES += \ + init.lineage.atv.rc + # IDCs for shield controllers PRODUCT_PACKAGES += \ Vendor_0955_Product_7212.idc \ |