Comments (7)
小伙子,XXPermissions 是权限申请框架,内部实现肯定没有获取应用列表这一说,你怎么确定这个问题就是框架导致的?
from xxpermissions.
感谢大佬,我也不确定是,小米检测出来有个截图啊,所以来确定一下,这个和框架包名一样,另外调用栈如下:
android.app.ApplicationPackageManager.queryIntentActivitiesAsUser(ApplicationPackageManager.java:1022)<---android.app.ApplicationPackageManager.queryIntentActivities(ApplicationPackageManager.java:995)<---com.hjq.permissions.PermissionUtils.areActivityIntent(PermissionUtils.java:429)<---com.hjq.permissions.PermissionIntentManager.getApplicationDetailsIntent(PermissionIntentManager.java:303)<---com.hjq.permissions.PermissionDelegateImplV14.getPermissionIntent(PermissionDelegateImplV14.java:41)<---com.hjq.permissions.PermissionDelegateImplV18.getPermissionIntent(PermissionDelegateImplV18.java:40)<---com.hjq.permissions.PermissionDelegateImplV19.getPermissionIntent(PermissionDelegateImplV19.java:88)<---com.hjq.permissions.PermissionDelegateImplV21.getPermissionIntent(PermissionDelegateImplV21.java:42)<---com.hjq.permissions.PermissionDelegateImplV23.getPermissionIntent(PermissionDelegateImplV23.java:225)<---com.hjq.permissions.PermissionDelegateImplV26.getPermissionIntent(PermissionDelegateImplV26.java:64)<---com.hjq.permissions.PermissionApi.getPermissionIntent(PermissionApi.java:75)<---com.hjq.permissions.PermissionUtils.getSmartPermissionIntent(PermissionUtils.java:446)<---com.hjq.permissions.PermissionPageFragment.onResume(PermissionPageFragment.java:117)<---android.app.Fragment.performResume(Fragment.java:2554)<---android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1322)<---android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1557)<---android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1618)<---android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2196)<---android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2142)<---android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2043)<---android.app.FragmentManagerImpl$1.run(FragmentManager.java:719)<---android.os.Handler.handleCallback(Handler.java:790)<---android.os.Handler.dispatchMessage(Handler.java:99)<---android.os.Looper.loop(Looper.java:164)<---android.app.ActivityThread.main(ActivityThread.java:6843)<---java.lang.reflect.Method.invoke(Native Method)<---com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)<---com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
检测图如下:
from xxpermissions.
小伙子,PermissionPageFragment 不会无缘无故创建,你看看是不是在隐私弹窗同意前调用了 XXPermissions 的某些函数?例如 startPermissionActivity?
from xxpermissions.
经排查,没有呢,在启动类里面就没这个XXPermissions类名,所以说就奇怪了,经过上面的调用栈,能确定是咱这个框架申请的权限吗?
from xxpermissions.
![image](https://private-user-images.githubusercontent.com/28616817/324174172-c7fbe66c-e2df-455a-aa8c-da01af09e227.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc1NjMyMTUsIm5iZiI6MTcxNzU2MjkxNSwicGF0aCI6Ii8yODYxNjgxNy8zMjQxNzQxNzItYzdmYmU2NmMtZTJkZi00NTVhLWFhOGMtZGEwMWFmMDllMjI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA1VDA0NDgzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFjODRjZDFmMWY1YzU1MTMwNDYwZDkzZjU0NTAwOTQ5NjE3ZjlhMzMyYTMwMzc5YzI1NmY4NTI2NDljYzc1NTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-nS0qMXvqgsiFlodtxYzRDC3MHuAHrD5bH9e4Uaa29g)
from xxpermissions.
从堆栈分析,确实是框架的问题,但是这不能代表一定就是框架的问题,PermissionPageFragment 不会无缘无故创建,肯定外层手动调用了它,或者调用了 XXPermissions.startPermissionActivity
的 API,你需要提供更多的证据来证明这个是框架的问题。
from xxpermissions.
长时间没有响应,自动关闭此 issue。
from xxpermissions.
Related Issues (20)
- [疑惑]:对于一个兼容问题,不知道算bug还是算正常,所以提出一点疑问 HOT 9
- [Bug]:安卓TV 11 上 申请MANAGE_EXTERNAL_STORAGE权限无反应 HOT 8
- [Question]: 阿里云这种权限申请是怎么做到的 HOT 1
- [Bug]:蓝牙权限在请求时,如果安卓12以下设备,有个细节Bug HOT 5
- [Bug]:申请多个权限,点击同意后无限弹窗
- [Bug]:权限设置maxSdkVersion后一律抛出异常 HOT 6
- [疑惑]:获取短信权限没有弹窗
- [Bug]: 去掉已授权的缓存 HOT 3
- You must add android.permission.READ_MEDIA_IMAGES or android.permission.READ_MEDIA_VIDEO or android.permission.MANAGE_EXTERNAL_STORAGE rights to apply for android.permission.ACCESS_MEDIA_LOCATION rights[Question]: HOT 1
- [Bug]:安装成功后,从设置里面设置XXPermission的定位权限为每次使用询问,然后在应用中弹出的定位弹窗中选择禁止,然后进入设置查看XXPermission,发现XXPermission的定位权限还是显示每次使用询问 HOT 24
- [疑惑]:已经适配了分区分出但是总是报错呢 HOT 3
- [Bug]: HOT 2
- [疑惑]:有dialog的地方,权限说明被遮挡 HOT 1
- [Bug]:MANAGE_EXTERNAL_STORAGE没有回调,并且会出现重启的现象 HOT 2
- [疑惑]:您好,我在权限清单已经填写了MANAGE_EXTERNAL_STORAGE权限,为什么申请的时候还是会报错提示没有在清单文件声明权限呢? HOT 6
- [建议]:特殊权限和危险权限同时申请时,框架先申请特殊权限,后申请危险权限。希望能支持修改,或者按照添加顺序申请。 HOT 5
- [疑惑]: HOT 2
- [Bug]:提示我删除maxSdkVersion="32",但是全局都没有搜索到这个 HOT 9
- [Bug]:按照代码中的错误来申请,提示报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xxpermissions.