diff options
author | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-09-19 16:00:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-09-19 16:00:50 +0000 |
commit | fe8300b87cee31c5c3c5058fce03bf39df31a661 (patch) | |
tree | a2314243310876b137b9e3a3ffb6b969d5e479ee | |
parent | 07a0b80580a366f264987b53b84ffef42094c342 (diff) | |
parent | b577559a06444864a6e2b8f74625e1ce9eecbd59 (diff) | |
download | device_samsung_galaxys2-common-fe8300b87cee31c5c3c5058fce03bf39df31a661.zip device_samsung_galaxys2-common-fe8300b87cee31c5c3c5058fce03bf39df31a661.tar.gz device_samsung_galaxys2-common-fe8300b87cee31c5c3c5058fce03bf39df31a661.tar.bz2 |
Merge "galaxys2: add netflix hack" into cm-10.2
-rw-r--r-- | common.mk | 4 | ||||
-rw-r--r-- | configs/98netflix | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -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 \ 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 |