Unable to retrive Build.MANUFACTURER on device HTC6435LVW Droid DNA Deluxe

前端 未结 2 539
北海茫月
北海茫月 2021-01-22 13:00

This looks like a very basic question.

I am unable to retrieve a few basic information like Build.MANUFACTURER, Build.MODEL, and Build.V

相关标签:
2条回答
  • 2021-01-22 13:40

    These are obtained by the system from the file /system/build.prop. If it's coming up as "unknown" in your code, it's because it's either not set, or it's set explicitly to "unknown".

    There's not much you can really do about this, though. It's set by the manufacturer, and if they failed to do it, then it won't be set. If you're rooted, you can edit the file yourself, but that doesn't help if you're talking about other users.

    0 讨论(0)
  • 2021-01-22 13:46

    this is returning "unknown" from user space; if we place the same app in system space its returning proper values.

    I tried by invoking methods/fields with reflectionfrom android.os.Build.java / SystemProperties.java files still no use...

    Not sure why HTC wants to hide such info..

    0 讨论(0)
提交回复
热议问题