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

[Bug]: 去掉已授权的缓存 #283

Closed
liupeng176 opened this issue Apr 18, 2024 · 3 comments
Closed

[Bug]: 去掉已授权的缓存 #283

liupeng176 opened this issue Apr 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@liupeng176
Copy link

Framework Version [Required]

14.0

Issue Description [Required]

一加11,安卓14,Color Os 14.0正式版本 型号 phb110
在app授权READ_MEDIA_VIDEO和READ_MEDIA_IMAGES时候,用户全部允许,这个时候是正常的,然后用户在系统权限中,把照片和视频权限改为每次都询问,此时由于XXPermissions.java第206行中判断已经授权过,所以直接回调了成功,导致得到错误的权限结果,这里建议去掉缓存,每次都请求最新的。
if (PermissionApi.isGrantedPermissions(context, permissions)) { // 证明这些权限已经全部授予过,直接回调成功 if (callback != null) { interceptor.grantedPermissionRequest(activity, permissions, permissions, true, callback); interceptor.finishPermissionRequest(activity, permissions, true, callback); } return; }

Steps to Reproduce [Required]

同上

Is the Issue Reproducible? [Required]

Yes

Project targetSdkVersion [Required]

33

Device Information [Required]

phb110

Android Version [Required]

14

Issue Source Channel [Required]

No response

Is it specific to certain device models? [Required]

phb110

Does the latest version of the framework have this issue? [Required]

Not Selected

Is the issue mentioned in the framework documentation? [Required]

No

Did you consult the framework documentation but couldn't find a solution? [Required]

No

Has a similar issue been reported in the issue list? [Required]

No

Have you searched the issue list but couldn't find a solution? [Required]

No

Can the issue be reproduced with a demo project? [Required]

No

Provide Error Stack Trace

No response

Provide Screenshots or Videos

No response

Provide a Solution

No response

@liupeng176 liupeng176 added the bug Something isn't working label Apr 18, 2024
@liupeng176
Copy link
Author

修复方案,去掉这段代码.直接不检测 每次都申请就可

@getActivity
Copy link
Owner

getActivity commented Apr 20, 2024

小伙子,目前此 issue 打回,原因如下:

  • 没有严格按照 issue 模板填写

  • 某些问题看似回答了,但是实际是乱回答

请重新提交 issue,并且严格按照 issue 模板填写

@TOPWN
Copy link

TOPWN commented Jun 7, 2024

Framework Version [Required]

14.0

Issue Description [Required]

一加11,安卓14,Color Os 14.0正式版本 型号 phb110 在app授权READ_MEDIA_VIDEO和READ_MEDIA_IMAGES时候,用户全部允许,这个时候是正常的,然后用户在系统权限中,把照片和视频权限改为每次都询问,此时由于XXPermissions.java第206行中判断已经授权过,所以直接回调了成功,导致得到错误的权限结果,这里建议去掉缓存,每次都请求最新的。 if (PermissionApi.isGrantedPermissions(context, permissions)) { // 证明这些权限已经全部授予过,直接回调成功 if (callback != null) { interceptor.grantedPermissionRequest(activity, permissions, permissions, true, callback); interceptor.finishPermissionRequest(activity, permissions, true, callback); } return; }

Steps to Reproduce [Required]

同上

Is the Issue Reproducible? [Required]

Yes

Project targetSdkVersion [Required]

33

Device Information [Required]

phb110

Android Version [Required]

14

Issue Source Channel [Required]

No response

Is it specific to certain device models? [Required]

phb110

Does the latest version of the framework have this issue? [Required]

Not Selected

Is the issue mentioned in the framework documentation? [Required]

No

Did you consult the framework documentation but couldn't find a solution? [Required]

No

Has a similar issue been reported in the issue list? [Required]

No

Have you searched the issue list but couldn't find a solution? [Required]

No

Can the issue be reproduced with a demo project? [Required]

No

Provide Error Stack Trace

No response

Provide Screenshots or Videos

No response

Provide a Solution

No response

Android14(三星S24)遇到同样的问题,在app授权READ_MEDIA_VIDEO和READ_MEDIA_IMAGES时候,用户全部允许,这个时候是正常的,然后用户在系统权限中,把照片和视频权限改为每次都询问, 直接回调了成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants