Android plus Puppy

Recently on the Murga Puppy Forum Media Transfer Protocol (MTP), actually a Microsoft protocol, has been in the news. Since Android 4.0, USB Mass Storage, which is how Androids used to connect with computers in Ginger Bread and below, has been deprecated. The new way to access files on Android devices via USB interface is now with MTP.

can8v (Puppy forum member) has written an application with a daemon to detect and mount MTP devices. I wrote an alternative app that uses the kernel’s udev rules to detect MTP devices and mount them. The term “mount” is used loosely as MTP devices are not block devices like USB sticks, hard drives and other devices but are mounted as fuse filesystems.

I got to thinking though, you may not want to access your Android’s files but use it as a modem instead. Why would you want to do that when you can easily set it up as a wireless access point and connect wirelessly? One word; Battery. Wireless as another service and puts a strain on the already limited battery life of Android smart phones.

To set up USB tethering:

  • plug the device via USB cable into your computer
  • go into “Settings” on your Android
  • under “Wireless & Networks” choose “More..” (may vary for versions, I’m using Ice Cream Sandwich)
  • select “Tethering and portable hotspots”
  • check the “USB Tethering” checkbox
  • Your device should try to get an IP address automatically

That’s it. You should now be able to browse using you’re devices external connection. And, as a neat side benefit, if you’re computer doesn’t have wireless networking and you’re Android is connected to your wireless network, your computer will use that connection!

:yes:

 

Advertisements

3 thoughts on “Android plus Puppy

  1. Hi Mick,

    my device did not try to get an IP address automatically
    because there was no “USB Tethering” checkbox.

    Anyhow I have been able to connect a slacko57 to my (SurfTab Xiron 10.1) device using
    Part III: The Setting-Up Part
    of the excellent website linked above.

    That site teaches how to get manufacturer’s id from lsusb
    and use not only the well known udev rule but use also ~/.android/adb_usb.ini
    my ex:
    # ANDROID 3RD PARTY USB VENDOR ID LIST — DO NOT EDIT.
    # USE ‘android update adb’ TO GENERATE.
    # 1 USB VENDOR ID PER LINE.
    0x2207

    last line appended manually (2207 is vendorid)

    Now I am root at a quad core 2GiB armv7a tablet connected by USB cable from slacko57.

    Cheers

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s