Home > Uncategorized > Enable USB debugging on Nook without Rooting

Enable USB debugging on Nook without Rooting

 
13-03-13-9

One of the bugbears of developing for a Nook, is that as soon as you plug the USB cable into the device,  the screen freezes, with a message saying that it is in “USB Drive mode” and not to disconnect the cable, etc.

Unfortunately, this makes it impossible to interact with your app without unplugging the USB, and therefore loosing the ability to debug the app live.

So, using the technique, of pressing the “n” key, then apps, then Volume up and the “//Library” logo (top of screen) at the same time, press Nook Color Tools and then All Settings then Development, then Check USB Debugging and uncheck Automount.

Then if you connect the Nook to your computer, (with appropriate driver installed), the USB drive screen no longer appears. Connect using ADB kill-server, ADB devices, then you can do an ADB logcat live, and see the messages fly up the screen, as you debug your app.

 

 

Here’s the output from my logcat screen, as I tried using one of my apps live on the Nook

n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
I/ActivityManager( 958): Starting activity: Intent { cmp=com.bn.nook.applauncher/.jump.JumpActivity }
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardOn=false mHomePressed=false
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=9, LayerName= com.bn.nook.applauncher/com.bn.nook.applauncher.jump.JumpActivity
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=10,LayerName= com.bn.nook.applauncher/com.bn.nook.applauncher.jump.JumpActivity
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=1, surfaceHandle->mToken=0x1
D/WindowManager( 958): interceptKeyTi code=24 down=false repeatCount=0 keyguardOn=false mHomePressed=false
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=11,LayerName= DimSurface
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 1555 objects / 97664 bytes in 66ms
I/ActivityManager( 958): Displayed activity com.bn.nook.applauncher/.jump.JumpActivity: 505 ms (total 505 ms)
D/Omap3ALSA( 903): open called for devices 00000002 in mode 0…
E/ALSAControl( 903): Control ‘HandsfreeR Switch’ cannot get element info: -2
E/ALSAControl( 903): Control ‘HandsfreeL Switch’ cannot get element info: -2
E/ALSAControl( 903): Control ‘HandsfreeR Mux’ cannot get element info: -2
E/ALSAControl( 903): Control ‘HandsfreeL Mux’ cannot get element info: -2
E/ALSAControl( 903): Control ‘HeadsetR Mixer AudioR2’ cannot get element info:-2
E/ALSAControl( 903): Control ‘HeadsetL Mixer AudioL2’ cannot get element info:-2
I/Omap3ALSA( 903): Initialized ALSA PLAYBACK device default
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 2709 objects / 127576 bytes in 37ms
W/InputManagerService( 958): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4a2edb28 (uid=10025 pid=1265)
W/IInputConnectionWrapper( 1265): showStatusIcon on inactive InputConnection
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 2686 objects / 149856 bytes in 105ms
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 270 objects / 12872 bytes in 35ms
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 19 objects / 1136 bytes in 34ms
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 23 objects / 792 bytes in 32ms
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 27 objects / 1168 bytes in 31ms
D/dalvikvm( 1510): GC_EXTERNAL_ALLOC freed 40 objects / 1712 bytes in 44ms
D/dalvikvm( 1040): GC_EXPLICIT freed 690 objects / 38984 bytes in 84ms
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/dalvikvm( 1092): GC_EXPLICIT freed 7998 objects / 419912 bytes in 748ms
I/dalvikvm( 958): Jit: resizing JitTable from 8192 to 16384
D/dalvikvm( 1265): GC_EXPLICIT freed 2771 objects / 256992 bytes in 98ms
I/ActivityManager( 958): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.benhirashima.nookcolorsettings/.NCSettings }
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=12,LayerName= Starting com.benhirashima.nookcolorsettings
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
I/ActivityManager( 958): Start proc com.benhirashima.nookcolorsettings for activity com.benhirashima.nookcolorsettings/.NCSettings: pid=1524 uid=10007 gids={}
I/WindowManager( 958): Setting rotation to 3, animFlags=1
I/ActivityManager( 958): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2(-1) layout=35 uiMode=0 seq=2}
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=13,LayerName= com.benhirashima.nookcolorsettings/com.benhirashima.nookcolorsettings.NCSettings
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
I/ActivityManager( 958): Displayed activity com.benhirashima.nookcolorsettings/.NCSettings: 718 ms (total 718 ms)
W/ActivityManager( 958): Unable to launch app com.google.android.apps.genie.geniewidget/10020 for broadcast Intent { act=android.appwidget.action.APPWIDGET_UPDATE cmp=com.google.android.apps.genie.geniewidget/.miniwidget.MiniWidgetProvider (has extras) }: process is bad
W/ActivityManager( 958): finishReceiver called but none active
I/ActivityManager( 958): Starting activity: Intent { act=android.intent.action.CHOOSER cmp=android/com.android.internal.app.ChooserActivity (has extras) }
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=14,LayerName= android/com.android.internal.app.ChooserActivity
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=1, surfaceHandle->mToken=0x1
D/dalvikvm( 958): GC_EXPLICIT freed 10940 objects / 689032 bytes in 124ms
I/ActivityManager( 958): Displayed activity android/com.android.internal.app.ChooserActivity: 927 ms (total 927 ms)
I/WindowManager( 958): Setting rotation to 0, animFlags=0
I/ActivityManager( 958): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1(-1) layout=35 uiMode=0 seq=3}
I/UsageStats( 958): Unexpected resume of android while already resumed in android
D/dalvikvm( 1524): GC_FOR_MALLOC freed 4797 objects / 301576 bytes in 97ms
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=15,
LayerName= android/com.android.internal.app.ChooserActivity
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=1, surfaceHandle->mToken=0x1
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=16,
LayerName= com.benhirashima.nookcolorsettings/com.benhirashima.nookcolorsettings.NCSettings
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0, surfaceHandle->mToken=0x0
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
I/ActivityManager( 958): Starting activity: Intent { act=android.intent.action.MAIN flg=0x3000000 pkg=com.android.settings cmp=com.android.settings/.DevelopmentSettings }
D/dalvikvm( 958): GC_EXPLICIT freed 2743 objects / 128840 bytes in 141ms
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=17,LayerName= com.android.settings/com.android.settings.DevelopmentSettings
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
W/IInputConnectionWrapper( 1524): showStatusIcon on inactive InputConnection
I/ActivityManager( 958): Displayed activity com.android.settings/.DevelopmentSe
ttings: 720 ms (total 720 ms)
D/DevelopementSettings( 1236): Old UMSAuto status: true
D/DevelopementSettings( 1236): Dev Auto Mount Checked? false
D/DevelopementSettings( 1236): New UMSAuto status: false
D/dalvikvm( 1331): GC_EXPLICIT freed 6052 objects / 504504 bytes in 157ms
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=18,
LayerName= com.benhirashima.nookcolorsettings/com.benhirashima.nookcolorsettings
.NCSettings
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
W/InputManagerService( 958): Starting input on non-focused client com.android.i
nternal.view.IInputMethodClient$Stub$Proxy@4a33bbd0 (uid=1000 pid=1236)
D/WindowManager( 958): interceptKeyTi code=4 down=true repeatCount=0 keyguardOn
=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=4 down=false repeatCount=0 keyguardO
n=false mHomePressed=false
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=19,
LayerName= com.bn.nook.library/com.bn.nook.library.LibraryMainActivity
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
D/dalvikvm( 1265): GC_FOR_MALLOC freed 7701 objects / 432968 bytes in 59ms
I/dalvikvm( 1265): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm( 1236): GC_EXPLICIT freed 3797 objects / 509904 bytes in 103ms
I/DeviceManagerHandler( 1290): HandleMessage(): msg.what (8)
D/dalvikvm( 1382): GC_EXPLICIT freed 1201 objects / 75632 bytes in 75ms
I/MountService( 958): onUmsConnected(): UMS mount state [UMS_STATE_MOUNTED]
I/MountService( 958): onUmsConnected(): => all is OK; Starting UMS
W/Vold ( 899): Ignoring unknown switch ‘usb_configuration’
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/dalvikvm( 1399): GC_EXPLICIT freed 1140 objects / 81360 bytes in 88ms
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/dalvikvm( 1415): GC_EXPLICIT freed 2261 objects / 164816 bytes in 116ms
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=20,
LayerName= Toast
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
I/ActivityManager( 958): Starting activity: Intent { cmp=com.bn.nook.applaunche
r/.jump.JumpActivity }
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=21,
LayerName= com.bn.nook.applauncher/com.bn.nook.applauncher.jump.JumpActivity
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=true repeatCount=0 keyguardO
n=false mHomePressed=false
D/WindowManager( 958): interceptKeyTi code=24 down=false repeatCount=0 keyguard
On=false mHomePressed=false
W/InputManagerService( 958): Starting input on non-focused client com.android.i
nternal.view.IInputMethodClient$Stub$Proxy@4a2edb28 (uid=10025 pid=1265)
I/ActivityManager( 958): Displayed activity com.bn.nook.applauncher/.jump.JumpA
ctivity: 445 ms (total 445 ms)
D/dalvikvm( 1092): GC_EXPLICIT freed 3941 objects / 187536 bytes in 100ms
I/ActivityManager( 958): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.openmerchanta
ccount.internetradio/.App }
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=22,
LayerName= Starting com.openmerchantaccount.internetradio
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
I/ActivityManager( 958): Start proc com.openmerchantaccount.internetradio for a
ctivity com.openmerchantaccount.internetradio/.App: pid=1542 uid=10060 gids={100
6, 3003, 1015}
D/dalvikvm( 902): GC_EXPLICIT freed 277 objects / 10528 bytes in 200ms
D/dalvikvm( 902): GC_EXPLICIT freed 42 objects / 1832 bytes in 80ms
I/System.out( 1542): loadUrl(file:///android_asset/www/index.html)
I/System.out( 1542): url=file:///android_asset/www/index.html baseUrl=file:///an
droid_asset/www
D/dalvikvm( 902): GC_EXPLICIT freed 2 objects / 64 bytes in 72ms
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=23,
LayerName= com.openmerchantaccount.internetradio/com.openmerchantaccount.interne
tradio.App
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
W/InputManagerService( 958): Starting input on non-focused client com.android.i
nternal.view.IInputMethodClient$Stub$Proxy@4a2ee150 (uid=10051 pid=1510)
I/ActivityManager( 958): Displayed activity com.openmerchantaccount.internetrad
io/.App: 763 ms (total 763 ms)
D/dalvikvm( 1510): GC_EXPLICIT freed 1174 objects / 58456 bytes in 94ms
D/dalvikvm( 1265): GC_EXPLICIT freed 3007 objects / 212752 bytes in 116ms
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
I/power ( 958): *** set_screen_state 0
E/SurfaceFlinger( 958): About to give-up screen, flinger = 0x134968
E/SurfaceFlinger( 958): Waiting on mBarrier…
E/SurfaceFlinger( 958): Woke up!
D/WifiService( 958): ACTION_SCREEN_OFF
D/WifiService( 958): setting ACTION_DEVICE_IDLE timer for 900000ms
D/DeviceManagerBroadcastReceiver( 1290): action (android.intent.action.SCREEN_OF
F)
D/WifiService( 958): acquireWifiLockLocked: WifiLock{DeviceManagerService type=
1 binder=android.os.BinderProxy@4a3d9c38}
E/DeviceInfo( 1290): Calling deviceinfo.getDeviceId
I/DeviceManagerHandler( 1290): HandleMessage(): msg.what (102)
I/DeviceManagerHandler( 1290): User is not using the device!
D/DeviceManagerHandler( 1290): HandleMessage(): Not ready to install!
D/WifiService( 958): releaseWifiLockLocked: WifiLock{DeviceManagerService type=
1 binder=android.os.BinderProxy@4a3d9c38}
D/StatusBar( 958): DISABLE_EXPAND: yes
D/StatusBar( 958): DISABLE_NOTIFICATION_ICONS: yes
I/SurfaceFlinger( 958):
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->mIdentity=24,
LayerName= Keyguard
I/SurfaceFlinger( 958): SurfaceFlinger::createSurface() : layer->clientIndex=0,
surfaceHandle->mToken=0x0
D/GoogleLoginService( 1109): onBind: Intent { act=android.accounts.AccountAuthen
ticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
D/dalvikvm( 1109): GC_EXPLICIT freed 3749 objects / 185400 bytes in 87ms
D/dalvikvm( 1306): GC_EXPLICIT freed 2694 objects / 146856 bytes in 117ms
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/dalvikvm( 1236): GC_EXPLICIT freed 590 objects / 36328 bytes in 81ms
E/TalkProvider( 1109): replaceContactWithContactId: contactId==0!!! fiach.reid@g
mail.com, acct=1
E/TalkProvider( 1109): insert presence failed for account=1 username=fiach.reid@
gmail.com client_type=2 status= priority=0 mode=4
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService( 958): ACTION_BATTERY_CHANGED pluggedType: 0

Advertisements
Categories: Uncategorized
  1. bobby
    April 23, 2015 at 11:14 am

    Hi i am getting extras but i am noot seeing nook color tools

  1. No trackbacks yet.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: