Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Use HTC Magic as modem

  1. #1
    Join Date
    Oct 2006
    Beans
    29

    Question Use HTC Magic as modem

    Hi,

    I've just bought the new HTC Magic here in Denmark, but when I plug it into my Ubuntu, I don't get the option to use it as a 3G modem.

    Phone info:
    Code:
    Model number: HTC Magic
    Firmware version: 1.5
    Kernel version 2.6.27-dd63d1eb u70000@Android-X01
    Build number: 2.16.401.5 146733 CL#33743 release-keys
    Computer: Ubuntu 9.04

    When I plug the USB cable into the phone, the following shows up in dmesg:
    Code:
    [295900.736046] usb 2-1: new high speed USB device using ehci_hcd and address 9
    [295900.888577] usb 2-1: configuration #1 chosen from 1 choice
    [295900.909075] scsi9 : SCSI emulation for USB Mass Storage devices
    [295900.909164] usb-storage: device found at 9
    [295900.909165] usb-storage: waiting for device to settle before scanning
    [295905.910220] usb-storage: device scan complete
    [295905.912237] scsi 9:0:0:0: Direct-Access     HTC      Android Phone    0100 PQ: 0 ANSI: 2
    [295905.918219] sd 9:0:0:0: [sdb] Attached SCSI removable disk
    [295905.918286] sd 9:0:0:0: Attached scsi generic sg2 type 0
    Does anyone have any experience with using an Android-powered HTC phone as modem for Ubuntu?

    If you need any more info, please let me know

    Best regards,
    Jesper

  2. #2
    Join Date
    Apr 2006
    Location
    Sweden
    Beans
    80
    Distro
    Ubuntu Development Release

    Re: Use HTC Magic as modem

    Same here (but in Sweden ). I also would like to get my lovely mobile to work as a modem in Ubuntu.

  3. #3
    Join Date
    May 2007
    Beans
    10
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Use HTC Magic as modem

    I too want it to work!

  4. #4
    Join Date
    Dec 2008
    Beans
    1

    Re: Use HTC Magic as modem

    Have u tried connecting via Bluetooth?
    It works great with HTC Diamond and Ubuntu.

  5. #5
    Join Date
    Jun 2009
    Beans
    1

    Re: Use HTC Magic as modem

    No luck on bluetooth for me anyway (With the UK Vodafone version)

    Unlike previous Nokia phones the HTC magic doesn't appear to have a "Dial Up Networking" channel available when you scan the bluetooth services avaiable (only seems to have Headset / Mic etc.)

    So I don't know what to do to get it to work ... with previous Nokia phones you had to set the rfcomm to the correct bluetooth channel and then it worked fairly easily - but this doens't seem to be possible with the Magic as I can't find the channel at all.

  6. #6
    Join Date
    Dec 2007
    Beans
    1

    Re: Use HTC Magic as modem

    There is a program in the android software repository called "tether Blu" which allows you to basically use your mobile phone as a wifi device over a bluetooth connection, unfortunately it doesn't let you use your cell network internet. Perhaps a program like this can be written, and probably will soon, considering the open source nature of android

  7. #7
    Join Date
    May 2007
    Beans
    10
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Use HTC Magic as modem

    Almost got it to work using a app called android-wifi-tether. But this app needs a rooted system so you will have to root. Rooting will woid your warranty.

    I am working on a guide on how to root a HTC Magic in ubuntu. However depending on where you brought your device some files is different. Doing this wrong can seriously destroy the phone.

    For those of you who are a bit familiar with swedish the beta-version of the guide can be found here. Please try it out and give feedback
    http://www.swedroid.se/forum/showthread.php?t=158

    When it have been tested I will translate it and publish it. For lots of information about rooting and such I strongly recomend http://forum.xda-developers.com/

  8. #8
    Join Date
    Jul 2008
    Beans
    21

    I have done it!

    Hi
    Tha last Magic android kernel has no Iptabels /firewall, it will result in wifi teathering not working even if you have a rooted phone.
    I have tested Azilink , NO NEED for root access !
    http://code.google.com/p/azilink/

    I have posted a swedish guide , it is easy and what you need to do can be found there and you can use google to translate it .
    I will just post the terminal command here .

    Make sure usb debogging is on in the phone

    download Android sdk or just adb from the link above
    , then unzip it in some directory like below and

    Code:
    sudo cp ~/android-sdk-linux_x86-1.5_r2/tools/adb /usr/bin/adb
    sudo chmod a+x /usr/bin/adb
    This step is not needed , do it just if adb cant see the device ;
    Code:
    sudo gedit /etc/udev/rules.d/50-android.rules
    paste this in , change username to you username in ubuntu
    Code:
    SUBSYSTEM=="usb",SYSFS{idVendor}=="0bb4",ATTR{idProduct}=="0c02",SYMLINK+="android_adb",MODE="0666",OWNER="USERNAME"
    SUBSYSTEM=="usb",SYSFS{idVendor}=="0bb4",ATTR{idProduct}=="0c01",SYMLINK+="android_fastboot",MODE="0666",OWNER="USERNAME"
    Code:
    sudo chmod a+x /etc/udev/rules.d/50-android.rules
    sudo /etc/init.d/udev restart
    connect the phone and don't mount, you should get this if you run

    Code:
    adb devices
    HT95xxxxxxxx	device
    now
    Code:
    sudo apt-get install network-manager-openvpn openvpn
    sudo /etc/init.d/networking restart
    sudo /etc/init.d/NetworkManager restart
    use the phone to install this http://lfx.org/azilink/azilink.apk
    or just
    Code:
    mkdir azilink
    cd azilink
    wget http://lfx.org/azilink/azilink.apk
    adb install azilink.apk
    wget http://azilink.googlecode.com/files/azilink.ovpn
    make this file in the same directory
    Code:
    sudo nano resolv.conf
    and paste this in it if you use Networkmanager
    Code:
    domain lan
    search lan
    nameserver 192.168.56.1
    then start the app on the phone , make sure it is connected to the pc , and if you have fire wall open the portet used bellow
    Code:
    adb forward tcp:41927 tcp:41927
    sudo cp resolv.conf /etc/
    sudo openvpn --config azilink.ovpn
    now yo can have fun , to stop the connection use ctrl+c , yo ushould run this three last lines every time you need to connect to the phone as modem

    http://www.swedroid.se/forum/showthread.php?t=196


    I have done another change to automate this let me post it later today .
    Last edited by Shwan.c; July 4th, 2009 at 06:52 AM.

  9. #9
    Join Date
    Jun 2009
    Beans
    1

    Re: Use HTC Magic as modem

    Thanks a lot azirlink works perfect for me. Only I have one problem, it doesn't seem like I can use "knock" to open up ssh connection when I use my magic as my network connection. Do you have any idea about this ??

  10. #10
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: I have done it!

    Thanks for the instructions they worked. I noticed that the new Hero ROM has USB tethering enabled in the menu. Have you figured out how to use the Hero's built-in tethering? I am hoping that tethering could be a plug-n-play event...

Page 1 of 3 123 LastLast

Tags for this Thread

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
  •