OAID SDK for Flutter - MSA functionality for Chinese Android devices.
This is an enhanced version of the original flutter_msa_sdk with improved architecture using platform interface.
- Get OAID (Open Advertising ID) from Chinese Android devices
- Check if device supports OAID functionality
- Cross-platform support (Android only, iOS returns empty values)
Add this to your package's pubspec.yaml file:
dependencies:
flutter_msa_sdk_plus: ^4.1.0+2Import the package in your Dart code:
import 'package:flutter_msa_sdk_plus/flutter_msa_sdk_plus.dart';// Determine whether the device supports getting OAID
bool isSupport = await FlutterMsaSdkPlus().isSupport();
// Get OAID from device
String oaid = await FlutterMsaSdkPlus().getOAID();- Full OAID functionality with support for major Chinese device manufacturers
- Includes dependencies for: ASUS, BUN, Heytap, Samsung, Huawei, ZUI, and generic implementation
- Returns
falseforisSupport() - Returns empty string for
getOAID() - iOS devices do not have OAID equivalent
This plugin uses the following Android dependencies:
com.gitee.li_yu_jiang:Android_CN_OAID:4.1.0
| Manufacturer or Brand | System or Framework |
|---|---|
| Huawei | HMS Core 2.6.2+, Google Play Service 4.0+ |
| Honor | Magic UI 4/5/6, MagicOS 7.0+, Google Play Service 4.0+ |
| XiaoMi, Redmi, BlackShark | MIUI 10.2+, Google Play Service 4.0+ |
| VIVO, IQOO | Funtouch OS 9+, OriginOS 1.0+, Google Play Service 4.0+ |
| OPPO, Realme | ColorOS 7.0+, Google Play Service 4.0+ |
| Samsung | Android 10+, Google Play Service 4.0+ |
| Lenovo | ZUI 11.4+, Google Play Service 4.0+ |
| Asus | Android 10+, Google Play Service 4.0+ |
| Meizu | Android 10+, Google Play Service 4.0+ |
| OnePlus | Android 10+, Google Play Service 4.0+ |
| Nubia | Android 10+, Google Play Service 4.0+ |
| Coolpad | CoolOS, Google Play Service 4.0+ |
| Coosea | Android 10+, Google Play Service 4.0+ |
| Droi | Freeme OS, Google Play Service 4.0+ |
| Other (ZTE, HTC, Motorola, ...) | SSUI, Google Play Service 4.0+ |
The MIT License.