Skip to main content

Device & Security

CpuInfo Class

com.kollus.sdk.media.util.CpuInfo

A utility class that checks the CPU specifications and hardware performance information of a mobile device to determine whether high-quality video playback is supported.

Public Methods

  • int getCpuCount()
  • String getCpuName()
  • Vector<String> getFrequence()
  • int getFrequenceWithInt()
  • boolean hasFeature(String feature)
  • boolean isSupportDevice()

Static Public Methods

  • static synchronized CpuInfo getInstance()

Method Details

int com.kollus.sdk.media.util.CpuInfo.getCpuCount()

Returns the number of physical cores in the processor.

  • Returns: Number of CPU cores

String com.kollus.sdk.media.util.CpuInfo.getCpuName()

Returns the official name of the processor (AP).

  • Returns: Processor model name

Vector<String> com.kollus.sdk.media.util.CpuInfo.getFrequence()

Returns the CPU clock frequency information as a list of strings.

  • Returns: CPU clock list

int com.kollus.sdk.media.util.CpuInfo.getFrequenceWithInt()

Returns the maximum operating clock frequency of the CPU as an integer. Useful for numerical comparison during performance analysis.

  • Returns: Maximum CPU clock value

static synchronized CpuInfo com.kollus.sdk.media.util.CpuInfo.getInstance()

Returns the singleton instance of CpuInfo. The instance must be created once before querying device information.

  • Returns: CpuInfo instance

boolean com.kollus.sdk.media.util.CpuInfo.hasFeature(String feature)

Checks whether the CPU supports a specific instruction set or hardware acceleration feature.

  • Parameters
    • feature: Name of the hardware feature to check
  • Returns: Whether the feature is supported

boolean com.kollus.sdk.media.util.CpuInfo.isSupportDevice()

Checks whether the hardware specifications meet the minimum playback requirements of the Kollus SDK.

  • Returns: Whether the service is supported

EmulatorCheckerListener Interface

com.kollus.sdk.media.EmulatorCheckerListener

A security listener interface that detects rooting, emulator environments, and debugging mode activation for content protection, and receives callbacks when these events occur.

Public Methods

  • void onDetectDebuggingMode()
  • void onDetectRooting()
  • void onRunningEmulator()

Method Details

void com.kollus.sdk.media.EmulatorCheckerListener.onDetectDebuggingMode()

Called when system debugging mode is activated during video playback.


void com.kollus.sdk.media.EmulatorCheckerListener.onDetectRooting()

Called when OS privilege tampering (rooting) is detected. Actions such as blocking playback can be performed according to the security policy.


void com.kollus.sdk.media.EmulatorCheckerListener.onRunningEmulator()

Called when the SDK is running in a virtual environment (emulator) rather than an actual mobile device.