summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-09-02 21:37:09 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-09-02 21:37:09 +0200
commit46a81cc1df39d7090e440cb723425950b2cf3020 (patch)
tree51f82529388a48ec8a786fd74c067c569e44c2e3
parentb31c446ecd85a506af75d9ca609d99f03796e081 (diff)
downloaddevice_samsung_smdk4412-common-46a81cc1df39d7090e440cb723425950b2cf3020.zip
device_samsung_smdk4412-common-46a81cc1df39d7090e440cb723425950b2cf3020.tar.gz
device_samsung_smdk4412-common-46a81cc1df39d7090e440cb723425950b2cf3020.tar.bz2
smdk4412: add netflix hack
Change-Id: Ia18e9c02539697dac093d1ce5c4d0b8bb0b3f38f
-rw-r--r--common.mk4
-rw-r--r--configs/98netflix6
2 files changed, 10 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index bc7d3f2..48a30b4 100644
--- a/common.mk
+++ b/common.mk
@@ -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