glide icon indicating copy to clipboard operation
glide copied to clipboard

Why does glide use the read contact permission code?

Open shuszj opened this issue 3 years ago • 3 comments

In glide 4.12.0, it is detected that the SDK uses the permission code to read contacts. Can you remove the permission code? glide

shuszj avatar Sep 18 '21 03:09 shuszj

The contacturi sample uses this permission, but it's not declared elsewhere.

If you pass in a contact uri, Glide will use contact APIs to read them: https://github.com/bumptech/glide/blob/dbdae568a37e9aabdab4ceb0ab9c7294de53861d/library/src/main/java/com/bumptech/glide/load/data/StreamLocalUriFetcher.java#L59. If the app has already obtained the contacts permissions it'll work, if not it'll fail.

sjudd avatar Sep 19 '21 18:09 sjudd

contacturi 示例使用此权限,但未在其他地方声明。

如果您传入联系人 uri,Glide 将使用联系人 API 来读取它们:

https://github.com/bumptech/glide/blob/dbdae568a37e9aabdab4ceb0ab9c7294de53861d/library/src/main/java/com/bumptech/glide/load/data/StreamLocalUriFetcher.java#L59

. 如果应用程序已经获得了通讯录权限,它就会工作,否则就会失败。

I would like to ask, which package can remove this code ? otherwise it will still be detected that it has the permission to read contacts

shuszj avatar Sep 22 '21 02:09 shuszj

contacturi 示例使用此权限,但未在其他地方声明。 如果您传入联系人 uri,Glide 将使用联系人 API 来读取它们: https://github.com/bumptech/glide/blob/dbdae568a37e9aabdab4ceb0ab9c7294de53861d/library/src/main/java/com/bumptech/glide/load/data/StreamLocalUriFetcher.java#L59

. 如果应用程序已经获得了通讯录权限,它就会工作,否则就会失败。

I would like to ask, which package can remove this code ? otherwise it will still be detected that it has the permission to read contacts

你好,有解决了吗?最近我们也遇到这个问题。平台检测Glide 不通过

HpWens avatar Jun 13 '22 09:06 HpWens