get_details_permissions() working correctly?
See original GitHub issueDescribe what you wanted to do
I’m getting odd results from calling get_details_permissions()
as every permission is marked as unknown and ‘normal’
Describe what you expected
a, dx, d = AnalyzeAPK('package.apk')
a.get_details_permissions()
Given this list of permissions found:
['com.android.launcher.permission.INSTALL_SHORTCUT',
'android.permission.READ_SETTINGS',
'android.permission.WRITE_SETTINGS',
'android.permission.ACCESS_NETWORK_STATE',
'android.permission.WRITE_EXTERNAL_STORAGE',
'android.permission.INTERNET',
'android.permission.READ_PHONE_STATE',
'android.permission.READ_SMS',
'android.permission.SEND_SMS',
'android.permission.RECEIVE_SMS',
'android.permission.READ_CONTACTS']
I would expect to get appropriate levels, for instance READ_SMS
should return dangerous
Describe what actually happened
This is the actual result:
{'android.permission.ACCESS_NETWORK_STATE': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.INTERNET': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.READ_CONTACTS': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.READ_PHONE_STATE': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.READ_SETTINGS': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.READ_SMS': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.RECEIVE_SMS': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.SEND_SMS': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.WRITE_EXTERNAL_STORAGE': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'android.permission.WRITE_SETTINGS': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference'],
'com.android.launcher.permission.INSTALL_SHORTCUT': ['normal',
'Unknown permission from android reference',
'Unknown permission from android reference']}
System Information
- Androguard Version: 3.3.4 (same happens for 3.2.1)
- Python Version: 3.7
- Operating Systems: Mac OS, Linux, Windows
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Request app permissions - Android Developers
Overview · Get started · Layouts and binding expressions · Work with observable ... Request app permissions · Explain access to more sensitive...
Read more >Change app permissions on your Android phone
If you can't find it, tap See all apps. Then, choose your app. Tap Permissions. If you allowed or denied any permissions for...
Read more >"Access Denied" or other errors when you access or work with ...
Right -click the file or folder, and then click Properties. Click the Security tab. Under Group or user names, click your name to...
Read more >How to manage Linux permissions for users, groups, and others
How to manage permissions and ownership for users, groups, and all others to resources such as directories and files.
Read more >Permissions Reference - Graph API - Facebook for Developers
Getting permissions from app users involves the following steps: Choose the permissions that your app needs to function as intended.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
there is actually a default API setting. it will change now to this:
Let’s see if we can fix #529 as well.
Yes makes sense, the behavior might be to load the next higher version available or the highest available if the analysed targetSDK is above the highest one available (the 2 apk provided fall one in the first category and the other on the second).
Thanks for your prompt answers