Skip to content

khalane-roshani/RootGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RootGuard 🛡️

RootGuard is a robust security utility designed to harden Android applications by enforcing strict runtime environment checks. It acts as a gatekeeper, ensuring your app only runs in a trusted, secure state.


📋 Project Overview

  • Author: Roshani Khalane
  • Created: 24th January, 2025
  • Purpose: Security Management & Device Integrity

This library ensures your application is protected against common exploits by validating the environment before the app fully initializes.

🛡️ Key Security Features

  1. Virtual Device Prevention: Blocks the application from running on emulators (AVDs, Genymotion).
  2. Anti-Debugging: Disallows execution if debugging is active to prevent reverse engineering.
  3. Root Detection: Prevents installation or execution on rooted or jailbroken devices.
  4. Code Tampering Protection: Safeguards the application against unauthorized modifications.
  5. Dynamic Instrumentation Defense: Protection against runtime manipulation tools like Frida or Xposed.

🚀 Usage

To use the security check in your MainActivity:

securityVariable = SecurityManager.SecurityManager(this);
if (!securityVariable.getIsSecure()) {
    // Show the security message and exit the app
    Toast.makeText(context, result.getMessage(), Toast.LENGTH_LONG).show();
    finish();
}

About

Protect your application from environment exploits with real-time root, emulator, frida, and debugger Detection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages