11-07-2011, 01:39 PM | #1 |
Lurker in the Dark
Posts: 125
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
|
getting adb working
I am trying to get 'adb devices' to work reliably
I update my Code:
~/.android/adb_usb.ini Code:
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT. # USE 'android update adb' TO GENERATE. # 1 USB VENDOR ID PER LINE. 0x054c Code:
/etc/udev/rules.d/51-android.rules Code:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2080", MODE="0666", OWNER="andy" SUBSYSTEMS=="usb", ATTRS{idVendor}=="054C", MODE="0666", OWNER="andy" I have rebooted my PC and my prs-t1, still adb devices shows nothing. This was working last night, and I had it working on my work PC all day, so does anyone know what has gone wrong? |
11-07-2011, 03:57 PM | #2 |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
For me the only thing that lets ADB be detected on the PC (be it Windows or Linux) is actually toggling the "Enable ADB over USB" checkbox while connected to the USB. If you reboot the reader while connected, it gets detected as well.
Something about the sequence of ADB and other USB processes in the reader coming up. I cannot explain it. What works for me every time is clicking on the checkbox to turn it off, then immediately turning it back on. |
Advert | |
|
11-07-2011, 04:03 PM | #3 | |
Wizard
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
|
Quote:
|
|
11-08-2011, 01:43 AM | #4 |
Lurker in the Dark
Posts: 125
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
|
okay, I'll keep that in mind, thanks.
|
11-12-2011, 01:03 PM | #5 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
I don't get it to work It's Windows 7 x64 and Android SDK for Android 2.2
enable-adb is installed on my PRS-T1 I edited the driver inf file according to http://translate.google.com/translat...ic.php?t=21458 for both - the x86 and the x64 section - and the driver is now running properly (shows up in device manager as Android Composide ADB interface). Now, when toggling USB debugging in android settings, the device appears/disappears as expected in windows device manager and the small robot shows up on the notification bar on the reader. So, everything should be fine. But "adb kill-server" followed by "adb devices" still does not show any devices :*( Last edited by uboot; 11-12-2011 at 01:10 PM. |
Advert | |
|
11-13-2011, 09:02 AM | #6 |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Did you edit %USERPROFILE%\.android\adb_usb.ini ?
|
11-13-2011, 05:11 PM | #7 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
yes, I did... but guess what???? I just re-checked the file and did a minor change which resolved the issue:
0x054c -> 0x054C |
11-24-2011, 06:18 PM | #8 |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2011
Device: PRS-T1
|
enable-adb-jp, disable-adb-jp please!
|
01-28-2012, 10:50 AM | #9 | |
Member
Posts: 18
Karma: 15762
Join Date: Jan 2012
Device: Boyue Likebook Mars
|
Quote:
I ever only get a generic USB Mass Storage Device shown in the Device Manager (DM). On trying to install the USB driver for that one, Windows tells me that this is not possible. If I try to install the driver beforehand via "legacy hardware" in the DM, I have a branch "Android Phone" in the DM after de- and reenabling USB debugging, but its subbranch is "unknown device" - while still having also the entries under Mass Storage Device and Portable Devices. Also USBDeview shows me nothing else than a "Sony PRS-T1 Setting Device" with the known VID_054C&PID_05C2 and the serial number, but nothing of a VID_054C&PID_05C2&MI_01. I don't really understand how Windows handles this stuff, but shouldn't toggling the USB debug mode result in that different mode/MI? What does the DM show for you guys when you have an ADB connection? Any help appreciated! |
|
01-28-2012, 12:10 PM | #10 |
Member
Posts: 18
Karma: 15762
Join Date: Jan 2012
Device: Boyue Likebook Mars
|
But: ADW over WiFi works!
There is, however, alway hope
I just took an ADB over WiFi widget from the market, put it on the launcher and configured it for lazyness to port 5555, enabled incoming connections as pointed out by sonic74 earlier, and simply connected from my PC. Hosianna! |
02-01-2012, 11:29 AM | #11 | |
Member
Posts: 13
Karma: 662
Join Date: Jan 2012
Device: PRS-T1
|
Quote:
... click it and it says Please Wait for a bit but then just goes blank. Did you have to do the enable-adb flashing or anything? |
|
02-01-2012, 03:11 PM | #12 |
Member
Posts: 13
Karma: 662
Join Date: Jan 2012
Device: PRS-T1
|
Can someone confirm what happens when you flash with the enable-adb?
Does it work fine with the current root or does it bugger things up like link2sd or other stuff? |
02-01-2012, 06:17 PM | #13 | |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Quote:
It works correctly with no matter what western firmware... |
|
02-02-2012, 08:20 AM | #14 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Hi, I need to mount /system partition in read-write mode.
I found this " We use adb tool in tools directory of SDK. 1. Identifying the /system partition device file: Follow the sample session. C:\android-sdk-windows-1.1_r1\tools>adb shell $ su # mount rootfs / rootfs ro 0 0 tmpfs /dev tmpfs rw,mode=755 0 0 devpts /dev/pts devpts rw,mode=600 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 /dev/block/mtdblock3 /system yaffs2 ro 0 0 /dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0 /dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0 /dev/block/mmcblk0p1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,f mask=0711,dmask=0700,codepage=cp437,iocharset=iso8 859-1,utf8 0 0 /dev/block/mtdblock3 is the /system partition device file. 2. Remounting the /system in read-write mode: # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system 3. If necessary set read-write permission to any directory under /system. Don’t forget to revert back once you get what you are intended to do. # chmod 777 /system/fonts 4. Exit the hacker session # exit $ exit Enjoy the freedom of /system." Will this procedure S-off/NAND unlock my PRS T1? My goal is to change system font by using Font Changer (root) app. For this app to work it requires *FULL ROOT* (aka NAND unlocked or S-OFF) Last edited by giosa; 02-02-2012 at 08:23 AM. |
02-03-2012, 03:40 AM | #15 |
Member
Posts: 18
Karma: 15762
Join Date: Jan 2012
Device: Boyue Likebook Mars
|
Yes, no ADB without enable-adb. In simple terms this starts a server on the phone with ADB on your PC being the client to access it.
ADB-over-WiFi apps just replace the need to use the USB cable (and basically you could do that rather easily via the console as well, but simply touching the widget is nice), and thus the problems with getting your OS to use the driver needed for the ADB mode. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
friend needs some help with adb | emusan | enTourage Archive | 2 | 05-27-2011 01:00 PM |
Curiosity ? What is ADB and why do I need it? | Sethman | Nook Developer's Corner | 3 | 02-05-2011 03:44 PM |
adb is not recognized | jyl | Nook Developer's Corner | 3 | 01-18-2011 09:49 AM |
Help with adb | Thibor | Nook Developer's Corner | 5 | 12-05-2010 07:22 AM |
Classic Using Adb | rdfry | Barnes & Noble NOOK | 5 | 02-27-2010 08:19 PM |