Skip to content

RootEmuVirtualCheck is an Android library that provides methods to detect whether an app is running on a virtual space, a rooted device, or an emulator. The library uses a combination of checks based on common signs of virtualization, root access, and emulator environments.

Notifications You must be signed in to change notification settings

riyadmondol2006/RootEmuVirtualCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

RootEmuVirtualCheck

RootEmuVirtualCheck is a simple Kotlin library that provides methods to check if an Android device is rooted, running on an emulator, or running in a virtual space. This library can be useful for developers who want to prevent their app from running on devices that are not allowed.

How it works

The library provides three static methods:

  • isDeviceRooted(): Returns true if the device is rooted.
  • isRunningOnEmulator(): Returns true if the app is running on an emulator.
  • isRunningOnVirtualSpace(): Returns true if the app is running in a virtual space.

The isDeviceRooted() method checks for the presence of the test-keys string in the device's build tags and the su binary in the system's path.

The isRunningOnEmulator() method checks for various strings in the device's Build properties that are commonly associated with emulator devices.

The isRunningOnVirtualSpace() method checks for the presence of various known su binary paths in the file system.

Contact

If you have any questions or suggestions, please feel free to email me at [email protected].

About

RootEmuVirtualCheck is an Android library that provides methods to detect whether an app is running on a virtual space, a rooted device, or an emulator. The library uses a combination of checks based on common signs of virtualization, root access, and emulator environments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published