# scottyab/rootbeer

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/scottyab-rootbeer).**

2,858 stars · 508 forks · Java · apache-2.0

## Links

- GitHub: https://github.com/scottyab/rootbeer
- awesome-repositories: https://awesome-repositories.com/repository/scottyab-rootbeer.md

## Description

Rootbeer is an Android security SDK and root detection library designed to verify device integrity and identify operating system tampering. It functions as a device integrity checker that scans for management applications and system files indicating root access or unlocked bootloaders.

The library employs a variety of detection techniques, including binary-presence scanning for superuser binaries, direct file system probing of restricted directories, and property-based environment validation of kernel flags and build properties. It utilizes a Java-native interface bridge to execute low-level system calls and applies heuristic security detection to differentiate genuine root access from false positives.

## Tags

### Security & Cryptography

- [Root Detection Libraries](https://awesome-repositories.com/f/security-cryptography/root-detection-libraries.md) — Provides a library to identify rooted Android devices by searching for known binaries and modified system properties. ([source](https://github.com/scottyab/rootbeer#readme))
- [Permission Probing](https://awesome-repositories.com/f/security-cryptography/file-system-permissions/permission-probing.md) — Attempts to access restricted directories and system files to verify read-write permissions on protected partitions.
- [Device Integrity Verifications](https://awesome-repositories.com/f/security-cryptography/identity-authentication/mobile-authentication/firebase-integration/device-integrity-verifications.md) — Scans for management applications and system files that indicate an unlocked bootloader or root access.
- [System Property Validation](https://awesome-repositories.com/f/security-cryptography/system-property-validation.md) — Inspects system build properties and kernel flags for indicators of unlocked bootloaders or modified firmware.
- [Environment Heuristics](https://awesome-repositories.com/f/security-cryptography/threat-detection/environment-heuristics.md) — Combines multiple environmental signals to differentiate between genuine root access and false positives.

### Mobile Development

- [Root Detection Libraries](https://awesome-repositories.com/f/mobile-development/android-ecosystem/root-detection-libraries.md) — Provides a library for identifying rooted Android devices by searching for known binaries and modified system properties.
- [Android Security Tools](https://awesome-repositories.com/f/mobile-development/mobile-infrastructure-security/mobile-security-tools/android-security-tools.md) — Provides a set of tools to verify the integrity of the Android operating system and detect environment tampering.

### Operating Systems & Systems Programming

- [Root Binary Scanning](https://awesome-repositories.com/f/operating-systems-systems-programming/desktop-environment-frameworks/desktop-environment-components/desktop-applications/desktop-application-automation/installation-verification/binary-path-verification/root-binary-scanning.md) — Checks the system file path for known superuser binaries and management applications to identify rooting.

### Software Engineering & Architecture

- [Native Bridges](https://awesome-repositories.com/f/software-engineering-architecture/native-bridges.md) — Uses a native bridge to execute low-level system calls that bypass the standard Android application sandbox.
