Plugin.Android.RootDetection
1.0.0
dotnet add package Plugin.Android.RootDetection --version 1.0.0
NuGet\Install-Package Plugin.Android.RootDetection -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plugin.Android.RootDetection" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Plugin.Android.RootDetection" Version="1.0.0" />
<PackageReference Include="Plugin.Android.RootDetection" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Plugin.Android.RootDetection --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Plugin.Android.RootDetection, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Plugin.Android.RootDetection@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Plugin.Android.RootDetection&version=1.0.0
#tool nuget:?package=Plugin.Android.RootDetection&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AndroidRootDetection
AndroidRootDetection is a lightweight .NET Android library for detecting rooted devices and helping protect apps from running in compromised environments.
NuGet Package
- Package ID:
Plugin.Android.RootDetection - Latest Version:
1.0.0
Install with .NET CLI:
dotnet add package Plugin.Android.RootDetection
Requirements
- .NET for Android target:
net10.0-android - Minimum Android API level:
26
What it checks
The library combines multiple root-detection signals, including:
- Test keys in build tags
- Known root app package checks
su,busybox, andmagiskbinary checks in common paths- Suspicious root-related filesystem paths
sucommand availability- Dangerous system properties (
ro.debuggable,ro.secure) - Magisk activity / boot state checks
- Ability to write to system partition
Usage
Quick check via helper
using Plugin.Android.RootDetection;
var result = await JailberakDetectorHelper.IsRooted();
if (result is bool isRooted && isRooted)
{
// Device is rooted (or emulator, based on current helper behavior)
}
JailberakDetectorHelper.IsRooted()returnsobject:
boolwhen detection succeedsExceptionwhen an error occursAlso note: current helper logic returns
truefor emulators.
Advanced checks
using AndroidRootDetection.RootDetection;
var checker = new AndroidRootChecker();
bool rooted = checker.IsDeviceRooted();
bool devOptionsEnabled = checker.IsDeveloperOptionsEnabled();
bool canWriteSystem = checker.CanWriteToSystemPartition();
bool magiskActive = checker.IsMagiskActive();
bool bootloaderUnlocked = checker.IsBootloaderUnlocked();
bool suAvailable = checker.IsSuCommandAvailable();
Notes
- Root detection is heuristic-based; use it as part of a layered security strategy.
- Behavior can vary by OEM, Android version, and custom ROM implementations.
License
MIT (see LICENSE).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-android36.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 84 | 2/20/2026 |