• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root CM 11 lg d320n

Status
Not open for further replies.
Just a question .....are any of these rear cameras fixed as of yet?? Good morning to all..
Hey bud, I know you're eager to get back camera working, but hold tight. Sometimes development work is delayed for a long time, plus it's holidays. ;) Just give it a couple months.
 
DATA FIX: open a new file name it net.sh
paste the following:
#!/system/bin/sh
IP=$(ip a sh dev rmnet0 | grep rmnet0$ | busybox awk '{print $2}' | busybox cut -d'/' -f1)
VALID_IP="$(echo $IP | busybox awk -F'.' '$1 <=255 && $2 <= 255 && $3 <= 255 && $4 <= 255')"
if [ -z "$VALID_IP" ] ; then
echo "The IP address isn't valid"
else
echo "The IP address is valid: $IP"
ip r add default via $IP table rmnet0 && echo -n "Route added. Testing routing... "
if [ "$(ping -c 1 4.2.2.1 | grep icmp* | busybox wc -l)" -eq "1" ] ; then
echo "OK."
exit 0
else
echo "KO."
exit 1
fi
fi

save it.
open terminal emulator
cd/<the directory where you saved your file>
su
sh net.sh
:)
Hey man, I was just wondering if you ever found out how to do this upon boot...

This might help:
http://www.technohunk.com/2013/02/how-to-execute-a-command-at-boot-android/

This app allows you to automatically run scripts at boot... I may have another solution, and I'll report back if it works or not
 
Hey man, I was just wondering if you ever found out how to do this upon boot...

This might help:
http://www.technohunk.com/2013/02/how-to-execute-a-command-at-boot-android/

This app allows you to automatically run scripts at boot... I may have another solution, and I'll report back if it works or not
Well this script has to run after enabling data, so if you don't turn it off, then you will be able to use it upon boot. But people like me, who often switch it, it doesn't help too much :)
 
Well this script has to run after enabling data, so if you don't turn it off, then you will be able to use it upon boot. But people like me, who often switch it, it doesn't help too much :)
Ooooh.... That makes more sense now... Ugh... That sucks.... Is there any known way to have it fixed other than to modify an awful lot of code to execute that upon every switch of data?
 
Well, go to the xda topic (xperia sp cm12 dev) hope it helps. Steve12 and bagyusz know almost everything about compiling and stuff life that. But I think there's no other way :(. What about your another solution?
 
Well, go to the xda topic (xperia sp cm12 dev) hope it helps. Steve12 and bagyusz know almost everything about compiling and stuff life that. But I think there's no other way :(. What about your another solution?
It involved some lower level modification of android to run that at boot.... I can still make the changes with some modifications (to run script on trigger) but it'll take a while...
 
Sorry if this has been answered already, but I cant seem to find the forum search function ATM.

Does this work for D321????

I recently heard that the D321 can use D320-D325 recoveries????

Ive never rooted a phone before, and this phone seems to be not so "Newbie" friendly. lol Ive been reading for weeks, but am still too scared.
 
I don't see anything. Please PM me
This is the working code... (use root explorer for ease of use, go to net.sh, click on it than click execute)


#!/system/bin/sh
IP=$(ip a sh dev rmnet0 | grep rmnet0$ | busybox awk '{print $2}' | busybox cut -d'/' -f1)
VALID_IP="$(echo $IP | busybox awk -F'.' '$1 <=255 && $2 <= 255 && $3 <= 255 && $4 <= 255')"
if [ -z "$VALID_IP" ] ; then
echo "The IP address isn't valid"
else
echo "The IP address is valid: $IP"
ip r add default via $IP table rmnet0 && echo -n "Route added. Testing routing... "
if [ "$(ping -c 1 4.2.2.1 | grep icmp* | busybox wc -l)" -eq "1" ] ; then
echo "OK."
exit 0
else
echo "KO."
exit 1
fi
fi
 
This is the working code... (use root explorer for ease of use, go to net.sh, click on it than click execute)


#!/system/bin/sh
IP=$(ip a sh dev rmnet0 | grep rmnet0$ | busybox awk '{print $2}' | busybox cut -d'/' -f1)
VALID_IP="$(echo $IP | busybox awk -F'.' '$1 <=255 && $2 <= 255 && $3 <= 255 && $4 <= 255')"
if [ -z "$VALID_IP" ] ; then
echo "The IP address isn't valid"
else
echo "The IP address is valid: $IP"
ip r add default via $IP table rmnet0 && echo -n "Route added. Testing routing... "
if [ "$(ping -c 1 4.2.2.1 | grep icmp* | busybox wc -l)" -eq "1" ] ; then
echo "OK."
exit 0
else
echo "KO."
exit 1
fi
fi
Already got a fix working. :) Thanks though
 
This is the working code... (use root explorer for ease of use, go to net.sh, click on it than click execute)


#!/system/bin/sh
IP=$(ip a sh dev rmnet0 | grep rmnet0$ | busybox awk '{print $2}' | busybox cut -d'/' -f1)
VALID_IP="$(echo $IP | busybox awk -F'.' '$1 <=255 && $2 <= 255 && $3 <= 255 && $4 <= 255')"
if [ -z "$VALID_IP" ] ; then
echo "The IP address isn't valid"
else
echo "The IP address is valid: $IP"
ip r add default via $IP table rmnet0 && echo -n "Route added. Testing routing... "
if [ "$(ping -c 1 4.2.2.1 | grep icmp* | busybox wc -l)" -eq "1" ] ; then
echo "OK."
exit 0
else
echo "KO."
exit 1
fi
fi
I get the IP adress isnt valid
 
Status
Not open for further replies.
Back
Top Bottom