The docs are quite good, though involved.
https://docs.godotengine.org/en/stable/tutorials/xr/introducing_xr_tools.html
https://docs.godotengine.org/en/stable/tutorials/xr/deploying_to_android.html
https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html
choco install godot
choco install openjdk --version=11.0
choco install androidstudio
# Open androidstudio, install the sdk
# Open the sdk tools, and install the cmdline tools for SDK tools
cd %appdatalocal%\Android\Sdk\cmdline-tools\latest\bin
# Copy the example command for what tools to install from the exporting to android page, e.g.
sdkmanager --sdk_root="%appdatalocal%\Android\Sdk" "platform-tools" "build-tools;33.0.2" "platforms;android-33" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;23.2.8568313"
# at least one of the things above won't install, so you will probably have to go through the sdk gui instead ...
https://developer.oculus.com/documentation/native/android/mobile-device-setup/
Make yourself a developer on oculus.com and enable it... This will likely require re-pairing your headset with your meta account to let it enable the developer option after you join an oculus meta Developer Organization. A factory reset to log out of a meta account to log back in WAS NOT required for me.
Also look at your phone app to find the enable developer option.
Download adb and the adb drivers.
Initially plug into your computer. Go to notifications and click it.
https://developer.oculus.com/documentation/native/android/ts-adb/
adb devices
# check your headset for a notification... click the "always trust link" below the main buttons
adb devices
#
adb shell ip route
# 10.0.30.0/19 dev wlan0 proto kernel scope link src 10.0.32.101
adb tcpip 5555
# restarting in TCP mode port: 5555
adb connect 10.0.32.101:5555
# connected to 10.0.32.101:5555