capgo/capacitor-is-root을 사용하여 @capgo
Capacitor은 루팅된 (안드로이드) 또는 제재된 (iOS) 장치를 감지하는 Is Root 플러그인입니다.
설치
bun add @capgo/capacitor-is-root
bunx cap sync
bunx cap sync 플러그인의 네이티브 code을 프로젝트에 복사합니다. 플러그인 업그레이드 후 다시 실행하세요.
Import
import { IsRoot } from '@capgo/capacitor-is-root';
API 한눈에
| 메서드 | 설명 |
|---|---|
isRooted |
기본 루트/자이글 브레이크 검사 체크를 수행합니다. |
isRootedWithBusyBox |
BusyBox 관련 특정 체크를 확장합니다 (Android만). |
detectRootManagementApps |
Android에서 알려진 루트 관리 애플리케이션의 존재 여부를 감지합니다. |
detectPotentiallyDangerousApps |
루트 디바이스에서 흔히 발견되는 잠재적으로 위험한 애플리케이션을 감지합니다. |
detectTestKeys |
Android에서 디버그/테스트 빌드 태그를 감지합니다. |
checkForBusyBoxBinary |
Android에서 BusyBox 바이너리가 디바이스에 존재하는지 확인합니다. |
checkForSuBinary |
디바이스에 su 바이너리가 존재하는지 확인합니다 (Android만). |
checkSuExists |
디바이스에서 su 바이너리가 실행 가능한지 감지합니다 (Android만). |
checkForRWPaths |
Android에서 시스템 경로가 세계적으로 읽기/쓰기가 가능한지 감지합니다. |
checkForDangerousProps |
안드로이드 전용으로 시스템 속성을 감지합니다. |
checkForRootNative |
안드로이드 전용으로 RootBeer 네이티브 체크를 실행합니다. |
detectRootCloakingApps |
안드로이드 전용으로 루트를 숨길 수 있는 애플리케이션을 감지합니다. |
isSelinuxFlagInEnabled |
안드로이드 전용으로 SELinux 강제 시행 상태를 확인합니다. |
isExistBuildTags |
안드로이드 전용으로 OS 이미지를 감지합니다. |
doesSuperuserApkExist |
안드로이드 전용으로 슈퍼유저 APK가 설치되어 있는지 감지합니다. |
isExistSUPath |
알려진 su 안드로이드 전용으로 바이너리 위치를 확인합니다. |
checkDirPermissions |
안드로이드 전용으로 보호해야 하는 쓰기 가능한 디렉토리를 감지합니다. |
checkExecutingCommands |
Executes which su 안드로이드 전용으로 수상한 설치된 패키지를 감지합니다. |
checkInstalledPackages |
안드로이드 전용으로 알려진 |
checkforOverTheAirCertificates |
Android에서 OTA 인증서를 조작한 것을 감지합니다. |
isRunningOnEmulator |
Android에서 일반 에뮬레이터 지문( fingerprint )을 감지합니다. |
simpleCheckEmulator |
Android에서 가벼운 에뮬레이터 체크를 수행합니다. |
simpleCheckSDKBF86 |
Android에서 x86 에뮬레이터 지문( fingerprint )을 감지합니다. |
simpleCheckQRREFPH |
Android에서 QC 참조 전화 빌드( build )를 감지합니다. |
simpleCheckBuild |
Android에서 빌드 호스트 이상태를 감지합니다. |
checkGenymotion |
Android에서 Genymotion 에뮬레이터 지문( fingerprint )을 감지합니다. |
checkGeneric |
Android에서 일반 에뮬레이터 지문( fingerprint )을 감지합니다. |
checkGoogleSDK |
Android에서 Google SDK 에뮬레이터 지문( fingerprint )을 감지합니다. |
togetDeviceInfo |
장치 정보를 감지 중인 동안 수집한 정보를 반환합니다. |
isRootedWithEmulator |
Android에서 에뮬레이터 지문( fingerprint )을 사용한 기본 감지를 확장합니다. |
isRootedWithBusyBoxWithEmulator |
Android에서 BusyBox 감지를 에뮬레이터 지문( fingerprint )을 사용한 감성으로 확장합니다. |
예시
isRooted()
기본 루트/자이클럽 감지 검사를 수행합니다.
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()
BusyBox에 특정한 검사를 확장합니다 (안드로이드만).
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.isRootedWithBusyBox();
console.log(result);
detectRootManagementApps()
루트 관리 앱이 설치되어 있는지 감지합니다 (안드로이드만).
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.detectRootManagementApps();
console.log(result);
detectPotentiallyDangerousApps()
루트된 기기에서 흔히 발견되는 위험한 앱을 감지합니다 (안드로이드만).
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.detectPotentiallyDangerousApps();
console.log(result);
detectTestKeys()
디버그/테스트 빌드 태그를 감지합니다 (안드로이드만).
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.detectTestKeys();
console.log(result);
checkForBusyBoxBinary()
BusyBox 바이너리가 기기에 존재하는지 확인합니다 (안드로이드만).
import { IsRoot } from '@capgo/capacitor-is-root';
const result = await IsRoot.checkForBusyBoxBinary();
console.log(result);
위 표에는 31개의 핵심 메서드가 나열되어 있습니다. 리스너 및 버전 헬퍼, 각 메서드의 전체 계약은 __CAPGO_KEEP_0__ 저장소에서 문서화되어 있습니다. GitHub 저장소.
문서
@capgo/capacitor-is-root 계속 사용하세요
__CAPGO_KEEP_0__ 사용 중 @capgo/capacitor-is-root __CAPGO_KEEP_0__과 연결 @capgo/capacitor-is-root @capgo/capacitor-is-루트 __CAPGO_KEEP_0__ 플러그인 __CAPGO_KEEP_0__ 플러그인 Capgo 플러그인 Capgo 플러그인 Capacitor Capgo의 플러그인 Capacitor 플러그인에 대한 구현 세부 사항은 Capgo에 의해 제공됩니다. 플러그인 추가 또는 업데이트 Capacitor-is-root 플러그인 추가 또는 업데이트