[Python] Extract "permissions" from Manifest by Python

Discussão em 'Python' iniciado por Stack, Maio 19, 2025.

  1. Stack

    Stack Membro Participativo

    I want to print the "permissions" from a Android Manifest file. I have already reverse engineered the apk and got the Android Manifest file and want to extract the permissions by using Python.

    import string
    test=string.printable
    f=open('AndroidManifest.xml', 'r').read()
    x=""
    for n in f:
    if n in test:
    x+=n
    print (x)


    This is my Python Script by which I can parse the XML file. How can I find the permissions and print it. Can anyone help me with this?

    Continue reading...

Compartilhe esta Página