Skip to content
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

android deviceid 可以不使用IMEI号吗? #21

Closed
xiaoshanlin000 opened this issue Dec 5, 2020 · 3 comments
Closed

android deviceid 可以不使用IMEI号吗? #21

xiaoshanlin000 opened this issue Dec 5, 2020 · 3 comments

Comments

@xiaoshanlin000
Copy link

可以使用 MediaDrm 提供的这个id, 除了部分手机恢复出厂设置, 这个id都不变的.
UUID wideVineUuid = new UUID(-0x121074568629b532L, -0x5c37d8232ae2de13L);
wvDrm = new MediaDrm(wideVineUuid);
byte[] wideVineId = wvDrm.getPropertyByteArray(MediaDrm.PROPERTY_DEVICE_UNIQUE_ID);

@Crusoekid
Copy link
Collaborator

谢谢,不过现在只能使用IMEI了,有什么问题吗?

@xiaoshanlin000
Copy link
Author

各大市场还有用户现在比较重视隐私权限了, READ_PHONE_STATE 这个权限还是比较隐私.

@Crusoekid
Copy link
Collaborator

READ_PHONE_STATE对于这个应该都能上架的,目前这个替换IEMI不太可行呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants