ADB in windows shows dev offline

2,655 views
Skip to first unread message

Saravanan

unread,
Jul 27, 2009, 4:21:18 AM7/27/09
to Android Linux Kernel Development
Hi all!,
I am porting Android to S3C6410 based development board. On
the board, Android boots normally and everything is ok. When i
connected the board to windows PC through usb, it prompted to ''new
hardware installation" window. Then i installed the proper host driver
for windows.

When i executed below adb command from windows command prompt, it
shows that device is offline.

d:> adb devices
1 123456789ABCDEF offline 0

d:> adb shell
no device

Can someone help me how can i bring the device online. I want to get a
command prompt for Android through "adb shell"

Thanks in advance,
Saravanan

basteon

unread,
Jul 27, 2009, 5:54:11 AM7/27/09
to android...@googlegroups.com
hi,
I seems offline it's not attached. I not use this tool before, but if
we see in source...
if(!strcmp(argv[0], "devices")) {
char *tmp;
snprintf(buf, sizeof buf, "host:%s", argv[0]);
tmp = adb_query(buf);
if(tmp) {
printf("List of devices attached \n");
printf("%s\n", tmp);
return 0;
} else {
return 1;
}
}


2009/7/27 Saravanan <sarava...@gmail.com>:

Hua Zhou

unread,
Jul 27, 2009, 12:22:27 PM7/27/09
to android...@googlegroups.com
check the adbd service is start ok on your board.

try adb kill-server, then adb devices.

2009/7/27 basteon <bas...@gmail.com>

Saravanan

unread,
Jul 27, 2009, 1:12:36 PM7/27/09
to Android Linux Kernel Development
Hi Basteon,

Thanks for your reply!
I understand that this source code is for the adb in windows SDK. May
i know how can i get the source code of adb for windows sdk.

Regards,
Saravanan

On Jul 27, 2:54 am, basteon <bast...@gmail.com> wrote:
> hi,
> I seems offline it's not attached. I not use this tool before, but if
> we see in source...
>     if(!strcmp(argv[0], "devices")) {
>         char *tmp;
>         snprintf(buf, sizeof buf, "host:%s", argv[0]);
>         tmp = adb_query(buf);
>         if(tmp) {
>             printf("List of devices attached \n");
>             printf("%s\n", tmp);
>             return 0;
>         } else {
>             return 1;
>         }
>     }
>
> 2009/7/27 Saravanan <saravanan....@gmail.com>:
>
>
>
>
>
> > Hi all!,
> >          I am porting Android to S3C6410 based development board. On
> > the board, Android boots normally and everything is ok. When i
> > connected the board to windows PC through usb, it prompted to ''new
> > hardware installation" window. Then i installed the proper host driver
> > for windows.
>
> > When i executed below adb command from windows command prompt, it
> > shows that device is offline.
>
> > d:> adb devices
> > 1   123456789ABCDEF  offline   0
>
> > d:> adb shell
> > no device
>
> > Can someone help me how can i bring the device online. I want to get a
> > command prompt for Android through "adb shell"
>
> > Thanks in advance,
> > Saravanan- Hide quoted text -
>
> - Show quoted text -

birjodh tiwana

unread,
Jul 27, 2009, 1:14:32 PM7/27/09
to android...@googlegroups.com
do adb kill-server . then do adb devices again.. make sure device is connected.

Saravanan

unread,
Jul 27, 2009, 1:16:29 PM7/27/09
to Android Linux Kernel Development
Hi Hua Zhou,

Thanks for your reply!
May i know what are all the binaries running on Android side is
responsible for "ADB interface". Is there anything like "usbd" that
runs on Android side and partially responsible for "ADB interface".

Regards,
Saravanan

