Skip to content

Commit

Permalink
galaxys2: add netflix hack
Browse files Browse the repository at this point in the history
Change-Id: I77b4e3a5797133acc392e27227ce7ecb401458f0
  • Loading branch information
rmcc authored and Daniel Hillenbrand committed Sep 2, 2013
1 parent 4831909 commit b577559
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common.mk
Expand Up @@ -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 \
Expand Down
6 changes: 6 additions & 0 deletions 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

0 comments on commit b577559

Please sign in to comment.