This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object MiuiCheck { | |
/** | |
* Check if the device is running on MIUI. | |
* | |
* By default, HyperOS is excluded from the check. | |
* If you want to include HyperOS in the check, set excludeHyperOS to false. | |
* | |
* @param excludeHyperOS Whether to exclude HyperOS | |
* @return True if the device is running on MIUI, false otherwise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Process | |
import android.util.Log | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.channels.awaitClose | |
import kotlinx.coroutines.flow.Flow | |
import kotlinx.coroutines.flow.callbackFlow | |
import kotlinx.coroutines.flow.flowOn | |
import kotlinx.coroutines.launch | |
import kotlinx.coroutines.withContext | |
import java.io.BufferedReader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[/] | |
animate-appicon-hover-animation-extent={'RIPPLE': 4, 'PLANK': 4, 'SIMPLE': 1} | |
appicon-margin=0 | |
appicon-padding=8 | |
available-monitors=[0] | |
dot-position='BOTTOM' | |
dot-style-focused='SEGMENTED' | |
dot-style-unfocused='DASHES' | |
hotkeys-overlay-combo='TEMPORARILY' | |
leftbox-padding=-1 |