View Single Post
Old 12-09-2023, 07:47 AM   #47
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 4,002
Karma: 18026955
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by csdvrx View Post
There's something funny going on at boot: adbd get started early, then restarted.
There's usually something that copies persist.sys.usb.config to sys.usb.config early-ish during boot.
That triggers a trigger which initializes the USB gadget and starts adbd if needed.
When the Android subsystem finally loads the UsbManager in services.jar it takes over and might want to redo everything.

Things also get more complicated. When you pull the USB cable the USB gadget gets torn down. If the Android subsystem has been stopped you won't be able to reconnect. Normally the UsbManager will re-initialize the USB gadget immediately after disconnect (and not at reconnect). Splitting the responsibility for USB gadget between init and UsbManager makes things goofy.
Renate is offline   Reply With Quote