[GUIDE] Huawei usb 3g modem on android x86 4.4.2

Search This thread

lemonsqueeze

Senior Member
Jun 30, 2014
50
116
Finally found a way to get this usb 3g modem to work with android x86. Looks like there are significant differences in android kitkat, the other tutorials didn't work for me. Here's what i did in case somebody else finds it useful:

Model: Huawei E1752 HSPA USB Stick
Android x86 4.4.2 on Acer Netbook

Get modem to work under Ubuntu first so you have chat scripts that are known to work with your modem/provider. (If having trouble finding the right AT commands to initialize your modem you can record them under windows. Try free serial port monitor)

  • Install PPP Widget. It doesn't work, but that gives us usb_modeswitch and pppd to play with.
  • Install busybox if you don't have it already. Your device should be rooted.
  • I disabled modem's cdrom mode so that i wouldn't have to modeswitch it with PPP Widget every time (did it from linux)
    http://ma.juii.net/blog/disable-usb-mode-switching
  • Tweak and install pppd/chat scripts for your provider:

    /sdcard/pppwidget/ppp/free-chat
    Chat script to initiate connection. Change AT commands and dial number (*99#) if yours differ.

    Code:
    ABORT BUSY
    ABORT 'NO CARRIER'
    ABORT 'NO ANSWER'
    ABORT DELAYED
    REPORT CONNECT
    TIMEOUT 2
    "" AT
    OK-AT-OK AT&FE0V1X1&D2&C1S0=0
    OK-AT-OK AT
    OK-AT-OK ATS0=0
    OK-AT-OK AT
    OK-AT-OK AT&FE0V1X1&D2&C1S0=0
    OK-AT-OK AT
    OK ATDT*99#
    TIMEOUT 30
    CONNECT ''
    SAY '\rReport from chat:\r'

    /sdcard/pppwidget/ppp/peers/free
    pppd config file

    Code:
    #/etc/ppp/peers/free
    # Usage:   root>pppd call free
    
    ttyUSB0
    3600000
    crtscts
    connect '/data/data/de.draisberghof.pppwidget/app_bin/chat -v -f /sdcard/pppwidget/ppp/free-chat'
    noauth
    defaultroute
    usehostname
    user fooooooo
    noipdefault
    usepeerdns
    idle 0

    /sdcard/3gmodem/connect
    script to start connection

    Code:
    #!/system/bin/sh
    
    pppd call free
    
    # use own DNS (OpenDNS)
    ndc resolver setifdns ppp0 208.67.222.222 208.67.222.220
    ndc resolver setdefaultif ppp0
  • To connect, open a terminal and type:

    Code:
      $ su
      # cd /sdcard/3gmodem
      # ./connect
  • Now you're connected. browser should work now.
  • Connection is there but android doesn't know about it, so apps like play store which check connectivity will think you're offline. Install Fake Wifi Connection to deal with those.
  • Done !
 
Last edited:
  • Like
Reactions: tachi-me

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Finally found a way to get this usb 3g modem to work with android x86. Looks like there are significant differences in android kitkat, the other tutorials didn't work for me. Here's what i did in case somebody else finds it useful:

    Model: Huawei E1752 HSPA USB Stick
    Android x86 4.4.2 on Acer Netbook

    Get modem to work under Ubuntu first so you have chat scripts that are known to work with your modem/provider. (If having trouble finding the right AT commands to initialize your modem you can record them under windows. Try free serial port monitor)

    • Install PPP Widget. It doesn't work, but that gives us usb_modeswitch and pppd to play with.
    • Install busybox if you don't have it already. Your device should be rooted.
    • I disabled modem's cdrom mode so that i wouldn't have to modeswitch it with PPP Widget every time (did it from linux)
      http://ma.juii.net/blog/disable-usb-mode-switching
    • Tweak and install pppd/chat scripts for your provider:

      /sdcard/pppwidget/ppp/free-chat
      Chat script to initiate connection. Change AT commands and dial number (*99#) if yours differ.

      Code:
      ABORT BUSY
      ABORT 'NO CARRIER'
      ABORT 'NO ANSWER'
      ABORT DELAYED
      REPORT CONNECT
      TIMEOUT 2
      "" AT
      OK-AT-OK AT&FE0V1X1&D2&C1S0=0
      OK-AT-OK AT
      OK-AT-OK ATS0=0
      OK-AT-OK AT
      OK-AT-OK AT&FE0V1X1&D2&C1S0=0
      OK-AT-OK AT
      OK ATDT*99#
      TIMEOUT 30
      CONNECT ''
      SAY '\rReport from chat:\r'

      /sdcard/pppwidget/ppp/peers/free
      pppd config file

      Code:
      #/etc/ppp/peers/free
      # Usage:   root>pppd call free
      
      ttyUSB0
      3600000
      crtscts
      connect '/data/data/de.draisberghof.pppwidget/app_bin/chat -v -f /sdcard/pppwidget/ppp/free-chat'
      noauth
      defaultroute
      usehostname
      user fooooooo
      noipdefault
      usepeerdns
      idle 0

      /sdcard/3gmodem/connect
      script to start connection

      Code:
      #!/system/bin/sh
      
      pppd call free
      
      # use own DNS (OpenDNS)
      ndc resolver setifdns ppp0 208.67.222.222 208.67.222.220
      ndc resolver setdefaultif ppp0
    • To connect, open a terminal and type:

      Code:
        $ su
        # cd /sdcard/3gmodem
        # ./connect
    • Now you're connected. browser should work now.
    • Connection is there but android doesn't know about it, so apps like play store which check connectivity will think you're offline. Install Fake Wifi Connection to deal with those.
    • Done !