On Jul 27, 9:22 am, Hua Zhou <xiaohu...@gmail.com> wrote:
> check the adbd service is start ok on your board.
> try adb kill-server, then adb devices.
>
> 2009/7/27 basteon <bast...@gmail.com>
>
>
>
>
>
> > hi,
> > I seems offline it's not attached. I not use this tool before, but if
> > we see in source...
> >    if(!strcmp(argv[0], "devices")) {
> >        char *tmp;
> >        snprintf(buf, sizeof buf, "host:%s", argv[0]);
> >        tmp = adb_query(buf);
> >        if(tmp) {
> >            printf("List of devices attached \n");
> >            printf("%s\n", tmp);
> >            return 0;
> >        } else {
> >            return 1;
> >        }
> >    }
>
> > 2009/7/27 Saravanan <saravanan....@gmail.com>:
>
> > > Hi all!,
> > >          I am porting Android to S3C6410 based development board. On
> > > the board, Android boots normally and everything is ok. When i
> > > connected the board to windows PC through usb, it prompted to ''new
> > > hardware installation" window. Then i installed the proper host driver
> > > for windows.
>
> > > When i executed below adb command from windows command prompt, it
> > > shows that device is offline.
>
> > > d:> adb devices
> > > 1   123456789ABCDEF  offline   0
>
> > > d:> adb shell
> > > no device
>
> > > Can someone help me how can i bring the device online. I want to get a
> > > command prompt for Android through "adb shell"
>
> > > Thanks in advance,

birjodh tiwana

unread,
Jul 27, 2009, 1:17:46 PM7/27/09
to android...@googlegroups.com
the thing that is "partially responsible" for adb is the adbd daemon process running in kernel.

Saravanan

unread,
Jul 28, 2009, 6:20:02 AM7/28/09
to Android Linux Kernel Development
Hi all,

`adbd` is running successfully in Android and adb server also
running successfully in Linux PC but still `adb devices` shows that
device is offline. I tried killing and starting server many times but
still the same response

Can some one help me where something goes wrong.

Regards,
Saravanan

On Jul 27, 10:17 pm, birjodh tiwana <birjodh.tiw...@gmail.com> wrote:
> the thing that is "partially responsible" for adb is the adbd daemon process
> running in kernel.
>

basteon

unread,
Jul 29, 2009, 6:43:53 AM7/29/09
to android...@googlegroups.com
What's transtort you use? I think affair with it. You can investigate
this problem by yourself, post your configuration or ask there
irc.freenode.net #android.


2009/7/28 Saravanan <sarava...@gmail.com>:

vinish

unread,
Jul 30, 2009, 5:36:41 AM7/30/09
to Android Linux Kernel Development
hi..
start the emulator and then try

dan raaka

unread,
Jul 30, 2009, 4:29:07 PM7/30/09
to android...@googlegroups.com
try unplugging the board from PC and reconnect ..
sometimes this does the trick ..

-Dan

Neo

unread,
Aug 4, 2009, 6:12:19 AM8/4/09
to Android Linux Kernel Development


On Jul 31, 1:29 am, dan raaka <danra...@gmail.com> wrote:
> try unplugging the board from PC and reconnect ..
> sometimes this does the trick ..
>
> -Dan
>
> On Thu, Jul 30, 2009 at 2:36 AM, vinish <geeth.gane...@gmail.com> wrote:
>
> > hi..
> >  start the emulator and then try
>
> > On Jul 27, 1:21 pm, Saravanan <saravanan....@gmail.com> wrote:
> > > Hi all!,
> > >           I am porting Android to S3C6410 based development board. On
> > > the board, Android boots normally and everything is ok. When i
> > > connected the board to windows PC through usb, it prompted to ''new
> > > hardware installation" window. Then i installed the proper host driver
> > > for windows.
>
> > > When i executed below adb command from windows command prompt, it
> > > shows that device is offline.
>
> > > d:> adb devices
> > > 1   123456789ABCDEF  offline   0
>
> > > d:> adb shell
> > > no device
>
> > > Can someone help me how can i bring the device online. I want to get a
> > > command prompt for Android through "adb shell"
>
> > > Thanks in advance,
> > > Saravanan
>
>

Try rebooting the board while adb is running.
Reply all
Reply to author
Forward
0 new messages