Skip to content

About

Convert code names into real names using rikas/iosdevices and vinuthomas/android-devices

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

RubyGem mobile_devices

Convert code names into real names using @rikas/iosdevices and data from Google's supported devices list.

require 'mobile_devices'

puts MobileDevices.get_name('iPhone6,2')
# "iPhone 5s"

puts MobileDevices.get_name('zerofltespr')
# "Samsung Galaxy S6"

Android data

Android names come from data/android-devices-min.json, generated from Google Play's supported devices CSV (last refreshed October 2026). Each row is [retail branding, marketing name, device codename, model]; lookups are by device codename (Build.PRODUCT). When multiple devices share a codename, the last row in the file wins.

Tests

bundle exec ruby test/test_mobile_devices.rb

Requirements

Ruby >= 3.1, as of version 0.4.0.

Version 0.4.0 tracks ios-devices 0.4.0, which requires Ruby 3.1 or newer. On Ruby 2.7 or 3.0, use mobile_devices 0.3.0.

About

Convert code names into real names using rikas/iosdevices and vinuthomas/android-devices

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages