NOTE: This app only supports MIUI system.
Add the toggle to MIUI notification center In the notification center editing mode, you can find "5G Switcher" at "Available toggles". After adding, long-press the toggle to open settings.
Support ADB Shell commands It is convenient for ROOT devices to run automated scripts by this adb cmd:
# Turn on 5G, turn off false am start -n com.ysy.switcherfiveg/.MainActivity --ez enable_5g true