添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am just wondering for a unique device identifier in android. and had a look at this adb command.

adb shell getprop ro.expect.recovery_id

Is it a unique identifier for a device? if its not, then what's its purpose? I was just googling around but coudln't found anything related to this identifier.

will return the ID of a boot image.

eg: [ro.expect.recovery_id]: [0xe0d5700a6d7672e44a8e9b341f0a22b8f781e73d00000000 0000000000000000]

You can see usage here and here

Update:

recovery.id is removed from aosp/887473 onwards. Refer here for the details. But I'm not sure that this change is updated in source branch. You can find the author and commit message in the above link.

From the commit message:

Since aosp/887473 removed ro.expect.recovery_id, There is no usage of "RECOVERYIMAGE_ID_FILE" which points $(PRODUCT_OUT)/recovery.id.

Ah okay. Thanks for your answer. if it is boot image, then it must not be unique. can u suggest me any unique hardware identifier other than Android_id? – Bilal Dec 31, 2019 at 12:57 Although relying on hardware id is not recommended but still you can follow these links to get an idea. Stackoverflow thread and android developer documentation – Sudheesh R Dec 31, 2019 at 15:37 yeah just had a look on them, and came on a conclusion, that after Android O Android_ID is best candidate. – Bilal Jan 1, 2020 at 7:14

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.