Siva, thanks for quick reply.

This behavior of adb install forced me to to develop a small workaround for 
my program.
Currently scenario works like this:
- My program controls adb via sub-process. On entry it starts adb (adb 
start-server), then installs application for connected device using adb 
install.
- It does some work - sends intents, checks some props
- Uninstalls application using adb uninstall
- On exit kills adb server - adb kill-server

And problem here is, when I will disconnect device when running adb 
install, adb hangs, and process adb.exe remains in the processess, even if 
I will close my application (that runs adb kill-server).
To resolve this issue I have added to my program, while exiting it, 
function that kills all processes named adb.exe.

BR,
Pawel


On Thu, May 8, 2014 at 2:06 AM, Pawel Oczek <[email protected] <javascript:>> 
> wrote: 
> > This is my first post here, so first of all, hello everybody! 
>
> Welcome! 
>
> > 
> > I am not sure if it is bug or a feature:) but I have noticed that when 
> you 
> > will run adb install with no device connected, it firstly starts adb 
> daemon 
> > (if was not currently running), and then wait for the device. After 
> that, 
> > when you open new window and run adb kill-server, adb install command 
> will 
> > not stop, but shows protocol fault and then restart adb daemon again. 
> > There is no other way of stopping this, than killing the process (for 
> > example using ctrl+c). 
> > 
> > I have also noticed that other commands like adb shell, adb devices, adb 
> > wait-for-device doesn't act like adb install - stop when adb kill-server 
> > will be lunched. 
> > 
> > My version of ADB is 1.0.31 
> > I have tested this issue on Linux and Windows, and both works the same. 
> > 
> > Please let me know, what do you think about it. 
>
> It sounds like a bug, albeit one that is not critical. Is there a 
> scenario where this prevents you from doing real work? 
> If so, I recommend filing a bug at b.android.com. 
>
> > 
> > Best Regards, 
> > Pawel 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "adt-dev" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to