[Nexus 4 Themes and Apps] justinaz:
The following scripts are made to ease the life of a flashaholic and LTE. :D I flash a ton of Cyanogen Nightlies and new Roms of others.

They have been working for me for a while now and I though I should share them.

Soon ill look into adding the APN for Tmobile LTE to the apns-conf.xml and possibly combine into one script.

You Must Have Root! I have run these using the free $cripter but you should be able to use Script Manager as well.

I have also added them as attachments below.

Please test these before blindly running. Just because they work flawless for me doesn't mean it will for everyone in every case. The Tmobile sound edits are the newest one so please watch this one a little more careful and I have not run it as much and mine uses tab and not spaces as the reference post.

If you find any of the scripts useful, feel free to hit the [Thanks] button below

Disclaimer: I am not responsible bricking your phone, voiding your warranty, or any other issue may have as result of using these scripts

Build.prop Editor

Last Updated: 04/13/2013

Version: b01 custom b02 prop edit to possible speed up internet

Description: This will change entries if already in build.prop or add the needed entries at the bottom to enable LTE and also perfered network options in Cyanogenmod. It will make a backup of the file prior to doing this.

#!/system/bin/sh

# Nexus 4 build.prop Editor to enabled LTE
# created by XDA user:	justinaz
# created on 4/13/13
# version:	b01

# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi

# Set the File to Edit
FILE=/system/build.prop

#Make Backup of build.prop
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi

# Set the Build.prop items below
# line# is the Build Prop you want to change
# lineArg# is the value you want it to be
line1=telephony.lteOnGsmDevice
lineArg1=1
line2=ro.telephony.default_network
lineArg2=9
line3=ro.ril.def.preferred.network
lineArg3=9

# X should end with number of changes above 1 2 3
for X in 1 2 3
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
echo $prop=$arg
if grep -Fq $prop $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo $lineNum
sed -i "${lineNum} c${prop}=${arg}" $FILE
else
echo "$prop does not exist in $FILE"
echo "Adding to end of $FILE"
echo $prop=$arg >> $FILE
fi
done;

# mounting system as ro
busybox mount -o remount,ro /system

Soundfile Editor (Tmobile Fixes)

Last Updated: 04/13/2013

Version: s01

Description: This will change the needed snd_soc_msm_2x_Fusion3 entries for T-Mobile. It will make a backup prior to doing this.

Reference: XDA post: simobile: Fix for no in-call audio/T-Mobile US/4.2.2/.33 radio or lower

#!/system/bin/sh

# Nexus 4 Sound File Editor to fix enabled LTE Sound Issues
# created by XDA user:	justinaz
# created on 4/13/13
# version:	s01
# Reference XDA post:	simobile	http://xdaforums.com/showthread.php?t=2233319

# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi

# Set the File to Edit
FILE=/system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3

#Make Backup File we ar editing just in case
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi

# line# is the Line Item you want to change
# lineArg# is the value you want it to be
line1="	ACDBID	81:1"
lineArg1="	ACDBID	7:1"
line2="	ACDBID	91:2"
lineArg2="	ACDBID	6:2"

# X should end with number of changes above 1 2
for X in 1 2
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
if grep -Fq "$prop" $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo "Line number $lineNum found for: $prop"
sed -i "${lineNum} c${arg}" $FILE
echo "$lineNum from: $prop :TO: $arg"
else
echo "$prop does not exist in $FILE"
fi
done;

# mounting system as ro
busybox mount -o remount,ro /system