A Dart script which fetches Android and iOS device information. Generates directly usable code, which maps the device model to the corresponding device name(s).
- Dart / Flutter: https://github.com/Boehrsi/device_identifiers/blob/main/output/device_identifiers.dart
- Kotlin: https://github.com/Boehrsi/device_identifiers/blob/main/output/DeviceIdentifiers.kt
- Required changes: Adjust the
package
to match your project
- Required changes: Adjust the
- Android: Use the
lookupAndroidName()
method with the key obtained viaBuild.MODEL
(https://developer.android.com/reference/android/os/Build#MODEL) - iOS: Use the
lookupIosName()
method with the key obtained viautsname.machine
- iOS: https://github.com/clo4/apple_device_identifiers
- Android: https://storage.googleapis.com/play_public/supported_devices.html (via https://support.google.com/googleplay/answer/1727131?hl=en)
- https://github.com/Boehrsi/DeviceMarketingNames (Android library)
- https://github.com/Boehrsi/device_marketing_names (Flutter library)