Netflix Workaround for 4.4.2 KitKat ROMs - LG Optimus G Pro

If your like me, you use the Netflix profiles and you don't want to use and old version. Nor do you want to disable auto app updates.
I call this a workaround because you have to do it before you run Netflix... Every time. But maybe someone with more experience can make it permanent. Also I think it disables HD Video in Netflix.
Simply open /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml as a text document and place "nflx_player_type" value="8" on the next line under <map>
If you want, you can place the following in a *.sh file and run it with script manager with super user selected.
if [ -f /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml ]; then
grep -q nflx_player_type /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|</map>|<int name="nflx_player_type" value="8" />\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
I found this workaround here: forum.odroid.com/viewtopic.php?f=14&t=63
Sent from my Optimus G Pro using Tapatalk

Netflix Black
ackliph said:
If your like me, you use the Netflix profiles and you don't want to use and old version. Nor do you want to disable auto app updates.
I call this a workaround because you have to do it before you run Netflix... Every time. But maybe someone with more experience can make it permanent. Also I think it disables HD Video in Netflix.
Simply open /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml as a text document and place "nflx_player_type" value="8" on the next line under <map>
If you want, you can place the following in a *.sh file and run it with script manager with super user selected.
if [ -f /data/data/com.netflix.mediaclient/shared_prefs/nfxpref.xml ]; then
grep -q nflx_player_type /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|</map>|<int name="nflx_player_type" value="8" />\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
I found this workaround here: forum.odroid.com/viewtopic.php?f=14&t=63
Sent from my Optimus G Pro using Tapatalk
Click to expand...
Click to collapse
I have an issue of a gray screen but audio on the netflix app using CM 11.
The above seems to be too much work. I found Netflix Black instead which works fine, but no chromecast support.
Download here: (I'll post a link to the dev when I can find it)
https://www.dropbox.com/s/qjza3ic2fyiea14/Netflix-Black-Rotation-V2.1.2.apk
Original Thread Here: http://forum.xda-developers.com/showthread.php?t=1178425

I can confirm that Netflix Black does work fine with CM11.

Netflix black working fine with latest PAC
2SHAYNEZ

Related

[Q] isolated inc repo from cm7 gingerbread?

I am compiling using cm7 for the source but want to isolate the repo strictly to the incredible to prevent needless time and un needed files for the other devices. How do I edit my script to prevent the downloading of a kazillion other devices on my pc?
Code:
#!/bin/bash
cd;
mkdir -p ~/bin;
#to avoid destination errors later
mkdir -p ~/android/system/vendor/htc/inc;
#this will help prevent hundreds of copies of PATH=$PATH:$HOME/bin in .bashrc
#the -f flag means if the file exits
if [ -f ~/bin/repo ]; then
echo "repo detected"
else
curl http://android.git.kernel.org/repo > ~/bin/repo;
chmod a+x ~/bin/repo;
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc;
export PATH=$PATH:$HOME/bin;
fi
cd ~/android/system;
repo init -u http://github.com/greenromproject/GRPmanifest.git;
repo sync;
#we don't want this in $HOME we want it $HOME/proprietary
cd $HOME/proprietary;
wget https://github.com/downloads/Treken/htc-Inc/htc.zip --no-check-certificate;
unzip htc.zip;
mv ~/proprietary/ ~/android/system/vendor/htc/inc/;
rm htc.zip;
#we are using our overlay for everything. This will produce errors since I changed the build system to look in our overlay for rommanager
cd ~/android/system/vendor/greenromproject/;
./get-rommanager;
cd ~/android/system/;
repo sync;
. build/envsetup.sh && brunch inc;
make -j`grep 'processor' /proc/cpuinfo | wc -l` bacon;
cp ~/android/system/out/target/product/inc/update* ~/Desktop;
echo -e [=-build aosp androidmake-=];
#convention says always use exit status exit 0 is a successful execution of the script
exit 0
Treken said:
I am compiling using cm7 for the source but want to isolate the repo strictly to the incredible to prevent needless time and un needed files for the other devices. How do I edit my script to prevent the downloading of a kazillion other devices on my pc?
Code:
#!/bin/bash
cd;
mkdir -p ~/bin;
#to avoid destination errors later
mkdir -p ~/android/system/vendor/htc/inc;
#this will help prevent hundreds of copies of PATH=$PATH:$HOME/bin in .bashrc
#the -f flag means if the file exits
if [ -f ~/bin/repo ]; then
echo "repo detected"
else
curl http://android.git.kernel.org/repo > ~/bin/repo;
chmod a+x ~/bin/repo;
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc;
export PATH=$PATH:$HOME/bin;
fi
cd ~/android/system;
repo init -u http://github.com/greenromproject/GRPmanifest.git;
repo sync;
#we don't want this in $HOME we want it $HOME/proprietary
cd $HOME/proprietary;
wget https://github.com/downloads/Treken/htc-Inc/htc.zip --no-check-certificate;
unzip htc.zip;
mv ~/proprietary/ ~/android/system/vendor/htc/inc/;
rm htc.zip;
#we are using our overlay for everything. This will produce errors since I changed the build system to look in our overlay for rommanager
cd ~/android/system/vendor/greenromproject/;
./get-rommanager;
cd ~/android/system/;
repo sync;
. build/envsetup.sh && brunch inc;
make -j`grep 'processor' /proc/cpuinfo | wc -l` bacon;
cp ~/android/system/out/target/product/inc/update* ~/Desktop;
echo -e [=-build aosp androidmake-=];
#convention says always use exit status exit 0 is a successful execution of the script
exit 0
Click to expand...
Click to collapse
That's a good question..I just had to reinstall Linux so had to redownload the source. I don't have my PC on me right now so I can't check but how much of the actual source is specific devices? MB wise? Maybe you could include something to "rm" all devicesm trees not Inc...downside of thet is next time you run repo sync its just gonna redownload everything...so I'm not sure
Sent from my HTC Incredible using XDA App
/System = 3.4g
/Device = 247mb
doug piston said:
/System = 3.4g
/Device = 247mb
Click to expand...
Click to collapse
where does this go? I'm still learning how to make scripts
Doesn't go anywhere, I'm just saying the whole repo only takes up about 3.5 gigs.
Oh, don't understand what you were saying. It does take a while though. Making the repo device specific would be better for me. You don't know how to make it device specific?
Nope. Never saw a need to. Hardly takes any space to repo the whole thing.
doug piston said:
Nope. Never saw a need to. Hardly takes any space to repo the whole thing.
Click to expand...
Click to collapse
Was looking around...this would take forever to add to your script. but maybe you could potentially "git clone" all the packages you want, while bypassing what you didn't...would be a lot to add but thats the only possible solution i saw in about 20 min of being bored. lol
tcberg2010 said:
Was looking around...this would take forever to add to your script. but maybe you could potentially "git clone" all the packages you want, while bypassing what you didn't...would be a lot to add but thats the only possible solution i saw in about 20 min of being bored. lol
Click to expand...
Click to collapse
Is there a guide that explains how this is done? Don't mind spending the time to change the script if that will speed up the process for people
Not sure what you are trying to spend up. You repo the whole thing once and yes that takes awhile but after that a "repo sync" takes just minutes.
Good point. Thanks! I guess I have a tendency to make things more difficult than they really are.
Don't let me discourage you, if you want to do it keep at it.
Nah, that's ok. I need to channel my energy else where where it will be most beneficial, like getting the vender tree worked out.
Treken said:
Nah, that's ok. I need to channel my energy else where where it will be most beneficial, like getting the vender tree worked out.
Click to expand...
Click to collapse
there is a file in in .repo/project.list ....it lists all the repo's to sync with. you could remove all the other devices except inc but I don't know if a repo sync will overwrite it...i don't think it does though
edit; there is also the manifest.xml in the same file which tells git what the cm repo consists of...you could also try removing the lines from that file as well
Conap to the rescue! I'll take a look and find out, thanks.
Treken said:
Conap to the rescue! I'll take a look and find out, thanks.
Click to expand...
Click to collapse
Yup Conap is pure genius.
DINC|CM7|PROUD AMERICAN!

[INFO] OpenVPN (tun.ko) for LG Tmobile Gslate

I just compiled a tun.ko and got OpenVPN working on the Tmobile Gslate! so I thought I would share:
1- Rooted (thanks to Chandon)
http://forum.xda-developers.com/showthread.php?t=1065882
2- Install tun.ko (Attached below)
download and unzip
Code:
adb remount
adb push tun.ko /system/lib/modules
adb shell
chmod 755 /system/lib/modules/tun.ko
Note: This tun module was built for kernel 2.6.36.3+
3- Install BusyBox using BusyBox Installer (from Market)
Install to /system/xbin
4- Install OpenVPN using OpenVPN Installer (from Market)
Install binary to /system/xbin
Install route to /system/xbin/bb
5- Install OpenVPN Settings (from Market)
6- Install OpenVPN static binary:
Download Static openvpn
Un-bz2 the file (7-Zip on Windows | bunzip2 on linux)
Code:
adb remount
adb push openvpn-static /system/xbin/openvpn
adb shell
chmod 555 /system/xbin/openvpn
7- Link Busybox ifconfig and route to /system/xbin/bb
Code:
adb shell
su
mkdir /system/xbin/bb
ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig
ln -s /system/xbin/route /system/xbin/bb/route
8- Setup OpenVPN Settings (from Market)
OpenVPN settings > Advanced > Load tun kernel module <- turn ON
OpenVPN settings > Advanced > TUN module settings
Load module using - insmod
Path to tun module - /system/lib/modules/tun.ko
9- copy your .conf files to /sdcard/openvpn
REBOOT
CONNECT!~
Extra for SMB mounters : Cifs.ko ! - Attached!
Edit: June 5 '11 - Extra for Asian users : nls_utf8.ko - Attached!
Well, I'm able to connect to my OpenVPN server now, but there must be something different in the binary..."client.conf: Connected" keeps spamming the notification area. Are you having this problem?
On a related note - I've got a couple other options, if I can get my cross-compiling tools set up correctly...I could use SonicWALL's NetExtender app, but that needs ppp_async and ppp_synctty built. I also wanted to be able to talk to a Windows-friendly PoPToP VPN server, but I suspect I'd need the ppp_mppe.ko built for that.
I tried compiling the whole kernel with the options I've mentioned, but I don't think I did it right...the make went all the way through, but I was using the gcc 4.4.3 eabi set in the SDK/NDK toolset. Since then, I've been trying to set things up according notes I found at K's Cluttered loft ( at triple-w dot (noob html limitation workaround) ailis.de/~k/archives/19-ARM-cross-compiling-howto dot HyperText Markup Language ) but start encountering problems when I try to build glibc...do you know of any instructions/tutorials which might help to educate this n00b (aye, that be me) in the fine art of ARM cross compiling?
bealesbane said:
Well, I'm able to connect to my OpenVPN server now, but there must be something different in the binary..."client.conf: Connected" keeps spamming the notification area. Are you having this problem?
On a related note - I've got a couple other options, if I can get my cross-compiling tools set up correctly...I could use SonicWALL's NetExtender app, but that needs ppp_async and ppp_synctty built. I also wanted to be able to talk to a Windows-friendly PoPToP VPN server, but I suspect I'd need the ppp_mppe.ko built for that.
I tried compiling the whole kernel with the options I've mentioned, but I don't think I did it right...the make went all the way through, but I was using the gcc 4.4.3 eabi set in the SDK/NDK toolset. Since then, I've been trying to set things up according notes I found at K's Cluttered loft ( at triple-w dot (noob html limitation workaround) ailis.de/~k/archives/19-ARM-cross-compiling-howto dot HyperText Markup Language ) but start encountering problems when I try to build glibc...do you know of any instructions/tutorials which might help to educate this n00b (aye, that be me) in the fine art of ARM cross compiling?
Click to expand...
Click to collapse
Yeah I have that spamming problem too .. always have with the honeycomb tablets.
I used 4.4.0 eabi, and had to hard code the localversion in the setlocalversion file and absolute path to the eabi modules in the makefile to get it to cross compile
I built and attached the ppp_async.ko , ppp_synctty.ko , ppp_mppe.ko for you (I did not test a insmod as I built and tested the cifs and tun on a friends tablet - do let me know if these work!)
That's great! Thanks for putting those together. All of the modules you created insert fine with insmod (this version of busybox still has an issue with modprobe running on this tablet, suspect may be related to self-referring parameter, but hope to experiment more later) with the exception of mppe. That one comes back with "insmod: init_module '/system/lib/modules/ppp_mppe.ko' failed (File exists)".
This, however, may not be due to the module itself, strictly speaking. The other two, which are presented by SonicWALL as a workaround to their proprietary VPN app, inserted fine, but still produce an I/O error when a connection is attempted...closer inspection of the app's log reveals a similar complaint under the hood:
06-01 08:01:36.848 I/NetExtender.ppp( 8207): Nxhelper: start pppd main routine
06-01 08:01:36.858 D/NetExtender.ppp( 8207): using channel 1
06-01 08:01:36.858 E/NetExtender.ppp( 8207): Couldn't create new ppp unit: File exists
06-01 08:01:36.858 I/NetExtender.ppp( 8207): Nxhelper: pppd hung up, notify the service
My off the wall guess, pending further investigation, is that inserting mppe, or trying to initialize the other two, results in an attempt to create a device handle which is not being properly enumerated? ( i.e., attempting to create an instance of /dev/ppp, which already exists, instead of a new handle, say, /dev/ppp0, ppp1, etc.) Again, just theorizing blindly at this point - but you've certainly given me a great deal to work with, and I say thank ya big big.
I'll update you with any progress I make here, but at least for the time being I still have basic connectivity to one of my networks, and I can do much with that. And the cifs module works a treat as well!
In the meantime, a simple script allows me to toggle the VPN on and off without being annoyed by the spamming...then I add a widget to the script using ScriptManager (from the market) and viola! Look ma, no hands!
Code:
#!/system/bin/sh
BB="/system/xbin/busybox"
VPN="/system/xbin/openvpn"
TUNDTL=`$BB ifconfig tun0 2>&1`
RESULT=$?
if [ $((RESULT)) -eq 1 ]; then
$VPN --config /mnt/sdcard/openvpn/client.conf --daemon MYVPN
else
VPNPID=`ps openvpn | grep "^root"`
VPNPID=`echo $VPNPID | cut -d" " -f2`
if [ $((VPNPID)) -gt 99 ]; then
$BB kill -KILL $VPNPID
fi
fi
exit
(Just for anyone who doesn't want to wait until OpenVPN Settings gets a bugfix for Honeycomb. Obviously, adjust locations as needed. Oh, and don't give the script a name that starts with "openvpn"...unless you WANT a kamikaze script. This simple script obviously wouldn't work for multiple tunnels, (if they're even supported), but it does ya fine for the basic config.)
awesome idea for the spamming .. sadly I have 8 openVPN servers I switch between so i have to put up with the spamming.. any idea what the reason of the spamming is? maybe contact the dev?
The source for the app is available at 'code.google.com/p/android-openvpn-settings'. The issue has been reported already by a few people (issue 70), but it looks like there are quite a few other issues reported, so no telling if or when Mr. Schäuffelhut will have a chance to review it. It seems like it would be a good starter project for a would-be contributor...I haven't done any java developing, but it seems like it would be easier to isolate our issue and tweak it than bloat my simple script to allow multiple PIDs to be tracked and toggled...though the latter is certainly possible, and after I get my second OpenVPN server online (Audiogalaxy offline for better part of day yesterday, need to make myself independent of that), if the Java is too daunting I just may do so. So many tempting projects, so little time.
Simple VPN handler script to tide us over until 0.4.8 or more in OpenVPN-Settings
Ok, since you were so kind as to compile those extra modules for me, I figure the least I can do is give you something in return. Here's a simple VPN handler to manage multiple tunnels. Filenames for config files are entered relative to the CFGS folder, and module load/remove is manual rather than auto...and I put in connection sharing, as I'm using it this way...but it'll certainly let you use as many tunnels as the kernel will let you work with.
As always, the standard, 'you take your life into your own hands if you use this code, not responsible for problems up to and including user death' disclaimer applies. It seems to be working for me, though I'm only using 2 VPN's ATM.
Good luck! (Will still let you know if I make any progress in Java Dev)
Code:
[email protected]: /data/local/bin > cat ./vpnhandler
#!/system/bin/sh
export BB="/system/xbin/busybox"
export VPN="/system/xbin/openvpn"
export MODS="/system/lib/modules"
export CFGS="/mnt/sdcard/openvpn"
export SPACES=" "
LOOPBACK=0
while [ $((LOOPBACK)) -eq 0 ]; do
LOOPBACK=1
CIFMOD=`$BB lsmod | grep -c "^cifs"`
if [ $((CIFMOD)) -eq 0 ]; then CIFMOD="Load"; else CIFMOD="Remove"; fi
TUNMOD=`$BB lsmod | grep -c "^tun"`
if [ $((TUNMOD)) -eq 0 ]; then TUNMOD="Load"; else TUNMOD="Remove"; fi
clear
echo "Simple VPN Handler"
echo "=================="
echo
echo "ACT # Tunnel Name Configuration File "
echo "--- --- -------------------- ------------------------------"
while read vpndefs; do
TUNNO=`echo "${vpndefs}" | cut -d"~" -f1`
TUNNAME=`echo "${vpndefs}" | cut -d"~" -f2`
TUNCFG=`echo "${vpndefs}" | cut -d"~" -f3`
TUNSTAT=`$BB ps w | grep openvpn | grep -c "\-\-daemon ${TUNNAME}\$"`
if [ $((TUNSTAT)) -eq 1 ]; then TUNSTAT="*"; else TUNSTAT=" "; fi
DISPLINE=" ${TUNSTAT} ${SPACES:0:$((3-${#TUNNO}))}${TUNNO} ${TUNNAME}${SPACES:0:$((22-${#TUNNAME}))}${TUNCFG}"
echo "${DISPLINE}"
done < "${CFGS}/cfglist"
echo
echo "_______________________________________________________________"
echo
echo " A - Add a new tunnel definition"
echo " D - Delete an existing tunnel "
echo " C - ${CIFMOD} CIFS Module "
echo " T - ${TUNMOD} TUN Module "
echo " S - Share tap0 to eth0 traffic "
echo " X - Break traffic forwarding "
echo " Q - Quit "
echo
echo -n " Select action, or a tunnel number to toggle on or off : "
read actkey
if [ "$actkey" = "C" -o "$actkey" = "c" ]; then
LOOPBACK=0
if [ "$CIFMOD" = "Load" ]; then
LOADMOD=`$BB insmod ${MODS}/cifs.ko 2>&1`
else LOADMOD=`/system/bin/toolbox rmmod cifs.ko 2>&1`
fi
fi
if [ "$actkey" = "T" -o "$actkey" = "t" ]; then
LOOPBACK=0
if [ "$TUNMOD" = "Load" ]; then
LOADMOD=`$BB insmod ${MODS}/tun.ko 2>&1`
else LOADMOD=`/system/bin/toolbox rmmod tun.ko 2>&1`
fi
fi
if [ "$actkey" = "S" -o "$actkey" = "s" ]; then
LOOPBACK=0
iptables -F; iptables -t nat -F; iptables -X; iptables -t nat -X
echo 1 | tee /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT
fi
if [ "$actkey" = "X" -o "$actkey" = "x" ]; then
LOOPBACK=0
iptables -F; iptables -t nat -F; iptables -X; iptables -t nat -X
echo 0 | tee /proc/sys/net/ipv4/ip_forward
fi
if [ "$actkey" = "A" -o "$actkey" = "a" ]; then
LOOPBACK=0
echo; echo -n " Enter tunnel number to assign : "; read TUNNO
TUNCHK=`cat "${CFGS}/cfglist" | grep -c "^${TUNNO}~"`
if [ $((TUNCHK)) -eq 0 ]; then
echo; echo -n " Enter a name for the tunnel : "; read TUNNAME
echo; echo -n " Enter filepath/name for config file (relative to ${CFGS}) : "; read TUNCFG
echo "${TUNNO}~${TUNNAME}~${TUNCFG}" >> "${CFGS}/cfglist"
else echo -n " That number is already in use. "; read TUNNO
fi
fi
if [ "$actkey" = "D" -o "$actkey" = "d" ]; then
LOOPBACK=0
echo; echo -n " Enter tunnel number to delete : "; read TUNNO
TUNCHK=`cat "${CFGS}/cfglist" | grep -c "^${TUNNO}~"`
if [ $((TUNCHK)) -eq 0 ]; then
echo -n " That number is not currently in use. "; read TUNNO
else vpndefs=`cat "${CFGS}/cfglist" | grep "^${TUNNO}~"`
TUNNAME=`echo "${vpndefs}" | cut -d"~" -f2`
TUNSTAT=`$BB ps w | grep openvpn | grep -c "\-\-daemon ${TUNNAME}\$"`
if [ $((TUNSTAT)) -gt 0 ]; then
echo; echo -n " Tunnel is active. Turn off before deleting."; read TUNNO
else RESULT=`cat "${CFGS}/cfglist" | egrep -v "^${TUNNO}~" > "${CFGS}/cfglist.tmp"`
$BB mv -f "${CFGS}/cfglist.tmp" "${CFGS}/cfglist"
fi
fi
fi
if [ "$actkey" = "Q" -o "$actkey" = "q" ]; then LOOPBACK=0; fi
if [ $((LOOPBACK)) -eq 1 ]; then
TUNCHK=`cat "${CFGS}/cfglist" | grep -c "^${actkey}~"`
LOOPBACK=0
if [ $((TUNCHK)) -eq 0 ]; then
echo -n " That number is not currently in use. "; read TUNNO
else TUNNO="${actkey}"
vpndefs=`cat "${CFGS}/cfglist" | grep "^${TUNNO}~"`
TUNNAME=`echo "${vpndefs}" | cut -d"~" -f2`
TUNCFG=`echo "${vpndefs}" | cut -d"~" -f3`
TUNSTAT=`$BB ps w | grep openvpn | grep -c "\-\-daemon ${TUNNAME}\$"`
if [ $((TUNSTAT)) -gt 0 ]; then
VPNPID=`$BB ps w | grep openvpn | grep "\-\-daemon ${TUNNAME}"`
VPNPID=`echo $VPNPID | cut -d" " -f1`
if [ $((VPNPID)) -gt 99 ]; then
RESULT=`$BB kill -KILL $VPNPID`
fi
else RESULT=`$VPN --config "${CFGS}/${TUNCFG}" --daemon "${TUNNAME}"`
fi
fi
fi
if [ "$actkey" = "Q" -o "$actkey" = "q" ]; then LOOPBACK=1; fi
done
exit
Note: It'll throw out some screen errors if you don't have a zero length file in $CFGS/cfglist, but it'll let you add your first tunnel anyway. (Didn't bother to trap for that.)
Oh, and ScriptManager doesn't seem to like digging for scripts in /data/local/bin, but doesn't appear to have a problem executing things in /mnt/sdcard, even though I don't seem to be able to set the execute bit on any file in that fs. There's reference in Google of known glitch in some kernels that cause fs' mounted with the 'default_permissions,allow_other' flags to behave strangely. If they ever fix that, you may need to relocate, that's all.
Note also that the "ACT" column which denotes 'active' tunnels with an '*' only verifies that there is a process running with the designated label name. At this time, actual connectivity is left to you to determine.
it's very helpful, thanks very much!!
but could you compile nls_utf8.ko too? please
You should try and come up with a working recovery!
Sent from my LG-V909 using XDA Premium App
bealesbane said:
Ok, since you were so kind as to compile those extra modules for me, I figure the least I can do is give you something in return. Here's a simple VPN handler to manage multiple tunnels. Filenames for config files are entered relative to the CFGS folder, and module load/remove is manual rather than auto...and I put in connection sharing, as I'm using it this way...but it'll certainly let you use as many tunnels as the kernel will let you work with.
As always, the standard, 'you take your life into your own hands if you use this code, not responsible for problems up to and including user death' disclaimer applies. It seems to be working for me, though I'm only using 2 VPN's ATM.
Good luck! (Will still let you know if I make any progress in Java Dev....
Click to expand...
Click to collapse
Bealsbane way to go man, that is far more code than I could figure out! now i feel like i owe you a beer! haha .. I tried the code but it helps to have a gui currently .. i although do have alot of Java experience and possibly you and I could get a new OpenVPN Settings/Installer for gingerbread/honeycomb based devices!
once again thanks!
aureole999 said:
it's very helpful, thanks very much!!
but could you compile nls_utf8.ko too? please
Click to expand...
Click to collapse
Added to the first Post .. please test it and let me know if it works! good luck!
edit: tested by aureole999 and confirmed working
Excellent work ru1dev. I just added this thread to the G-Slate XDA bit.ly bundle. Would you mind if I posted a link to it over on G-SlateFans?
Bling_Diggity said:
Excellent work ru1dev. I just added this thread to the G-Slate XDA bit.ly bundle. Would you mind if I posted a link to it over on G-SlateFans?
Click to expand...
Click to collapse
Go ahead as long as it is a link back to the OP. Thanks for spreading the knowledge
please dont bash me as i know im a little off topic but hi everyone i have a major issue with my rooted gslate.if anyone can help it would be greatly appreciated. i downloaded cw from the market and when it askes you for compatibility i accedently chose the option (lg optimus 3d) thinking it was for my gslate and now after i turned off the gslate and go to turn it back on its stuck on LG blackscreen and says
[HasValidKernelImage] Magic value mismatch:
[DetectOperatingSystems]kernel image is invalid !!!
Starting Fastboot USB download protocol
Ive looked all over the internet and cant find anything to help me out so please can someone help me.
maybe a way to nvflash the proper kernel back.
tun.ko checksum
Hi guys, can anybody please post the md5sum output of the tun.ko? even though im using the same kernel, i cannot load the module on my g-slate. thanks
jomnoc said:
Hi guys, can anybody please post the md5sum output of the tun.ko? even though im using the same kernel, i cannot load the module on my g-slate. thanks
Click to expand...
Click to collapse
md5 - 3daf2d134dc2ae6c4a40fe3d8ac49344
Thanks! I have 6707fd6a79cc849d13e8dd4016f96028 .... ideas? can you upload your file? Thanks again
jomnoc said:
Thanks! I have 6707fd6a79cc849d13e8dd4016f96028 .... ideas? can you upload your file? Thanks again
Click to expand...
Click to collapse
yes that is the md5 for the tun.ko .. in a rush i gave you the md5 for the zip of the tun.ko previously. are you sure you are running kernel 2.6.36.3+
it has to be exactly that kernel..with the '+' on the end
yes i am. or i was haha.. it was a friend's tablet. but it certainly had that kernel version. thanks for the help. if i get it again i may ask for help

[Scripts] Nexus 4 LTE Build Prop Editor & Tmobile Soundfile Edits

The following scripts are made to ease the life of a flashaholic and LTE. 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.
Code:
#!/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
Code:
#!/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://forum.xda-developers.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
justinaz said:
The following scripts are made to ease the life of a flashaholic and LTE. 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
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.
Code:
#!/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
Code:
#!/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://forum.xda-developers.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
Click to expand...
Click to collapse
I LOVE YOU !!! lol
Will this work with the new radio?
Sent from my Nexus 4
Contivity said:
Will this work with the new radio?
Sent from my Nexus 4
Click to expand...
Click to collapse
No, newest radio can't use lte
I know this is off topic, but was wondering if you can help me with this. Can you please make a script that will add these 4 lines to the build.prop?
ro.ril.hsxpa=2
ro.ril.gprsclass=12
ro.ril.hsdpa.category=24
ro.ril.hsupa.category=7
I got these lines from Simms22 awhile back. It helps with data connection and speeds with T-Mobile. Please! =)
Goog1e Phone said:
I know this is off topic, but was wondering if you can help me with this. Can you please make a script that will add these 4 lines to the build.prop?
ro.ril.hsxpa=2
ro.ril.gprsclass=12
ro.ril.hsdpa.category=24
ro.ril.hsupa.category=7
I got these lines from Simms22 awhile back. It helps with data connection and speeds with T-Mobile. Please! =)
Click to expand...
Click to collapse
Its pretty easy to add additional build prop additions.
THis is the new one.... i tested and appears to work correctly
Code:
#!/system/bin/sh
# Nexus 4 build.prop Editor to enabled LTE
# created by XDA user: justinaz
# created on 4/13/13
# version: b02
# 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
line4=ro.ril.hsxpa
lineArg4=2
line5=ro.ril.gprsclass
lineArg5=12
line6=ro.ril.hsdpa.category
lineArg6=24
line7=ro.ril.hsupa.category
lineArg7=7
# X should end with number of changes above 1 2 3
for X in 1 2 3 4 5 6 7
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
justinaz said:
Its pretty easy to add additional build prop additions.
THis is the new one.... i tested and appears to work correctly
Code:
#!/system/bin/sh
# Nexus 4 build.prop Editor to enabled LTE
# created by XDA user:justinaz
# created on 4/13/13
# version:b02
# 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
line4=ro.ril.hsxpa
lineArg4=2
line5=ro.ril.gprsclass
lineArg5=12
line6=ro.ril.hsdpa.category
lineArg6=24
line7=ro.ril.hsupa.category
lineArg7=7
# X should end with number of changes above 1 2 3
for X in 1 2 3 4 5 6 7
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
Click to expand...
Click to collapse
You're the man. Thank you for this! I would give you 10 thanks if I could!
Sent from my Nexus 4
Will these need to run on boot or just run once?
Sent from my Nexus 4 using xda app-developers app
n2d551 said:
Will these need to run on boot or just run once?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Just once until you dirty flash a rom
It said I need to mount? How do I that?
Sent from my Nexus 4 using xda premium
Julianmgn said:
It said I need to mount? How do I that?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Can you give the actual error it says and detail about how you are running it? Your description is very vague.
Couple things it could be...... of the top of my head
are you running it as ROOT? (its required)
do you have busybox installed? (its required)
are you trying to run this in recovery/init.d script? (this is a shell script not one of those, you would have to modify it to run like that)
justinaz said:
Can you give the actual error it says and detail about how you are running it? Your description is very vague.
Couple things it could be...... of the top of my head
are you running it as ROOT? (its required)
do you have busybox installed? (its required)
are you trying to run this in recovery/init.d script? (this is a shell script not one of those, you would have to modify it to run like that)
Click to expand...
Click to collapse
I'm rooted and I have busy box installed, I downloaded scripter like the op said and when I try to run it, it give me the error "mount: permission denied are you root?"
Sent from my Nexus 4 using xda premium
Julianmgn said:
I'm rooted and I have busy box installed, I downloaded scripter like the op said and when I try to run it, it give me the error "mount: permission denied are you root?"
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Same thing happened to me, try script manager, it worked for me.
Sent from my Nexus 4 using Tapatalk 2
MidtownHD said:
Same thing happened to me, try script manager, it worked for me.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Tried that also its giving me the same error
Sent from my Nexus 4 using xda premium
Julianmgn said:
Tried that also its giving me the same error
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
well, I would delete app data from root access app and the script app, then uninstall the script app. Reboot phone, check root access with other apps, ex. a file manager, then install preferred script app and try the scripts again. Worst case, do it manually.
Sent from my Nexus 4 using Tapatalk 2
You are making it more complicated than you need to.
You have to run the script as root. If you are using scripter long press the script and edit it. On the top there is a check box for Run as root? Check that and hit save. Then run the script.
Sent from my Nexus 4 using Tapatalk 2
Or just run it in rom toolbox
Sent from my Nexus 4 using xda app-developers app
justinaz said:
You are making it more complicated than you need to.
You have to run the script as root. If you are using scripter long press the script and edit it. On the top there is a check box for Run as root? Check that and hit save. Then run the script.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Maybe the apps are not detecting the root access correctly.
Sent from my Nexus 4 using Tapatalk 2
justinaz said:
You are making it more complicated than you need to.
You have to run the script as root. If you are using scripter long press the script and edit it. On the top there is a check box for Run as root? Check that and hit save. Then run the script.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Yup that did it lol
Sent from my Nexus 4 using xda premium
Julianmgn said:
Yup that did it lol
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
so you never granted root access?
Sent from my Nexus 4 using Tapatalk 2

