패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.7

flutter_cell_info

Telephony SDK 위에 구축된 가벼운 라이브러리입니다. NetMonster 코어는 NetMonster 애플리케이션에서 추출되었으며, 여러 텔레포니 기능이 오래된 Android 디바이스로 백포트되었습니다.

AndroidiOS
30일 다운로드
162
좋아요
4
Pub 점수
160

패키지 설치

flutter pub add flutter_cell_info

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

안드로이드 및 iOS 기기에서 셀룰러 네트워크 정보를 제공하는 가벼운 플러터 패키지입니다. NetMonster의 핵심 기반으로 구축되어 주요 전화 기능을 추출하고 오래된 안드로이드 버전으로 백포트하여 개발자가 신호 강도, 통신사 정보, 네트워크 유형과 같은 세부 셀 타워 데이터에 액세스할 수 있도록 합니다. 이 패키지는 저수준 네트워크 진단 또는 연결 모니터링이 필요한 앱에 적합합니다.

사용 사례

  • 네트워크 진단
  • 신호 세기 모니터링
  • 운반체 정보 검색
  • 모바일 앱 분석
  • 기기 연결 추적

주요 기능

  • 모바일 네트워크 세부 정보에 액세스
  • 오래된 Android 장치 지원
  • 크로스 플랫폼(안드로이드 및 iOS)
  • 경량이고 효율적
  • 백포트된 전화 기능

적합한 대상

  • 네트워크 모니터링 도구를 개발하는 개발자
  • 실시간 셀 정보가 필요한 앱
  • 분석 플랫폼이 장치 연결을 추적하고 있습니다
  • 구식 Android 지원 프로젝트

고려 사항

  • Android에서 적절한 권한이 필요합니다
  • 전화 데이터만 가능
  • iOS는 일부 세부 정보에 대한 액세스를 제한할 수 있습니다
  • 하위 플랫폼 기능에 의존

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

flutter_cell_info

Cell Info Plugin

NetMonster Core

🚧 Work in progress! 🚧

Lightweight Android library that is build over Telephony SDK. NetMonster core is extracted from NetMonster application and backports several Telephony features to older Android devices.

Why use NetMonster Core instead of legacy API?

  • Validation - library validates data from RIL and corrects them if possible
  • Richer information - additional functions for cell identity and cell signal that will make your code more understandable
  • Backport - several non-accessible signal or identity fields are now accessible without boilerplate code
  • Tested - tested on real devices, 50 000+ active users
New functions

Here's small comparison for each of voice / data network you can meet.

GSM
function Min SDK Android Min SDK NetMonster Core
CGI - I (14)
NCC - N (24)
BCC - N (24)
Band - N (24)
TA O (26) N (24)
WCDMA
function Min SDK Android Min SDK NetMonster Core
CGI - I (14)
CID (16b) - I (14)
RNC - I (14)
Ec/Io - M (23)
Band - N (24)
BER - Q (29)
Ec/No - Q (29)
RSCP - Q (29)
LTE
function Min SDK Android Min SDK NetMonster Core
eCGI - I (14)
CID (8b) - I (14)
eNb - I (14)
RSSI Q (29) I (14)
RSRP O (26) I (14)
CQI O (26) I (14)
SNR O (26) I (14)
TA O (26) I (14)
Band - N (24)
Usage

There are basically two ways you can use this library - as a validation library that will sanitize data from AOSP cause lots of manufacturers modify source code and do not follow public documentation. In that case you'll only need ITelephonyManagerCompat to retrieve AOSP-like models that are properly validated.

The second option is to use advantages of additional postprocessing of NetMonster Core. As a result you'll get more data but correctness is not 100 % guaranteed.

Without additional postprocessing

NetMonster Core focuses on mapping of two AOSP's ways to fetch current cell information:

Note that some of those methods are deprecated or even removed from AOSP - for more info see documentation of each method.

Postprocessing

In this case you'll need to interact with INetMonster class. Here's list of problems that this library solves.

Merging data from multiple sources

Issue:

  • Android offers multiple ways how to get cell information.
  • Not all devices support one unified way how to access all the data.

Solution:

  • NetMonster Core grabs data from sources you specify, validates and merges them.
Detection of LTE-A & HSPA+42

Issue:

  • AOSP cannot detect HSPA+42, only HSPA+.
  • AOSP does not offer a way to distinguish whether current network is using carrier aggregation or not.

Solution:

  • NetMonster Core attempts to guess HSPA+ 42 availability.
  • LTE-CA presence can be guessed based on cell info or detected using hidden APIs.

Using getNetworkType(vararg detectors: INetworkDetector) you can specify which INetworkDetector to use when detecting current network type.

Other features
  • Detection of serving cells in 'emergency calls only' mode.
  • PLMN addition to non-serving cells in GSM, WCDMA, LTE, TD-SCDMA and NR networks.

Platform support

Feature Android iOS
Carrier / SIM info (name, MCC, MNC) ✅ ✅¹
Current radio technology (LTE/NR/…) ✅ ✅
Cell identity (CID, TAC, PCI, eNb …) ✅ ❌²
Signal strength (dBm, RSRP, RSRQ …) ✅ ❌²
Neighbouring cells ✅ ❌²

¹ Apple deprecated CTCarrier in iOS 16; on iOS 16+ it returns placeholder values (--, 65535).

² iOS exposes no public API for cell-tower identity, signal strength or neighbouring cells. On iOS, getCellInfo therefore returns the current radio access technology per SIM in primaryCellList with identity/signal fields left null, and neighboringCellList is always empty.

The Dart API (CellInfo.getCellInfo, CellInfo.getSIMInfo, CellInfo.sharedPreference) and JSON response shape are identical across both platforms.

Originally forked from cell_info

Credit to - eslamfaisal

카테고리

의존성

의존성 목록 1 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.