Skip to content

Commit

Permalink
msm8660-common: add netflix hack
Browse files Browse the repository at this point in the history
  • Loading branch information
dastin1015 committed Mar 24, 2014
1 parent edddf91 commit a149eba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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
3 changes: 3 additions & 0 deletions msm8660.mk
Expand Up @@ -116,6 +116,9 @@ PRODUCT_COPY_FILES += \
device/htc/msm8660-common/firmware/leia_pm4_470.fw:system/etc/firmware/leia_pm4_470.fw \
device/htc/msm8660-common/firmware/vidc_1080p.fw:system/etc/firmware/vidc_1080p.fw

# Netflix hack
PRODUCT_COPY_FILES += \
device/htc/msm8660-common/configs/98netflix:system/etc/init.d/98netflix

# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi
Expand Down

0 comments on commit a149eba

Please sign in to comment.