dopinder: Add netflix config overlay
authorAaron Kling <webgeek1234@gmail.com>
Wed, 1 Sep 2021 21:06:46 +0000 (16:06 -0500)
committerNolen Johnson <johnsonnolen@gmail.com>
Sun, 13 Oct 2024 02:15:52 +0000 (22:15 -0400)
This replicates the stock configs

Based on example by luca020400

Change-Id: Iad4e13a40efe64d4f999abc93d6a41ffd149e3f6

device.mk
proprietary-files.txt
rro_overlays/NetflixConfigOverlay/Android.bp [new file with mode: 0644]
rro_overlays/NetflixConfigOverlay/AndroidManifest.xml [new file with mode: 0644]
rro_overlays/NetflixConfigOverlay/res/values/strings.xml [new file with mode: 0644]

index a6595e0922d0efdc46225de1510855861583e914..a14e9dc847b16fcf80305fc9c0d18d091996ce27 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -30,6 +30,11 @@ PRODUCT_PACKAGES += \
 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 \
+    NetflixConfigOverlay
+
 ## Inherit from the common tree product makefile
 $(call inherit-product, device/amlogic/g12-common/g12.mk)
 
index 968e0f08c06cbc1e2f587c57030a31d7bad763c9..db8e31a6fc6ff234b57361d1d7714fb28bd54bca 100644 (file)
@@ -30,15 +30,10 @@ system/system/etc/sysconfig/netflix.xml
 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/nrdp_audio_platform_capabilities.json
-vendor/etc/nrdp_audio_platform_capabilities_ms12.json
-vendor/etc/nrdp_platform_capabilities.json
-vendor/etc/permissions/nrdp.xml
-
 ## ODM
 odm/etc/firmware/firmware.le
 odm/etc/tvconfig/chmod_files.sh
diff --git a/rro_overlays/NetflixConfigOverlay/Android.bp b/rro_overlays/NetflixConfigOverlay/Android.bp
new file mode 100644 (file)
index 0000000..f8899fd
--- /dev/null
@@ -0,0 +1,12 @@
+//
+// Copyright (C) 2023 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+runtime_resource_overlay {
+    name: "NetflixConfigOverlay",
+    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 (file)
index 0000000..9461c65
--- /dev/null
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="org.lineage.netflixconfig.overlay">
+    <application android:hasCode="false" />
+    <overlay android:targetPackage="org.lineage.netflixconfig"
+        android:targetName="NetflixConfigResources"
+        android:isStatic="true" />
+</manifest>
diff --git a/rro_overlays/NetflixConfigOverlay/res/values/strings.xml b/rro_overlays/NetflixConfigOverlay/res/values/strings.xml
new file mode 100644 (file)
index 0000000..d3d2c5f
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="nrdp_platform_capabilities">{\"vp9Disabled\":\"true\",\"hdrOutputType\":\"always\",\"minVideoFramesForPlaybackStart\":\"50\"}</string>
+    <string name="nrdp_audio_platform_capabilities">{\"audiocaps\":{\"continuousAudio\":false,\"aaudio\":true,\"uiAudioBufferDelayOffset\":110,\"pcm\":{\"mixing\":true,\"transition\":ease},\"ddplus\":{\"mixing\":false,\"transition\":mute},\"atmos\":{\"enabled\":false,\"mixing\":false,\"transition\:mute}}}</string>
+    <!-- The Lineage NRDP configuration app doesn't yet support MS12, this is here for future reference. -->
+    <!--string name="nrdp_audio_platform_capabilities_ms12">{\"audiocaps\":{\"continuousAudio\":true,\"aaudio\":true,\"uiAudioBufferDelayOffset\":120,\"pcm\":{\"mixing\":true,\"transition\":ease,\"continuous\":true},\"ddplus\":{\"mixing\":true,\"transition\":ease,\"continuous\":true},\"atmos\":{\"enabled\":true,\"mixing\":true,\"transition\":ease,\"continuous\":true}}}</string-->
+</resources>