ページエリア: Capgo マーケティング ウェブサイト。役割: ウェブサイト コピー文。見つける: コンポーネント Hero.astro。
このプラグインのインストール手順とマークダウンガイドを含むセットアップ用のコピー用テキストをコピーします。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-is-root`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/is-root/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
Install
Ready to pasteCapgoを使用して、AI-Assistedセットアップを利用してプラグインをインストールできます。次のコマンドを使用して、CapgoスキルをAIツールに追加してください。
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次に、以下のプロンプトを使用してください。
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-is-root` plugin in my project.Manual Setupを使用する場合は、以下のコマンドを実行してください。次に、下記のプラットフォーム固有の手順に従ってください。
bun add @capgo/capacitor-is-rootbunx cap syncインポート
「インポート」のセクションimport { IsRoot } from '@capgo/capacitor-is-root';APIの概要
「APIの概要」のセクションisRooted
「isRooted」のセクションルート/脱獄検出のデフォルトチェックを実行します。
基本的なroot/jailbreak検出の推奨方法です。 両方のAndroidとiOSに対応しています。
import { IsRoot } from '@capgo/capacitor-is-root';
const { result } = await IsRoot.isRooted();if (result) { console.log('Device is rooted/jailbroken');} else { console.log('Device is not rooted/jailbroken');}isRootedWithBusyBox
「isRootedWithBusyBox」BusyBoxを使用したAndroid専用の検出を拡張します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isRootedWithBusyBox();console.log(result);detectRootManagementApps
「detectRootManagementApps」Android専用のroot管理アプリを検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.detectRootManagementApps();console.log(result);detectPotentiallyDangerousApps
「detectPotentiallyDangerousApps」rootデバイスでよく見られる危険なアプリを検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.detectPotentiallyDangerousApps();console.log(result);detectTestKeys
detectTestKeysAndroidのみでデバッグ/テストビルドのタグを検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.detectTestKeys();console.log(result);checkForBusyBoxBinary
「checkForBusyBoxBinary」Androidのみでデバイス上のBusyBoxバイナリが存在するかどうかを確認します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkForBusyBoxBinary();console.log(result);checkForSuBinary
「root権限のチェック」Androidのみでバイナリが存在するかどうかを確認します。 su Section titled “checkSuExists”
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkForSuBinary();console.log(result);checkSuExists
Androidのみでスーパーウーザーが存在するかどうかを検出します。Section titled “checkForBusyBoxBinary” su バイナリが実行可能 (Android 限定)
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkSuExists();console.log(result);checkForRWPaths
「checkForRWPaths」セクション世界にアクセス可能なシステムパスを検出 (Android 限定)
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkForRWPaths();console.log(result);checkForDangerousProps
「checkForDangerousProps」セクションシステムプロパティを検出 (Android 限定)
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkForDangerousProps();console.log(result);checkForRootNative
「checkForRootNative」セクションRootBeerのネイティブチェックを実行 (Android 限定)
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkForRootNative();console.log(result);detectRootCloakingApps
「detectRootCloakingApps」セクションAndroid専用。rootを隠すことができるアプリケーションを検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.detectRootCloakingApps();console.log(result);isSelinuxFlagInEnabled
セクション「isSelinuxFlagInEnabled」Android専用。SELinuxの強制実行状態を確認します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isSelinuxFlagInEnabled();console.log(result);isExistBuildTags
セクション「isExistBuildTags」Android専用。OSイメージにテストビルドタグが存在するか検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isExistBuildTags();console.log(result);doesSuperuserApkExist
セクション「doesSuperuserApkExist」Android専用。スーパーユーザーAPKがインストールされているか検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.doesSuperuserApkExist();console.log(result);isExistSUPath
セクション「isExistSUPath」Android での有名な su Android でのバイナリの場所を確認します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isExistSUPath();console.log(result);checkDirPermissions
「checkDirPermissions」セクションAndroid での書き込み可能なディレクトリを検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkDirPermissions();console.log(result);checkExecutingCommands
「checkExecutingCommands」セクションExecutes which su 「checkInstalledPackages」セクション
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkExecutingCommands();console.log(result);checkInstalledPackages
Android での不審なインストールされたパッケージを検出します。Android での
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkInstalledPackages();console.log(result);checkforOverTheAirCertificates
「OTA証明書の検出」セクションAndroid専用。OTA証明書の改ざんを検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkforOverTheAirCertificates();console.log(result);isRunningOnEmulator
「エミュレータの検出」セクションAndroid専用。一般的なエミュレータの指紋を検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isRunningOnEmulator();console.log(result);simpleCheckEmulator
「軽量エミュレータ検出」セクションAndroid専用。軽量エミュレータ検査を実行します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.simpleCheckEmulator();console.log(result);simpleCheckSDKBF86
「x86エミュレータ検出」セクションAndroid専用。x86エミュレータの指紋を検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.simpleCheckSDKBF86();console.log(result);simpleCheckQRREFPH
「simpleCheckQRREFPH」セクションAndroid専用のQC参照電話ビルドを検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.simpleCheckQRREFPH();console.log(result);simpleCheckBuild
「simpleCheckBuild」セクションAndroid専用のビルドホスト異常を検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.simpleCheckBuild();console.log(result);checkGenymotion
「checkGenymotion」セクションAndroid専用のGenymotionエミュレータの指紋を検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkGenymotion();console.log(result);checkGeneric
「checkGeneric」セクションAndroid専用の汎用エミュレータの指紋を検出します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkGeneric();console.log(result);checkGoogleSDK
「checkGoogleSDK」セクションGoogle SDK エミュレータの指紋を検出します (Android 限定)。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkGoogleSDK();console.log(result);togetDeviceInfo
「togetDeviceInfo」セクション検出中に収集されたデバイス情報を返します。
デバイスの詳細情報とメタデータを提供します。これは、root 検出プロセス中に収集されたものです。デバッグやログの目的で役立ちます。
import { IsRoot } from '@capgo/capacitor-is-root';
const deviceInfo = await IsRoot.togetDeviceInfo();console.log('Device info:', deviceInfo);isRootedWithEmulator
「isRootedWithEmulator」セクションデフォルトの検出を拡張してエミュレータのヒューリスティクスを使用します (Android 限定)。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isRootedWithEmulator();console.log(result);isRootedWithBusyBoxWithEmulator
「isRootedWithBusyBoxWithEmulator」セクションエミュレータの推測アルゴリズム (Android 限定) を使用して BusyBox の検出を拡張します。
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isRootedWithBusyBoxWithEmulator();console.log(result);型参照
型参照DetectionResult
検出結果root/jailbreak 検出メソッドから返される結果。
export interface DetectionResult { /** * `true` when the associated heuristic detects root/jailbreak artifacts. * `false` when no root/jailbreak indicators are found. * * @since 1.0.0 */ result: boolean;}DeviceInfo
デバイス情報検出中に収集されたデバイス情報。
export interface DeviceInfo { /** * Arbitrary key/value device metadata populated by the native implementation. * Contents vary by platform and detection methods used. * * @since 1.0.0 */ [key: string]: any;}真実の源
真実の源このページはプラグインから生成されます。 src/definitions.ts.再度Syncを実行してください。 公開APIがアップストリームで変更されたとき。
Getting Startedから続けてください。
セクションのタイトルは「Getting Startedから続けてください。」あなたが使用している場合 はじめに ダッシュボードとAPIの作業を計画するために使用している場合、 Using @capgo/capacitor-is-root Using @capgo/capacitor-is-root Using @API/__CAPGO_KEEP_1__-is-root APIの実装詳細についての概要です。 Introduction 導入の実装詳細については API キー 実装詳細については API キー、 デバイス 導入の実装詳細についてはデバイス。