This application aims to create a unified internet quick-settings tile, which is actually useful (I'm looking at you, Android 12). Next to this, separate Wi-Fi and mobile data tiles are also available if you just want to go back to the behaviour of Android 11 or lower.
Tapping the new unified internet tile will simply toggle between Wi-Fi and mobile data, which is exactly what I want it to do most of the time. This reduces the amount of taps needed from 3 (tap tile, disable wifi, enable data) to just 1 quick tap. In situations where you still want more control, long pressing the tile will redirect you to the relevant settings page.
This has been tested and confirmed working on Pixel devices running Android 12 and 13, but other devices will probably work too.
Shell access is required to enable/disable Wi-Fi and mobile data, as well as for reading the SSID of the current Wi-Fi network. This can be granted using regular root, or by using the Shizuku application. Shizuku can be started using either adb or wireless debugging (or root, but then you might as wel use direct root access instead). The Sui and Riru magisk modules can also be used as an alternative to the Shizuku application.
Beware that if you do use Shizuku without root, you will need to start the Shizuku server each time you reboot the device. You can do this without a PC using the wireless debugging method, so it is not that big of an issue, but it is something to keep in mind.
Feel free to check out the source code and create an issue or pull request if you want to see more features added. Less tech savvy but also want to contribute? Check out this project on Weblate to help out with translations!