From bf8876d203bcbc7dc56273ff7b54bae17133da62 Mon Sep 17 00:00:00 2001 From: Aaron Kling Date: Wed, 1 Sep 2021 16:06:46 -0500 Subject: [PATCH] sabrina: Add netflix config overlay This replicates the stock configs Based on example by luca020400 Change-Id: Iad4e13a40efe64d4f999abc93d6a41ffd149e3f6 --- device.mk | 5 +++++ proprietary-files.txt | 6 +----- rro_overlays/NetflixConfigOverlay/Android.bp | 12 ++++++++++++ .../NetflixConfigOverlay/AndroidManifest.xml | 7 +++++++ .../NetflixConfigOverlay/res/values/strings.xml | 5 +++++ 5 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 rro_overlays/NetflixConfigOverlay/Android.bp create mode 100644 rro_overlays/NetflixConfigOverlay/AndroidManifest.xml create mode 100644 rro_overlays/NetflixConfigOverlay/res/values/strings.xml diff --git a/device.mk b/device.mk index 5e6c8e2..d3bf585 100644 --- a/device.mk +++ b/device.mk @@ -23,6 +23,11 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/keylayout/Vendor_0001_Product_0001.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_0001_Product_0001.kl +## Netflix +PRODUCT_PACKAGES += \ + NetflixConfig \ + SabrinaNetflixConfigOverlay + ## Platform TARGET_AMLOGIC_SOC := sm1 diff --git a/proprietary-files.txt b/proprietary-files.txt index 7f43753..a253402 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -40,14 +40,10 @@ system/etc/init/low_power_warning.rc vendor/bin/hw/android.hardware.drm@1.4-service.netflix vendor/etc/init/android.hardware.drm@1.4-service.netflix.rc vendor/etc/permissions/droidlogic.software.netflix.xml +vendor/etc/permissions/nrdp.xml vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.4-service.netflix.xml vendor/lib/libnetflixplugin.so -## NRDP -vendor/etc/permissions/nrdp.xml -vendor/etc/nrdp_audio_platform_capabilities.json -vendor/etc/nrdp_platform_capabilities.json - ## ODM odm/etc/etc/bluetooth/bt_vendor.conf odm/etc/firmware/firmware.le diff --git a/rro_overlays/NetflixConfigOverlay/Android.bp b/rro_overlays/NetflixConfigOverlay/Android.bp new file mode 100644 index 0000000..deb785f --- /dev/null +++ b/rro_overlays/NetflixConfigOverlay/Android.bp @@ -0,0 +1,12 @@ +// +// Copyright (C) 2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// +runtime_resource_overlay { + name: "SabrinaNetflixConfigOverlay", + theme: "NetflixConfigOverlay", + resource_dirs: ["res"], + sdk_version: "current", + soc_specific: true, +} diff --git a/rro_overlays/NetflixConfigOverlay/AndroidManifest.xml b/rro_overlays/NetflixConfigOverlay/AndroidManifest.xml new file mode 100644 index 0000000..9461c65 --- /dev/null +++ b/rro_overlays/NetflixConfigOverlay/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/rro_overlays/NetflixConfigOverlay/res/values/strings.xml b/rro_overlays/NetflixConfigOverlay/res/values/strings.xml new file mode 100644 index 0000000..2b0ab11 --- /dev/null +++ b/rro_overlays/NetflixConfigOverlay/res/values/strings.xml @@ -0,0 +1,5 @@ + + + {\"vp9Disabled\":\"false\",\"hdrOutputType\":\"always\",\"minVideoFramesForPlaybackStart\":\"50\"} + {\"audiocaps\":{\"continuousAudio\":false,\"aaudio\":true,\"uiAudioBufferDelayOffset\":80,\"pcm\":{\"mixing\":true,\"transition\":ease},\"ddplus\":{\"mixing\":false,\"transition\":mute},\"atmos\":{\"enabled\":false,\"mixing\":false,\"transition\":mute}}} + -- 2.20.1