Skip to content

Library doesn't return the market_name, gives model name only #68

@PrasanthJayaraman

Description

@PrasanthJayaraman

I gone through the library and trying to use it on my app.

I need the market_name of the device but i always get the model name.

DeviceName.init(this);
DeviceName.DeviceInfo deviceData = DeviceName.getDeviceInfo(this);
Log.d(TAG, "deviceData "+deviceData.marketName + " " + deviceData.marketName);

 LOG - > deviceData garnet garnet

Also tried the callback

DeviceName.with(this).request(new DeviceName.Callback() {
            @Override public void onFinished(DeviceName.DeviceInfo info, Exception error) {
                String manufacturer = info.manufacturer;  // "Samsung"
                String name = info.marketName;            // "Galaxy S8+"
                String model = info.model;                // "SM-G955W"
                String codename = info.codename;          // "dream2qltecan"
                String deviceName = info.getName();       // "Galaxy S8+"
                Log.d(TAG, "deviceData callback "+manufacturer + " " + name+" "+model + " " + codename);
            }
        });

Log ->  deviceData callback Xiaomi garnet 2312DRA50I garnet

The model name expected is Note 13 Pro 5G as per the google list "Redmi | Redmi Note 13 Pro 5G | garnet | 2312DRA50I"
https://storage.googleapis.com/play_public/supported_devices.html

Please check the issue..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions