This utility solves the problem of not being able to enable ADB.
Engineering mode has a HOST/OTG toggle but that doesn't enable adbd.
I've been finding ADB is far more likely to conenct if the computer is connected to the USB-C port when the car starts
If the car is already running, connect the computer to the USB-C port, then hold the home button on the car till the headunit reboots (approx 10 seconds, you'll see a harmless autohold fault on the dash) and it should work once the restart is complete.
The USB-C port to the right side of the 12v power socket is the OTG port. The USB A port will be switch to OTG mode as well, but this hasn't been tested.
I've included a button to restart adbd. That allows you to enable Wireless ADB bypassing the firewall.
Once ADB is connected via USB run:
adb shell setprop service.adb.tcp.port 5556
from your computer and then press the "Restart ADB" button for the change to take effect.
On your computer you can then run:
adb connect MG4_IP_Address:5556
If you haven't sideloaded apps before:
- Open the Bluetooth Settings and select the car name
- Hold down on the comma until the settings appear.
- Select Android Keyboard Settings.
- Select Languages
- Use the search box at the top to search for "file"
- That should give you access to the files app.
From there you can select a connected USB device with APKs on it and install as usual.