Hi, when an Android device is connected, it is in client mode (at least on samsung devices) and when the device is connected, the device address is first set to 0x0, so the default address is known to the host. Then there is the endpoint 0 through which the entire configuration is performed (configuration, interface, endpoints).

The above image will help you understand. This is taken from the USB 2.0 manual. Remember that all settings during initialization are made through the endpoint 0, which is present on each device.
And I do not know how to change it from the client-host mode. (My knowledge is limited to the fact that negotiations are carried out after tuning in OTG mode). Hope I helped.
source share