by Regitalish International
:: BY MOSSTHEMOST ::
When screen is locked and Wi-Fi is disabled toggles to 2G/Edge network, and entering doze mode.
When screen is locked, but hotspot on or download is active, network remain in 3G/4G.
When screen is unlocked, toggles to 3G/4G network.
Always disable mobile network when Wi-Fi is connected.
Requires root and Android 6+
For Android 5+, just delete doze block.