Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Incorrect model being picked up for "Listening on".

Incorrect model being picked up for "Listening on".

Plan

Premium

 

Country

United States

 

Device

ZenFone 8

 

Operating System

Android 12

 

My Question or Issue

Model is being incorrectly detected on select Android devices, after a quick look it seems Spotify is pulling the device's model from https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/Build.java

 

public static final String MODEL = getString("ro.product.model");

 

The problem with this approach is that often times OEMs don't put the actual marketing name in 'ro.product.model'. For example, on the ZenFone 8 ro.product.model is 'ASUS_I006D'. This is obviously terrible from a UX standpoint. Because cases like this exist I would advise pulling from SettingsProvider overlays;

 

<!-- Default for Settings.Global.DEVICE_NAME $1=MANUFACTURER $2=MODEL-->
<string name="def_device_name">ASUS ZenFone 8</string>

 

<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple">ZenFone 8</string>

 

Implementation would be greatly appreciated, has been bugging me for years.

Reply
0 Replies

Suggested posts