Moved

http://forum.xda-developers.com/showthread.php?t=2390162
Thx mate, was looking for this. Just wondering if there's a script for deodexing stock rooted roms?
jaidev.s said:
Thx mate, was looking for this. Just wondering if there's a script for deodexing stock rooted roms?
Click to expand...
Click to collapse
why not give dsixda kitchen a try:fingers-crossed:
Outstanding! The idea odexing user apps is really awesome. I applied -fr and -dat (not -all why is because of Nottach Xposed and Wanam Xposed) on my SGS4(Sammy 4.2.2, deodexed) and it works flawless
I think -ncpa and -ncsa(opposite of cpa and csa) will be useful for people who want to exclude odexing a few of them. Is this a good idea?
marbulas said:
Outstanding! The idea odexing user apps is really awesome. I applied -fr and -dat (not -all why is because of Nottach Xposed and Wanam Xposed) on my SGS4(Sammy 4.2.2, deodexed) and it works flawless
I think -ncpa and -ncsa(opposite of cpa and csa) will be useful for people who want to exclude odexing a few of them. Is this a good idea?
Click to expand...
Click to collapse
In the next release i add this feature Good Idea Sir
I've a question.
When I tried to update any apps already installed with installing from package installer directly(like through file manager and not via Play Store), system says the space to install this app is not enough.
It's a problem about odexs in /data/app.
My tiny knowledge about to solve this problem is to remove all of them and reinstall them which makes trouble.
Is there a solution to solve this problem without reflashing rom and doing factory reset?
marbulas said:
I've a question.
When I tried to update any apps already installed with installing from package installer directly(like through file manager and not via Play Store), system says the space to install this app is not enough.
It's a problem about odexs in /data/app.
My tiny knowledge about to solve this problem is to remove all of them and reinstall them which makes trouble.
Is there a solution to solve this problem without reflashing rom and doing factory reset?
Click to expand...
Click to collapse
Open terminal emulator and type this:
bb="busybox";
$bb clear;
root=`$bb id -u`;
if $bb [[ "$root" == "0" ]];
then
cd /data/app;
for app in *.odex;
do
apk=`echo $app | $bb sed -e 's:.odex:.apk:g'`;
if $bb [ ! -f $apk ];
then
echo "Removing $app...";
$bb rm -f $app;
fi;
done;
else
echo "Root Permission Not Acquired!";
echo "Type 'su' and try again";
exit;
fi;
MatrixDJ96 said:
Open terminal emulator and type this:
bb="busybox";
$bb clear;
root=`$bb id -u`;
if $bb [[ "$root" == "0" ]];
then
cd /data/app;
for app in *.odex;
do
apk=`echo $app | $bb sed -e 's:.odex:.apk:g'`;
if $bb [ ! -f $apk ];
then
echo "Removing $app...";
$bb rm -f $app;
fi;
done;
else
echo "Root Permission Not Acquired!";
echo "Type 'su' and try again";
exit;
fi;
Click to expand...
Click to collapse
I rewrote the code you gave me to use as an init.d script...
for i in /data/app/*.odex
do
apk=`echo $i | busybox sed -e 's:.odex:.apk:g'`
if [ ! -f $apk ];
then
rm -f $i
fi;
done
Is this correct? Is there anything I can reduce more or wrong something?
Sorry for my ignorance ;D
Edit : Just an wrong word
marbulas said:
I rewrote the code you gave me to use as an init.d script...
for i in /data/app/*.odex
do
apk=`echo $i | busybox sed -e 's:.odex:.apk:g'`
if [ ! -f $apk ];
then
rm -f $i
fi;
done
Is this correct? Is there anything I can reduce more or wrong something?
Sorry for my ignorance ;D
Edit : Just an wrong word
Click to expand...
Click to collapse
Error...
Write This:
#!/system/bin/sh
cd /data/app
for o in *.odex
do
a=`echo $o | busybox sed -e 's:.odex:.apk:g'`
if [ ! -f $a ];
then
busybox rm -f $o
fi;
done
Remember: Set perm 777 and own 0:0
By MatrixDJ96 For You
This script works on rooted Stock i9500 ROM?
leokak said:
This script works on rooted Stock i9500 ROM?
Click to expand...
Click to collapse
Sure
Sent from my GT-S5570 using xda app-developers app
MatrixDJ96 said:
Sure
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
I've tried and get this... What can i do?
Sent from my GT-I9500 using xda app-developers app
leokak said:
I've tried and get this... What can i do?
Sent from my GT-I9500 using xda app-developers app
Click to expand...
Click to collapse
Install Busybox by Stericson (In Play Store)
Try Again
Sent from my GT-S5570 using xda app-developers app
MatrixDJ96 said:
Install Busybox by Stecson (In Play Store)
Try Again
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
Worked!! Thank you!! xD
New Update!
Changelog:
Universal Odex Version 6.3
- A Lot Of Bugs Fixed
http://forum.xda-developers.com/showthread.php?t=2527268
Go here to follow my new script
When i type dexo -h it says not found..
Sent from my GT-I9500 using XDA Premium 4 mobile app
wan_6142 said:
When i type dexo -h it says not found..
Sent from my GT-I9500 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Have you installed Odexer Tool or Universal Odex Script?

[Q] How to change dns in android 4.3

hello,I am using tigra rom android 4.3...I can't change my dns with the usual method,both apps and manual in advanced setting ,,anyone can help me with this?
rulsfabre said:
hello,I am using tigra rom android 4.3...I can't change my dns with the usual method,both apps and manual in advanced setting ,,anyone can help me with this?
Click to expand...
Click to collapse
An article say, The Dns part of the 4.3 OS has been changed significantly, so the usual methode not working anynore
change Dns without root
ayahmayra said:
An article say, The Dns part of the 4.3 OS has been changed significantly, so the usual methode not working anynore
Click to expand...
Click to collapse
There is this app that without root change dns:
set google's dns
play.google.com/store/apps/details?id=com.dnset
pro user set dns:
play.google.com/store/apps/details?id=com.dnsetpro
adfadf89 said:
There is this app that without root change dns:
set google's dns
play.google.com/store/apps/details?id=com.dnset
pro user set dns:
play.google.com/store/apps/details?id=com.dnsetpro
Click to expand...
Click to collapse
thank bro!!!! it's working for me
Change your DNS servers in Android.
You can change the same thing on your rooted Android Device.
[email protected]:/ # ndc resolver flushif -- flushes old DNS servers
[email protected]:/ # ndc resolver flushdefaultif -- flush resolver
[email protected]:/ # ndc resolver setifdns <iface> <domains> <dns1> <dns2> ... -- Add the new servers
[email protected]:/ # ndc resolver setdefaultif -- Set as the default device
rulsfabre said:
hello,I am using tigra rom android 4.3...I can't change my dns with the usual method,both apps and manual in advanced setting ,,anyone can help me with this?
Click to expand...
Click to collapse
Change your DNS servers in Android.
You can change the same thing on your rooted Android Device.
With root privileges and a terminal app or (adb shell):
[email protected]:/ # ndc resolver flushif -- flushes old DNS servers
[email protected]:/ # ndc resolver flushdefaultif -- flush resolver
[email protected]:/ # ndc resolver setifdns <iface> <domains> <dns1> <dns2> ... -- Add the new servers
[email protected]:/ # ndc resolver setdefaultif -- Set as the default device
---
If you liked my post, then don't hesitate to hit the thanks button
I've been struggling with this issue in these days.
As you said, something is significantly changed in Android 4.3+
None of programs I tried so far worked.
This is my solution, not noob friendly!
adb shell
su
mount -o remount,rw /system
vi /etc/dhcpcd/dhcpcd-hooks/20-dns.conf
in vi editor you'll see set_dns_props() funtion which sets up dns servers when a wifi connection is established.
Code:
set_dns_props()
{
case "${new_domain_name_servers}" in
"") return 0;;
esac
count=1
for i in 1 2 3 4; do
setprop dhcp.${intf}.dns${i} ""
done
count=1
for dnsaddr in ${new_domain_name_servers}; do
setprop dhcp.${intf}.dns${count} ${dnsaddr}
count=$(($count + 1))
done
separator=" "
if [ -z "$new_domain_name" ]; then
separator=""
else
if [ -z "$new_domain_search" ]; then
separator=""
fi
fi
setprop dhcp.${interface}.domain "${new_domain_name}$separator${new_domain_search}"
}
as you see new_domain_name_servers contains dns servers array
add this line
Code:
new_domain_name_servers="8.8.4.4 8.8.8.8 $new_domain_name_servers"
function will be like below
Code:
set_dns_props()
{
new_domain_name_servers="8.8.4.4 8.8.8.8 $new_domain_name_servers"
case "${new_domain_name_servers}" in
"") return 0;;
esac
count=1
for i in 1 2 3 4; do
setprop dhcp.${intf}.dns${i} ""
done
count=1
for dnsaddr in ${new_domain_name_servers}; do
setprop dhcp.${intf}.dns${count} ${dnsaddr}
count=$(($count + 1))
done
separator=" "
if [ -z "$new_domain_name" ]; then
separator=""
else
if [ -z "$new_domain_search" ]; then
separator=""
fi
fi
setprop dhcp.${interface}.domain "${new_domain_name}$separator${new_domain_search}"
}
Edit: in vi editor
press i to edit mode. Make your changes then press esc. type :wq to write/exit
@ [email protected]:
Thank you very much, works in 4.4.2 on a LG G2, too.
(And if you use Root-Explorer, you don't need adb and vi, the File-Editor of Root-Explorer is easier IMHO.)
Needed that to use a home dnsmasq Server to access an internal owncloud Server with a router without NAT-Loopback.
PS:
A reboot is needed to make that work.
Override DNS for KitKat
bazon said:
@ [email protected]:
Thank you very much, works in 4.4.2 on a LG G2, too.
(And if you use Root-Explorer, you don't need adb and vi, the File-Editor of Root-Explorer is easier IMHO.)
Needed that to use a home dnsmasq Server to access an internal owncloud Server with a router without NAT-Loopback.
PS:
A reboot is needed to make that work.
Click to expand...
Click to collapse
Does it reliably work on 4.4.2? I'm surprised because I wrote an application which use the "ndc" command to override the DNS values.
I thought it was the only way...
P.S. My application is called "Override DNS for KitKat" and it's on the Play Store.
bazon said:
@ [email protected]:
Thank you very much, works in 4.4.2 on a LG G2, too.
(And if you use Root-Explorer, you don't need adb and vi, the File-Editor of Root-Explorer is easier IMHO.)
Needed that to use a home dnsmasq Server to access an internal owncloud Server with a router without NAT-Loopback.
PS:
A reboot is needed to make that work.
Click to expand...
Click to collapse
I am a terminal guy
Reboot is not required, just restart your wifi.
m.chinni said:
Does it reliably work on 4.4.2? I'm surprised because I wrote an application which use the "ndc" command to override the DNS values.
I thought it was the only way...
P.S. My application is called "Override DNS for KitKat" and it's on the Play Store.
Click to expand...
Click to collapse
Yes it does work on 4.4.2
Two additions:
1. IMPORTANT!
If you - as I proposed before - use Root Explorer to edit the 20-dns.conf file, Root Explorer will create a backup file called 20-dns.conf-bak. This file is parsed as well! So you have to delete that backup file if you don't want to have double definitions..
(I notices this, as my own DNSMASQ Server 192.168.2.222 was dns1 and dns2 as well...)
2. In order to avoid waiting for a timeout in another WLAN than my home WLAN, I wanted this custom DNS settings only to be applied in my own WLAN. So I wanted to include an if-condition that is only applied in my home-WLAN. As 20-dns.conf is some sort of bash file, I used the getprop function to find out how I could identify my own network. Unfortunately, there is no way to get the SSID, but something nearly as good: the Domain!
Type in a terminal on your android device:
Code:
$ getprop | grep domain
[dhcp.wlan0.domain]: [Speedport_W_921V_1_35_000]
(in my case.)
So I changed my /etc/dhcpcd/dhcpcd-hooks/20-dns.conf to only apply a custom DNS for that domain:
Code:
# Set net.<iface>.dnsN properties that contain the
# DNS server addresses given by the DHCP server.
if [[ $interface == p2p* ]]
then
intf=p2p
else
intf=$interface
fi
set_dns_props()
{
if [ "$new_domain_name" == "Speedport_W_921V_1_35_000" ]
then new_domain_name_servers="192.168.2.222 ${new_domain_name_servers}"
fi
case "${new_domain_name_servers}" in
"") return 0;;
esac
count=1
for i in 1 2 3 4; do
setprop dhcp.${intf}.dns${i} ""
done
count=1
for dnsaddr in ${new_domain_name_servers}; do
setprop dhcp.${intf}.dns${count} ${dnsaddr}
count=$(($count + 1))
done
separator=" "
if [ -z "$new_domain_name" ]; then
separator=""
else
if [ -z "$new_domain_search" ]; then
separator=""
fi
fi
setprop dhcp.${interface}.domain "${new_domain_name}$separator${new_domain_search}"
}
unset_dns_props()
{
for i in 1 2 3 4; do
setprop dhcp.${intf}.dns${i} ""
done
setprop dhcp.${interface}.domain ""
}
case "${reason}" in
BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT) set_dns_props;;
EXPIRE|FAIL|IPV4LL|RELEASE|STOP) unset_dns_props;;
esac
(you see the if-condition with the domain added...)
You can watch the settings with
Code:
$ getprop | grep dns
The settings are applied after a connection change, as [email protected] stated right.
PS: I don't use a Galaxy Note, but a LG G2, and not Android 4.3, but 4.4.
This seems to work in general, maybe the thread is better located in a general section than in a device-specific section?
Change DNS on kk 4.4.2 on 3G or 4G
Hello guys
i have been searching for a way to change my dns on kk 4.4.2 while on mobile date network but no luck is that anyone can help me to do that plz.
Thanks
Any methods that work for lollipop?
The script worked for my Samsung GS2 but my Moto XT1644 doesn't have a system/etc/dhcpcd directory. Is it OK to create the directory tree and copy a downloaded 20-dns.conf script into it? If so, would I need to set permissions for the modified script?

Categories

Resources