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
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
--- /dev/null
+//
+// 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,
+}
--- /dev/null
+<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>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="nrdp_platform_capabilities">{\"vp9Disabled\":\"false\",\"hdrOutputType\":\"always\",\"minVideoFramesForPlaybackStart\":\"50\"}</string>
+ <string name="nrdp_audio_platform_capabilities">{\"audiocaps\":{\"continuousAudio\":false,\"aaudio\":true,\"uiAudioBufferDelayOffset\":80,\"pcm\":{\"mixing\":true,\"transition\":ease},\"ddplus\":{\"mixing\":false,\"transition\":mute},\"atmos\":{\"enabled\":false,\"mixing\":false,\"transition\":mute}}}</string>
+</resources>