-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Model name instead of marketing name for some devices #23
Comments
Which Oppo device? Are you using DeviceName.getDeviceName() or DeviceName.with(context).request(new DeviceName.Callback() {
@Override public void onFinished(DeviceName.DeviceInfo info, Exception error) {
....
}
}); |
You can create a PR for this. I am hesitant to do so because I don't know OPPO devices. This is happening because Google doesn't have the correct name matched in their master list. You would need to add the name to private fun getPreferredDeviceName(deviceName: String): String {
return when (deviceName) {
"OnePlus3" -> "OnePlus 3"
...
"CPH1723" -> "Oppo F5"
// Add more devices with incorrect name here
else -> deviceName
}
} |
Oppo and Vivo are very popular Android Phones in China. They are top 5 phones in China and probably top 10 globally. No need to mention Huawei, which is the top 1 now. Is there a plan to update the list? It seems most of these phones can't be properly recognized even it is listed in the Google's supported device. |
I'm having trouble fetching market names of the phones getting model name instead of marketing name
When I view the raw JSON it shows that the market_name and model name are same for some device like Oppo.
Please confirm why oppo devices are considered as unrecognized devices in this list.
The text was updated successfully, but these errors were encountered: