title: Programmatically retrieve permissions from manifest.xml in android
body: <p>I have to programmatically retrieve permissions from the manifest.xml of an android application and I don't know how to do it.</p>
  
  <p>I read <a href="https://stackoverflow.com/questions/2097813/how-to-parse-the-androidmanifest-xml-file-inside-an-apk-package">the post here</a> but I am not entirely satisfied by the answers. 
  I guess there should be a class in the android API which would allow to retrieve information from the manifest.</p>
  
  <p>Thank you.</p>