루트 감지
여러 방법을 사용한 고급 Android 루트 감지 🔒
Capacitor Is Root 플러그인은 Android 장치에 대한 포괄적인 루트 및 탈옥 감지와 에뮬레이터 감지를 제공합니다. 이 플러그인은 손상된 장치와 보안 위험을 초래할 수 있는 에뮬레이트된 환경을 식별하여 앱 보안을 강화하는 데 도움이 됩니다.
루트 감지
여러 방법을 사용한 고급 Android 루트 감지 🔒
에뮬레이터 감지
에뮬레이트된 환경 및 테스트 프레임워크 식별 🛡️
보안 검증
향상된 정확도를 위한 여러 감지 기술 ✅
Android 중심
Android 보안 평가를 위한 전문 감지 🤖
npm install @capgo/capacitor-is-rootnpx cap syncisRooted() - 기본 방법을 사용하여 포괄적인 루트 감지 수행isRootedWithBusyBox() - BusyBox 검사를 포함한 확장 감지detectRootManagementApps() - 설치된 루트 관리 애플리케이션 식별checkForSuBinary() - 시스템 경로에서 su 바이너리 존재 확인isRunningOnEmulator() - 일반적인 Android 에뮬레이터 지문 감지플러그인은 여러 감지 방법을 사용합니다:
import { IsRoot } from '@capgo/capacitor-is-root';
// 기본 루트 감지const rootResult = await IsRoot.isRooted();if (rootResult.isRooted) { console.log('장치가 루팅되었습니다'); // 루팅된 장치를 적절하게 처리}
// BusyBox를 사용한 확장 루트 감지const extendedResult = await IsRoot.isRootedWithBusyBox();if (extendedResult.isRooted) { console.log('장치가 루팅되었습니다 (확장 검사)');}
// 에뮬레이터 확인const emulatorResult = await IsRoot.isRunningOnEmulator();if (emulatorResult.isEmulator) { console.log('에뮬레이터에서 실행 중');}
// 루트 관리 앱 감지const rootAppsResult = await IsRoot.detectRootManagementApps();if (rootAppsResult.hasRootApps) { console.log('루트 관리 앱이 감지되었습니다');}자세한 구현 가이드 및 고급 보안 패턴은 전체 문서를 확인하세요.