RomType

object RomType

Android ROMs type tool.

Here is a collection of third-party in-depth customization of the identification functions of Android ROMs from some major manufacturers.

The identification function relies on reading the Class implementation that exists specifically in the system framework of the current running environment through Java reflection and SystemProperties.

Some of the later ROM detection additions were inspired by DeviceCompat. Special thanks to that project for the adaptation ideas and references.

Types

Link copied to clipboard
annotation class Value

The ROM type value annotation.

Properties

Link copied to clipboard
const val COLOROS: Int = 3
Link copied to clipboard

Get the current ROM type.

Link copied to clipboard
const val DEFAULT: Int = 0

The default type.

Link copied to clipboard
const val EMUI: Int = 38
Link copied to clipboard
const val EUI: Int = 32
Link copied to clipboard
const val FLYME: Int = 8
Link copied to clipboard
const val FUNTOUCHOS: Int = 5
Link copied to clipboard
const val H2OS: Int = 17
Link copied to clipboard
const val HARMONYOS: Int = 36
Link copied to clipboard
Link copied to clipboard
const val HYPEROS: Int = 1
Link copied to clipboard
const val MAGICOS: Int = 7
Link copied to clipboard
const val MIFAVORUI: Int = 23
Link copied to clipboard
const val MIUI: Int = 2
Link copied to clipboard
const val MYOS: Int = 22
Link copied to clipboard
const val NEBULAAIOS: Int = 21
Link copied to clipboard
const val NUBIAUI: Int = 24
Link copied to clipboard
const val OBRICUI: Int = 33
Link copied to clipboard
const val ONEUI: Int = 9
Link copied to clipboard
const val ORIGINOS: Int = 6
Link copied to clipboard
const val OS360: Int = 35
Link copied to clipboard
const val OXYGENOS: Int = 16
Link copied to clipboard
const val REALMEUI: Int = 4
Link copied to clipboard
const val REDMAGICOS: Int = 20
Link copied to clipboard
const val ROGUI: Int = 34
Link copied to clipboard
const val SMARTISANOS: Int = 25
Link copied to clipboard
const val VISIONOS: Int = 39
Link copied to clipboard
const val ZUI: Int = 18
Link copied to clipboard
const val ZUXOS: Int = 19

Functions

Link copied to clipboard
inline fun matches(type: Int): Boolean

Determine whether the current ROM is of the specific type.