diff options
-rw-r--r-- | common.mk | 4 | ||||
-rw-r--r-- | configs/98netflix | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -44,6 +44,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/80cfw:system/etc/init.d/80cfw +# Netflix hack +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/98netflix:system/etc/init.d/98netflix + # Bluetooth configuration files PRODUCT_COPY_FILES += \ system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf diff --git a/configs/98netflix b/configs/98netflix new file mode 100644 index 0000000..92bf878 --- /dev/null +++ b/configs/98netflix @@ -0,0 +1,6 @@ +#!/system/bin/sh + +if [ -f /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml ]; then + grep -q nflx_player_type.*6 /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml && exit 0 + cp /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml.orig && sed -e 's|<int name="nflx_player_type".*||g; s|</map>|<int name="nflx_player_type" value="6" />\n</map>|g' /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml.orig > /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml && rm /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml.orig +fi |