Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Monday, April 30, 2012

Android and USB Tethering v2

I've cleanup my kernel settings for using USB tethering with Android.
There aren't many modules needed to make it work.

Also DHCP is fetching an IP as soon as you enable tethering on your phone when you don't manage your connections with wicd or another client.

The following modules are needed in your kernel: -> Device Drivers -> Network device support -> USB Network Adapters <*> Multi-purpose USB Networking Framework -*- CDC Ethernet support (smart devices such as cable modems) <*> Host for RNDIS and ActiveSync devices (EXPERIMENTAL)
That's actually all you need. You can also build them as modules.

To use tethering with wicd, change your wired device in wicd settings from eth0 to usb0.

If your dhcpcd doesn't fetch an IP, use the following command: dhcpcd usb0

Tuesday, December 6, 2011

How to control MPD with your Android Phone

I hope you know how to set up your network. This post won't cover that topic and just goes straight to the settings of MPD.
I'm using Doid MPD Client to control MPD from my phone. I haven't tested any other MPD client yet but I guess they are similar to Doid MPD.

First of all bind your MPD to your internal IP or DNS by editing these lines in your mpd.conf: bind_to_address "<your IP or DNS>"
port "6600"

You can also add a password: password "<your password>@read,add,control,admin" The options behind @ can be mix and matched the way you need them. Even multiple lines of the password setting are possible for different passwords with different options.

Don't forget to restart MPD after doing changes in mpd.conf.

The Droid MPD client is available in the Android Market: https://market.android.com/details?id=com.soreha.droidmpdclient

Just install it, configure the IP, port and password you've set up in your mpd.conf in the settings of Droid MPD client and enjoy a neat remote control for your music.

Monday, November 14, 2011

USB-Tethering with Android and Zen-Kernel

This Post is out of date. Use the updated version.

These are the modules I've enabled for usb-tethering with my Android phone.
I'm not sure if I really need the embedded arm module. I was too lazy to test it. ^^
Most important thing, it should work with these settings.


-> Device Drivers
 -> Network device support (NETDEVICES [=y])
  <m> Generic Media Independent Interface device support
  -> USB Network Adapters
   <m> Multi-purpose USB Networking Framework      
   -M-   CDC Ethernet support (smart devices such as cable modems)
    <m>   CDC EEM support
    <m>   Host for RNDIS and ActiveSync devices (EXPERIMENTAL)
    <m>   Simple USB Network Links (CDC Ethernet subset)
     [*]     Embedded ARM Linux links (iPaq, ...)


Just connect your phone via usb and enable usb-tethering in the settings. A new device called usb0 should appear.

If you don't use wicd or any other network manager which manages dhcp, then do the following as root in a shell to fetch an IP:

dhcpcd usb0