D2G Cricket Settings on CyanogenMod 7.1.0

Written by  on October 31, 2011

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:


I modified the process a bit, though.  So, here’s what I did:

  1. Get http://www.whiterabbit.org/android/u2nl.zip
  2. Push u2nl.zip onto the sdcard either with ADB or USB mount.
  3. 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
  4. Unzip the contents of u2nl.zip onto the sdcard:
    cd /sdcard; unzip u2nl.zip
  5. Copy the u2nl executable to /system/bin:
    cp /sdcard/u2nl/u2nl /system/bin/
    chmod 755 /system/bin/u2nl
  6. 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
  7. Delete the exit 0 on the last line of the 99cricket script.
  8. Exit the Term.app or the ADB shell.
  9. Menu->Settings->Wireless & Networks->Mobile Networks->Access Point Names
  10. 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.

  11. Reboot

And just for reference, the commands in the autostart.sh/99cricket file are:


## set up the iptables for cricket

export PATH="$PATH:/system/bin"
iptables -P INPUT ACCEPT
iptables -F
iptables -t nat -F
iptables -X
iptables -t nat -A OUTPUT -o ppp0 -p 6 ! -d -j REDIRECT --to-port 1025
u2nl 8080 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/.