Wednesday, June 30, 2010

nexus one usb debugging on ubuntu 10.04

google's direction at http://developer.android.com/guide/developing/device.html did not work.

with nexus one plugged in, run
% lsusb

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth Mini-card
Bus 003 Device 004: ID 413c:8158 Dell Computer Corp. Integrated Touchpad / Trackstick
Bus 003 Device 003: ID 413c:8157 Dell Computer Corp. Integrated Keyboard
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0c45:63fa Microdia
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 032: ID 18d1:4e12
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

vendor id is 18d1 for the nexus one

also make sure permissions of 51-android.rules is rx not just r as in the google documentation
% chmod a+rx 51-android.rules

Tuesday, June 1, 2010

accessing service from grails console

given a service name FooService, to access it within the grails console:
ctx.fooService