gourob saha
gourob saha

Reputation: 11

Android Applications permission access

As we know when an Application installed in android (/system/app folder) , It will assigned a userid and groupid ( that is used in Linux file system) by system and applications configuration is saved in package.xml . Like file manager application

<package name="com.android.filemanager" code Path ="/system/app/  FileManager.apk" flags="1" ts="1314087422000" version="1"  userId="10036"> 

there is no permission tag in this xml . so from where it get execute permission ? .. Is there any methods to get this application permissions .

Upvotes: 1

Views: 234

Answers (2)

Erol
Erol

Reputation: 6526

This provides an insight into why it is not possible to get permissions that easily.

Nevertheless, you can use this code in your application to obtain its' permissions dynamically in a List:

final List<PackageInfo> permissions_list = getApplicationContext().getPackageManager().getInstalledPackages(PackageManager.GET_PERMISSIONS);

Use this attribute of your returned PackageInfos to get a String array of all the permissions declared by <uses-permission> tag in manifest, not permissions as you wrote in the comments.

It is also not possible to change those permissions programatically due to security precautions as stated in the documentation link above but there are some applications that allow blocking some permissions for rooted devices. I never used one so I don't know if they work or not.

Upvotes: 2

Vishwanath.M
Vishwanath.M

Reputation: 6317

in my case package.xml is there in data/system path it includes all the permissions list with packages

Upvotes: 1

Related Questions