android - 如何获取 android 设备的制造国家?

标签 android

根据我在电信行业的一点经验,我了解到当手机在某个国家工作时,它必须遵守该国政府规定的规定。因此,为了遵守法规,原始设备制造商可以根据其法规为特定国家或一组国家制造设备。如果该设备是为特定国家/地区制造的,是否有任何标准的获取方式?

阅读 ro.product.locale 或 persist.sys.locale 没有帮助,因为它们为我们提供了语言环境值。他们可能不会提供有关设备制造国家/地区的信息。

示例:我使用的是一部在印度购买的安卓手机。当我阅读 ro.product.locale 或 persist.sys.locale 时,它​​给出了 en-US。但我需要得到印度。

是否有任何标准方法可以查询设备的制造国家/地区。

最佳答案

可以提取IMEI号,利用第7、8位数字判断国家。

这是一个显示如何提取 IMEI 号码的链接

How to get the device's IMEI/ESN programmatically in android?

来源:http://www.samsungsfour.com/tutorials/find-out-galaxy-smartphone-country-of-origin-from-imei-code.html

关于android - 如何获取 android 设备的制造国家?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51823035/

相关文章:

android - 与 Android 4.4.4 相比,通用图像加载器库在 Android 5.0 上运行缓慢

android - 如何在 Android 日期选择器中禁用 future 日期

android - 升级Gradle版本后没有规则可导致目标错误

android - 在 android 5 (api 21) 上设置 ImageView colorFilter

android - 如何使用带有 Kotlin 的 Room 和 moshi 在其中保存带有 JSON 数组的 JSON 对象

java - Android Material 设计错误

android - 谷歌地图插件在显示时会导致 Flutter 应用程序崩溃

安卓微调器 : how to match parent and append the dropdown to the bottom

java - Android ,无法解析 ImageDecoder

TargetSdkVersion 上的 Android Studio "Error retrieving parent, No resource found that match the given name"更新至 23