It took a while to figure out this little annoying config issue while setting my android phone for development, so here it goes (thanks to comments on androidboss.com).
At the time of writing these lines, if you follow the official android documentation on this topic, you’ll probably get this frustrating error message.
$ ~/bin/android/tools/adb devices
List of devices attached
???????????? no permissions
Then, to fix it, you should edit your “/etc/udev/rules.d/50-android.rules” that way:
SUBSYSTEM==”usb”, SYSFS{idVendor}==”0fce”, MODE:=“0666″
Please, mind the “:=” on MODE, instead of just “=”. This last one doesn’t work on Ubuntu 10.04. After restarting the udev daemon connecting/desconnecting the device, you should get something like:
$ ~/bin/android/tools/adb devices
List of devices attached
CB511JDU5Y device
Hope that helps !
UPDATE: Filed the issue on android bugtracker.

I would have preferred that my Android 1.6 device supported OpenVPN out of the box. Unfortunately, this is only available for rooted devices and a bit of suffering. Instead, I went for configuring IPsec inside L2TP VPN server. All of it stuffed into an old and low-end Soekris net4511 board running Voyage Linux.
First, I will just redirect you to the well-documented, lengthy but primary resource:
Using a Linux L2TP/IPsec VPN server
On the client side, this post is quite complete:
Adding VPN connections to Android 1.6 (Donut)
If you’re feeling impatient and brave, perhaps you’ll succeed with the configuration files that follow (they worked for me)… since those are highly dependant on your network setup, YMMV, a lot.
Before jumping right into the meat and to avoid confusion, let’s see what is the game all these evil daemons are going to play:
- A client (my android phone), connects to the server on port 4500.
- IPsec server (OpenSWAN) responds and asks for the PSK.
- If the previous “gatekeeper” is ok with you, control is handed over L2TP, the other “tunnel keeper” who will ask for another password.
- If L2TP is satisfied with your answer, PPPD, the ancient UNIX beast will be waken up and ask for… your user and password !
- Congrats ! You’re survived the gates, now you’re on your home network from your smartphone, ain’t it cool ?
Continue reading →