D2G Cricket Settings on CyanogenMod 7.1.0
- October 31st, 2011
- By gepr
- Write comment
I recently installed the CyanogenMod ROM on my Droid 2 Global. Up to now, I’ve had to take the phone to the Cricket guy to change the settings so that the 3G data connection would work. Perhaps I could have done it myself then, but I didn’t take the time to figure it out. Anyway, I can now do it without that occult, crufty, Windows-centric method. I learned the basics from here:
which is a post-flash version of this:
http://www.howardforums.com/showthread.php/1643218-Motorola-Droid-Full-Solution-Updated
I modified the process a bit, though. So, here’s what I did:
- Get http://www.whiterabbit.org/android/u2nl.zip
- Push u2nl.zip onto the sdcard either with ADB or USB mount.
- Shell into the D2G with ADB or use the Term.app and mount the /system “rw”:
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
- Unzip the contents of u2nl.zip onto the sdcard:
cd /sdcard; unzip u2nl.zip
- Copy the u2nl executable to /system/bin:
cp /sdcard/u2nl/u2nl /system/bin/ chmod 755 /system/bin/u2nl
- Create a startup script to execute the commands in autostart.sh:
cp /sdcard/u2nl/autostart/motodroid/cricket/autostart.sh /etc/init.d/99cricket chmod 750 /etc/init.d/99cricket chgrp shell /etc/init.d/99cricket
- Delete the
exit 0on the last line of the99cricketscript. - Exit the Term.app or the ADB shell.
- Menu->Settings->Wireless & Networks->Mobile Networks->Access Point Names
- Add the following APN:
- Name – Cricket
- APN – internet
- Proxy – wap.mycricket.com
- Port – 8080
- Username – yourphonenumber@mycricket.com
- Password – cricket
- Server – wap.mycricket.com
- MMSC – http://mms.mycricket.com/servlets/mms
- MMS Proxy – wap.mycricket.com
- MMS Port – 8080
- MCC – 310
- MNC – 004
- Authentication Type – PAP or CHAP
- APN type – <Not set>
And don’t forget to hit Menu->Save.
- Reboot
And just for reference, the commands in the autostart.sh/99cricket file are:
#!/system/bin/sh
## set up the iptables for cricket
export PATH="$PATH:/system/bin"
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -t nat -F
iptables -X
iptables -t nat -A OUTPUT -o ppp0 -p 6 ! -d 10.132.25.254 -j REDIRECT --to-port 1025
u2nl 10.132.25.254 8080 127.0.0.1 1025 >/dev/null 2>&1 &
sh -c "sleep 5;kill `ps|grep nk.bla.android.autostart|grep -v grep|awk '{print $2}'`" &
Thanks to http://www.whiterabbit.org/android/.