What is the connection logic for the dual-connection function of the Earbuds?

1. Reconnection after lid opening:
1) When the Earbuds are turned on with the dual-connection feature enabled, if the number of connected devices is less than two, the Earbuds will attempt to reconnect to the last two devices they were connected to. If the dual-connection feature is enabled for the first time and there are no previous reconnection records, the Earbuds will remain connected to a single device (when in single-connection mode, the Earbuds will not automatically enter pairing mode; pairing with a new device must be initiated manually by the user via a long press of the button). If the Earbuds fail to reconnect to other devices, they will stay in single-connection mode and will not enter pairing mode.
2) If the Earbuds and a terminal device are disconnected due to being out of connection range, when they come back within the connection range again, the Earbuds will only reconnect to the mobile phone that was disconnected due to the range issue.
3) The Earbuds will not trigger reconnection when they are in a call or playing music.
4) If the Earbuds are in the reconnection state and enter a call or music playback scenario, they will pause the reconnection within 5 seconds. If the call or music playback ends within the reconnection timeout period, the Earbuds will resume the paused reconnection until the timeout expires. After the reconnection timeout, the connection to the Earbuds can only be initiated from the device side.

2. Preemptive connection:
The Earbuds in dual-connection mode can be preemptively connected to another device, following the principles below:
1) When neither of the two connected mobile phones is in music playback state, the Earbuds will disconnect from the one that was connected first and connect to the device initiating the preemptive connection.
2) When the Earbuds enter the pairing mode for a new device while already connected to two devices, they will disconnect from one of the two connected devices upon entering the pairing mode, allowing themselves to be detected and connected to the new device after the disconnection.
3) When the Earbuds are already connected to two devices and a third device with a previous connection record initiates a preemptive connection, the Earbuds will disconnect from one of the two currently connected devices, enabling the third device to establish the preemptive connection after the disconnection.

Tips:
Music playback state:
1) If one of the