Permalink
Browse files

galaxys2: add netflix hack

Change-Id: I77b4e3a5797133acc392e27227ce7ecb401458f0
  • Loading branch information...
1 parent 4831909 commit b577559a06444864a6e2b8f74625e1ce9eecbd59 @rmcc rmcc committed with Daniel Hillenbrand Sep 2, 2013
Showing with 10 additions and 0 deletions.
  1. +4 −0 common.mk
  2. +6 −0 configs/98netflix
View
@@ -29,6 +29,10 @@ PRODUCT_COPY_FILES := \
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/init.recovery.smdk4210.rc:root/init.recovery.smdk4210.rc
+# Netflix hack
+PRODUCT_COPY_FILES += \
+ $(COMMON_PATH)/configs/98netflix:system/etc/init.d/98netflix
+
# Audio
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/tinyalsa-audio.xml:system/etc/tinyalsa-audio.xml \
View
@@ -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

0 comments on commit b577559

Please sign in to comment.