How can I analyse a Apk file in android application? Get the permissions -


i want write android app can analyse apk file , output permissions application required? saw app achieve , can tell me method might used?

the best way of doing external apk files, not installed ones:

the .apk file casual .zip changed extension. permissions located in androidmanifest.xml file, job load memory, parse xml parser , search uses-permission tag.
looks <uses-permission android:name="android.permission.xxx"/>.

to unzip xml archive recommend this post should modify grab .xml file, , documentation of zipentry telling has .getname() method. leave xml-parsing research (that tutorial not bad), , yes, possible.

edit: found 1 library possibly - apk-parser github, not tested on android. users reporting issues on android l

try(apkparser apkparser = new apkparser(new file(filepath))) {      (string permission: apkmeta.getusespermissions()) {         log.d("apk perm",permission);     } } 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -