author | Bin Yang <bin.yang@amlogic.com> | 2019-07-11 02:54:37 (GMT) |
---|---|---|
committer | Bin Yang <bin.yang@amlogic.com> | 2019-07-16 03:35:14 (GMT) |
commit | e3d699d0f9d652bba762ed1162c7a494b2c36510 (patch) | |
tree | 29c7033c320942d970a544802821676a86a74f4e | |
parent | e6cb2a5af2c97153ddb451f718c9c8e57bff23bd (diff) | |
download | common-e3d699d0f9d652bba762ed1162c7a494b2c36510.zip common-e3d699d0f9d652bba762ed1162c7a494b2c36510.tar.gz common-e3d699d0f9d652bba762ed1162c7a494b2c36510.tar.bz2 |
deadpool:how to enable Netflix based on reference source code [1/2]
PD#
Problem:
How to enable Netflix based on reference source code
Solution:
add Netflix and play it
Verify:
deadpool
Change-Id: I43da5873cfd6f6b1e9dc6aa67fac55366cb34354
Signed-off-by: Bin Yang <bin.yang@amlogic.com>
-rwxr-xr-x | nts/Android.mk | 17 | ||||
-rwxr-xr-x | nts/etc/netflix.xml | 4 | ||||
-rwxr-xr-x | nts/etc/nrdp_audio_platform_capabilities.json | 18 | ||||
-rwxr-xr-x | nts/etc/nrdp_platform_capabilities.json | 8 | ||||
-rwxr-xr-x | nts/nts.mk | 15 | ||||
-rwxr-xr-x | sepolicy/property_contexts | 2 |
6 files changed, 63 insertions, 1 deletions
diff --git a/nts/Android.mk b/nts/Android.mk new file mode 100755 index 0000000..87d1f15 --- a/dev/null +++ b/nts/Android.mk @@ -0,0 +1,17 @@ +#LOCAL_PATH := $(call my-dir) + +#include $(CLEAR_VARS) +#LOCAL_MODULE_TAGS := optional +#LOCAL_MODULE := Netflix +#LOCAL_DEX_PREOPT := false +#LOCAL_SRC_FILES := $(LOCAL_MODULE).apk +#LOCAL_MODULE_CLASS := APPS +#LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) +#LOCAL_CERTIFICATE := PRESIGNED +#LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/$(LOCAL_SRC_FILES) +#LOCAL_MODULE_PATH := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_PRODUCT)/app + +#ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) + # LOCAL_PRODUCT_MODULE := true +#endif +#include $(BUILD_PREBUILT) diff --git a/nts/etc/netflix.xml b/nts/etc/netflix.xml new file mode 100755 index 0000000..f33649a --- a/dev/null +++ b/nts/etc/netflix.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<config> + <allow-in-power-save package="com.netflix.ninja" /> +</config> diff --git a/nts/etc/nrdp_audio_platform_capabilities.json b/nts/etc/nrdp_audio_platform_capabilities.json new file mode 100755 index 0000000..c688b5b --- a/dev/null +++ b/nts/etc/nrdp_audio_platform_capabilities.json @@ -0,0 +1,18 @@ +{ + "audiocaps": { + "continuousAudio": false, + "pcm": { + "mixing": true, + "transition": ease + }, + "ddplus": { + "mixing": false, + "transition": mute + }, + "atmos": { + "enabled": false, + "mixing": false, + "transition": mute + } + } +} diff --git a/nts/etc/nrdp_platform_capabilities.json b/nts/etc/nrdp_platform_capabilities.json new file mode 100755 index 0000000..8a20029 --- a/dev/null +++ b/nts/etc/nrdp_platform_capabilities.json @@ -0,0 +1,8 @@ +{ + "vp9Disabled": "true", + "tunnelModeWithBTSetting": "disable" +} +{ + "vp9Disabled¡±: "true", + "hdrOutputType":"always" +}
\ No newline at end of file diff --git a/nts/nts.mk b/nts/nts.mk new file mode 100755 index 0000000..eb4e68b --- a/dev/null +++ b/nts/nts.mk @@ -0,0 +1,15 @@ +# For NTS certification +PRODUCT_PROPERTY_OVERRIDES += \ + audio.passthrough.volume.route2cec = true \ + ro.vendor.nrdp.validation=ninja_6 \ + ro.vendor.nrdp.audio.mixer.buffersize=1024 \ + ro.vendor.build.version.nts_patch=2019-04-19 + +#PRODUCT_PACKAGES += \ + # Netflix + +PRODUCT_COPY_FILES += \ + device/amlogic/common/nts/etc/netflix.xml:system/etc/sysconfig/netflix.xml \ + device/amlogic/common/nts/etc/nrdp_platform_capabilities.json:vendor/etc/nrdp_platform_capabilities.json \ + device/amlogic/common/nts/etc/nrdp_audio_platform_capabilities.json:vendor/etc/nrdp_audio_platform_capabilities.json + diff --git a/sepolicy/property_contexts b/sepolicy/property_contexts index 050191c..90d4f83 100755 --- a/sepolicy/property_contexts +++ b/sepolicy/property_contexts @@ -19,7 +19,7 @@ wc_transport u:object_r:bluetooth_prop:s0 rc_hidraw_fd u:object_r:bluetooth_prop:s0 ro.rfkilldisabled u:object_r:bluetooth_prop:s0 vendor.display-size u:object_r:netflix_prop:s0 -ro.vendor.nrdp.modelgroup u:object_r:netflix_prop:s0 +vendor.netflix.state u:object_r:netflix_prop:s0 ro.vendor.nrdp. u:object_r:netflix_prop:s0 ro.vendor.platform u:object_r:vendor_platform_prop:s0 persist.vendor.sys u:object_r:vendor_persist_prop:s0 |