Android device identifier library

Some years ago I wrote a handy library Get iOS Model that I open-sourced on Github and through the years I’ve been asked if I would ever create an Xamarin.Android version. Finally got around to it and made it available this week.

The package consists of 18,554 Android devices that support Google Play which I will update regularly.

Using the package is pretty simple:

  1. Install the nuget package dannycabrera.GetDroidModel
  2. Make a call to:
GetDroidModel.DeviceHardware.Model();

Example: Device model “SM-G960F” will return as “Galaxy S9”.

If you prefer having the manufacturer’s name returned call:

GetDroidModel.DeviceHardware.Model(defaultValue: “Unknown”, includeManufacturer: true);

Example: Device model “SM-G960F” will return as “Samsung Galaxy S9”.

Hope this is a useful library/plugin for all.

Written by

Principal Software Engineer at Command Health https://github.com/dannycabrera

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store