パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.7

flutter_cell_info

Telephony SDK 上に構築された軽量ライブラリです。NetMonster コアは NetMonster アプリケーションから抽出され、いくつかのテレフォニー機能が古い Android デバイスにバックポートされています。

AndroidiOS
30日間ダウンロード
162
いいね数
4
Pub ポイント
160

パッケージをインストール

flutter pub add flutter_cell_info

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

AndroidおよびiOSデバイス上でセルラーネットワーク情報を提供する軽量なFlutterパッケージです。NetMonsterのコアに基づいて構築されており、主要なテレフォニー機能を抽出し、古いAndroidバージョンにバックポートすることで、開発者が信号強度、キャリア情報、ネットワークタイプなどの詳細なセルタワー情報を取得できるようにしています。このパッケージは、低レベルのネットワーク診断や接続モニタリングが必要なアプリに最適です。

用途

  • ネットワーク診断
  • 信号強度のモニタリング
  • キャリア情報の取得
  • モバイルアプリ分析
  • デバイス接続の追跡

主な機能

  • 携帯ネットワークの詳細にアクセス
  • 古い Android デバイスのサポート
  • クロスプラットフォーム(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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。