sm7125: Build AdvancedDisplay from hardware/samsung

Change-Id: Iab195edee0fcfedcd7373568ac49a811afcd9563
fourteen-wip
Simon1511 2 years ago
parent d8dd60abf9
commit 96d5c625ac
  1. 3
      common.mk
  2. 48
      overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml
  3. 4
      sepolicy/vendor/system_app.te

@ -165,7 +165,8 @@ PRODUCT_PACKAGES += \
vendor.qti.hardware.display.mapper@2.0.vendor \ vendor.qti.hardware.display.mapper@2.0.vendor \
vendor.qti.hardware.display.mapper@3.0.vendor \ vendor.qti.hardware.display.mapper@3.0.vendor \
vendor.qti.hardware.display.mapper@4.0.vendor \ vendor.qti.hardware.display.mapper@4.0.vendor \
vendor.display.config@2.0.vendor vendor.display.config@2.0.vendor \
AdvancedDisplay
# Doze # Doze
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012-2014 The CyanogenMod Project
Copyright (C) 2018 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.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="mdnie_scenario_entries" translatable="false">
<item>LineageOS (default)</item>
<item>Video</item>
<item>Video warm</item>
<item>Video cold</item>
<item>Camera</item>
<item>Navigation</item>
<item>Gallery</item>
<item>Video call</item>
<item>Browser</item>
<item>eBook</item>
<item>E-mail</item>
<item>Digital television</item>
</string-array>
<string-array name="mdnie_scenario_entries_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>16</item>
</string-array>
</resources>

@ -6,3 +6,7 @@ allow system_app sysfs_zram:file { read open getattr };
binder_call(system_app, hal_power_default) binder_call(system_app, hal_power_default)
binder_call(system_app, hal_vibrator_default) binder_call(system_app, hal_vibrator_default)
# MDNIE
allow system_app sysfs_mdnie_writable:dir search;
allow system_app sysfs_mdnie_writable:file { open write getattr };

Loading…
Cancel
Save