Skip to content

Latest commit

 

History

History
89 lines (62 loc) · 3.14 KB

README.md

File metadata and controls

89 lines (62 loc) · 3.14 KB


Device Security Detect Plugin

@capacitor-community/device-security-detect

The Device Security Detect plugin is designed to provide comprehensive device security detection capabilities for Capacitor-based applications. It aims to detect the device has been rooted (Android) or jailbroken (iOS). By using this plugin, developers can enhance the security of their applications and take appropriate actions based on the detected security status.


Table of Contents

Maintainers

Maintainer GitHub Active
4ooper 4ooper yes
ryaa ryaa yes

Plugin versions

Capacitor version Plugin version
6.x 6.x

Supported Platforms

  • iOS
  • Android

Installation

npm install @capacitor-community/device-security-detect
npx cap sync

API

isJailBreakOrRooted()

isJailBreakOrRooted() => Promise<{ value: boolean; }>

Detect if the device has been rooted (Android) or jailbroken (iOS)

Returns: Promise<{ value: boolean; }>

Since: 6.0.0


Usage

Detect if the device has been rooted (Android) or jailbroken (iOS)

import { DeviceSecurityDetect } from '@capacitor-community/device-security-detect';

const { value } = await DeviceSecurityDetect.isJailBreakOrRooted();