View Single Post
Old 11-12-2022, 07:18 AM   #45
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: 3,989
Karma: 18026955
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
There are two ways to configure a Linux USB gadget: the older sysfs and the newer configfs.
So Android decided to use both.

Since both are activated by triggers, the property sys.usb.configfs is used to select.

/dev/socket/adbd is for communication to the framework. That's how the confirm dialog pops up.

If you look at all the triggers for sys.usb.config, you'll see that many start/stop adbd. That's what's happening. The Java UsbManager is setting the USB mode when the Android subsystem boots.
Renate is offline   Reply With Quote