FLUTTER ECOSYSTEM

Dev-hwang/flutter_security_checker

이 플러그인은 안드로이드 및 iOS 플랫폼에서 루팅 여부와 무결성을 확인할 수 있는 기능을 제공합니다.

flutter_security_checker 프로젝트 이미지
Stars
11
Forks
6
최근 푸시(UTC)
2025. 1. 9.
프로젝트 상태
활성
Dev-hwang GitHub avatar
GITHUB User

Dev-hwang ↗

Android & Flutter developer

-Republic of Korea
언어Objective-CKotlinDartRuby

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

This plugin provides the ability to verify rooting and integrity on Android and iOS platforms.

pub package

Features

  • Can check whether the device is rooted or jailBroken.
  • Can check whether the device on which the app is installed is a physical device.
  • Can check that the app is installed through the correct content service (such as Google Play or Apple Store).

Support version

  • Flutter: 3.3.0+
  • Dart: 2.18.0+
  • Android: 5.0+ (minSdkVersion: 21)
  • iOS: 12.0+

Getting started

To use this plugin, add flutter_security_checker as a dependency in your pubspec.yaml file. For example:

dependencies:
  flutter_security_checker: ^3.2.1

How to use

import 'package:flutter_security_checker/flutter_security_checker.dart';

void _onCheckButtonPressed() async {
  // Check whether the device is rooted or jailBroken.
  // In Android Emulator or iOS Simulator it always returns true.
  final bool isRooted = await FlutterSecurityChecker.isRooted;
  
  // Check whether the device on which the app is installed is a physical device.
  final bool isRealDevice = await FlutterSecurityChecker.isRealDevice;
  
  // Check that the app is installed through the correct content service (such as Google Play or Apple Store).
  // It is not an app installed through content service or always returns false in debugging mode.
  final bool hasCorrectlyInstalled = await FlutterSecurityChecker.hasCorrectlyInstalled;
}

NOTE: The isRooted and hasCorrectlyInstalled functions may not work properly in the development environment. In development environment, it is recommended to turn off notifications using the kReleaseMode of the flutter/foundation.dart package appropriately.

Support

If you find any bugs or issues while using the plugin, please register an issues on GitHub. You can also contact us at <hwj930513@naver.com>.