Sign Up Now FAQ
Signup Now
In order to make a post or to start a new thread and or to interact with other
members of this board, you wil need to create an account first.
If this is your first visit, be sure to check out the FAQ. You have to register before you can post. If you have any problems, please contact us.
Flash a phone to Cricket Wireless Become a supporting member of Cricket Users Forum

 
Welcome to Cricket Users!



Results 1 to 14 of 14
  1. #1
    Member
    Points: 1,971, Level: 26
    Overall activity: 0%
    ogad80's Avatar
    Reputation
    Reputation 10
    Join Date
    Aug 2011
    Customer Since
    June 2010
    Location
    Nogales, AZ
    Posts
    37
    Phone
    Samsung Galaxy S3



    Lightbulb Autostart.sh Problems

    I have different autostart files, one works for full internet (3g) and market apps. The other one works for MMS only no internet and no market apps. I copied them both in hopes that someone can help me out and convert these two in to one. Before anyone says why don't you copy and past.....I've tried it already and may different ways. OK here it is:


    Internet Autostart.sh:

    #!/system/bin/sh
    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 rmnet0 -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}'`" &
    exit 0


    MMS Autostart.sh:

    #!/system/bin/sh
    export PROXYHOST=wap.mycricket.com
    export PROXYPORT=8080
    export MMSHOST=mms.mycricket.com
    export MMSPORT=80

    #you shouldn't have to edit anything below this line

    export PATH="$PATH:/system/bin"
    until netcfg|grep -v DOWN|awk '{print $1}'|grep -v wlan|grep -v lo >/dev/null 2>&1 ; do sleep 1 ; done
    export INTERFACE=`netcfg|grep -v DOWN|awk '{print $1}'|grep -v wlan|grep -v lo`
    export PROXYIP=`ping -c 1 $PROXYHOST|grep PING|cut -d\) -f1|cut -d\( -f2`
    export MMSIP=`ping -c 1 $MMSHOST|grep PING|cut -d\) -f1|cut -d\( -f2`
    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 $INTERFACE -p 6 -d $MMSIP --dport $MMSPORT -j DNAT --to-destination $MMSIP:$MMSPORT
    #iptables -t nat -A OUTPUT -o $INTERFACE -p 6 --dport 80 -j DNAT --to-destination $PROXYIP:$PROXYPORT
    iptables -t nat -A OUTPUT -o $INTERFACE -p 6 ! -d $PROXYIP ! --dport $PROXYPORT -j REDIRECT --to-port 1025
    u2nl $PROXYIP $PROXYPORT 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}'`" >/dev/null 2>&1 &
    exit 0

    The code looks identical if you study it the only difference is that the MMS in my opinion has declarations. If anyone can help out that would be great I tried it myself but it is not as simple as copy paste. And I bet some other users are having the same problem.

    Thanks CricketUsers Forum I know someone in the community can help.
    Attached Files Attached Files
    Last edited by ogad80; 11-20-2011 at 02:23 PM.

  2. Remove this advertisement.
  3. #2
    Member
    Points: 1,971, Level: 26
    Overall activity: 0%
    ogad80's Avatar
    Reputation
    Reputation 10
    Join Date
    Aug 2011
    Customer Since
    June 2010
    Location
    Nogales, AZ
    Posts
    37
    Phone
    Samsung Galaxy S3



    BTW Geenk45 app not working on my phone

  4. #3
    Recognized Developer
    Points: 8,091, Level: 60
    Overall activity: 0%

    Reputation
    Reputation 35
    Join Date
    May 2011
    Location
    Fresno, CA
    Posts
    337
    Phone
    GS3, GNex, RAZR



    #!/system/bin/sh
    export MMSHOST=mms.mycricket.com
    export MMSPORT=80


    export PATH="$PATH:/system/bin"
    export MMSIP=`ping -c 1 $MMSHOST|grep PING|cut -d\) -f1|cut -d\( -f2`
    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 rmnet0 -p 6 -d $MMSIP --dport $MMSPORT -j DNAT --to-destination $MMSIP:$MMSPORT
    iptables -t nat -A OUTPUT -o rmnet0 -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}'`" &
    exit 0

  5. #4
    Member
    Points: 630, Level: 12
    Overall activity: 0%

    Reputation
    Reputation 10
    Join Date
    Oct 2011
    Location
    Nogales
    Posts
    38
    Phone
    LG Optimus S



    Will something like this work as well mraabhimself? (saying we have 3g.sh and mms.sh saved)

    #!/system/bin/sh
    ./3g.sh
    ./mms.sh
    exit 0

    hey ogad80 i see you are closeby nice to meet you.

  6. #5
    Member
    Points: 1,971, Level: 26
    Overall activity: 0%
    ogad80's Avatar
    Reputation
    Reputation 10
    Join Date
    Aug 2011
    Customer Since
    June 2010
    Location
    Nogales, AZ
    Posts
    37
    Phone
    Samsung Galaxy S3



    Im closer than you think I havent updated my status im in your backyard. Im living in Nogales!

  7. #6
    Recognized Developer
    Points: 8,091, Level: 60
    Overall activity: 0%

    Reputation
    Reputation 35
    Join Date
    May 2011
    Location
    Fresno, CA
    Posts
    337
    Phone
    GS3, GNex, RAZR



    If they're all in the same dir and have +x perms, I don't see why not, but, that is S C R I P T C E P T I O N and I don't see any point in turning 1 script into 3.

  8. #7
    Member
    Points: 630, Level: 12
    Overall activity: 0%

    Reputation
    Reputation 10
    Join Date
    Oct 2011
    Location
    Nogales
    Posts
    38
    Phone
    LG Optimus S



    I know not good practice. But my lazy way of looking at things. I didn't even read what was in the scripts.

  9. #8
    Member
    Points: 1,971, Level: 26
    Overall activity: 0%
    ogad80's Avatar
    Reputation
    Reputation 10
    Join Date
    Aug 2011
    Customer Since
    June 2010
    Location
    Nogales, AZ
    Posts
    37
    Phone
    Samsung Galaxy S3



    Tried it but no go it didn't work all i got was MMS to work. I tried like you said putting both autostarts in the the same directory and got neither Internet or MMS.

  10. #9
    Member
    Points: 630, Level: 12
    Overall activity: 0%

    Reputation
    Reputation 10
    Join Date
    Oct 2011
    Location
    Nogales
    Posts
    38
    Phone
    LG Optimus S



    did you chmod the .sh files to 777
    ----------------------------
    I was gonna cut and paste but didn't want to make an ass out of my self so decided not to.

    Try to run the shell files in a terminal:
    When you run mraabhimself script do you get any errors?
    When you try the scriptception method do you get any errors?
    Last edited by kastr0; 11-20-2011 at 11:17 PM.

  11. #10
    Member
    Points: 1,971, Level: 26
    Overall activity: 0%
    ogad80's Avatar
    Reputation
    Reputation 10
    Join Date
    Aug 2011
    Customer Since
    June 2010
    Location
    Nogales, AZ
    Posts
    37
    Phone
    Samsung Galaxy S3



    I did give it all the permissions but haven't tried it via terminal I guess that will be for homework!

  12. #11
    Member
    Points: 630, Level: 12
    Overall activity: 0%

    Reputation
    Reputation 10
    Join Date
    Oct 2011
    Location
    Nogales
    Posts
    38
    Phone
    LG Optimus S



    Ok, Let us know

  13. #12
    Recognized Developer
    Points: 8,091, Level: 60
    Overall activity: 0%

    Reputation
    Reputation 35
    Join Date
    May 2011
    Location
    Fresno, CA
    Posts
    337
    Phone
    GS3, GNex, RAZR



    Install busybox using Stericson's app on Market and try using GreenK45. Or, just install busybox and maintain the course with u2nl/autostart, either way.

    The only time I have experienced issues with proxy while having everything configured correctly was a lack of busybox causing awk & grep commands to fail, which subsequently caused the rest of the script not to work as intended.

  14. #13
    Member
    Points: 1,971, Level: 26
    Overall activity: 0%
    ogad80's Avatar
    Reputation
    Reputation 10
    Join Date
    Aug 2011
    Customer Since
    June 2010
    Location
    Nogales, AZ
    Posts
    37
    Phone
    Samsung Galaxy S3



    Hey guys here's the status everything worked after installing busybox (Thanks for the tip mraabhimself) and change export MMSPORT=80 to 8080 in the autostart but here's the thing I can only get one MMS at a time after the first one it gives a generic failure and after a reboot it leaves. Victory is so close!!!

  15. #14
    Member
    Points: 1,971, Level: 26
    Overall activity: 0%
    ogad80's Avatar
    Reputation
    Reputation 10
    Join Date
    Aug 2011
    Customer Since
    June 2010
    Location
    Nogales, AZ
    Posts
    37
    Phone
    Samsung Galaxy S3



    I think I finally got it.....this is tested on Droid Eris (Verizon) and even on Samsung Intercept (Sprint) Confirmed Talk, Text, Web and MMS. BTW I take no credit in any of the files I just took bits of information from different people and put them in order.

    Ok lets start (just too let you know both of these phones are rooted and I am using root explorer to do everything.)

    Everything is provided in the Cricket.zip

    *HTC Eris only:
    install autostart.apk program
    Using root explorer copy and replace the following files
    autostart.sh file in /data/opt/autostart.sh (Give full permisson)
    /system/bin/u2nl (Give full permission)

    *Intercept only:
    use
    ScriptRunner



    Using root explorer copy the following files
    sd/scriptrunner/autostart.sh (Give full permission)
    sd/scriptrunner/u2nl (Give full permission)

    Next:
    Navigate using root explorer again to copy the telephony.db:
    /data/data/com.android.providers.telephony/databases/telephony.db (Give full permisson)

    Now:
    Using Root Explorer edit the following /system/build.prop and edit a line called:
    ro.cdma.home.operator.numeric= 310016
    ro.cdma.home.operator.alpha= Cricket

    Next: Install APN Backup and Restore and use it to restore the xml included in this thread.
    (I have updated apns-mm2 just drop your number in where it says user="YOURPHONENUMBER@mycricket.com"
    and mmsc="http://mms.mycricket.com/servlets/mms?x-cricket-mdn=999_999_9999")

    Next: Now install Anycut
    Create a shortcut to APN
    Open short cut and edit the APN named Cricket to match the following

    Name: Cricket
    APN: wap.mycricket.com
    Proxy: wap.mycricket.com
    Port: 8080
    Username: yourphonenumber@mycricket.com
    Password: cricket
    Server: not set
    MMSC:
    http://mms.mycricket.com/servlets/mm...n=999_999_9999



    (999_999_9999 is your phone number and keep the _)
    MMS Proxy: not set
    MMS Port: 8080
    MCC: 310
    MNC: 016
    Authentication Type: CHAP
    APN Type: *
    APN Protocol: IPv4 (Samsung Intercept)

    Save it, Select it and reboot

    Give it a go!

    Thanks to everone here at Cricketusers.com and the people who created these files.

    And also the following people for the info


    tony_santos


    from
    Android Forums




    No Internet Access on Huawei Ascend - Android Forums




    chrisngrod from cricketusers.com
    http://www.cricketusers.com/flashing...#axzz1hCPzg3ly


    mraabhimself From cricketusers.com
    kastr0 From cricketusers.comAttachment 1279









    Attached Files Attached Files
    Last edited by ogad80; 01-13-2012 at 08:50 PM.

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Advertise With Us?
Advertise with us? (Position 1 - Advertise with Us) Small Banner