Get the list of used permissions

279 views
Skip to first unread message

Yury Zhauniarovich

unread,
Feb 11, 2013, 11:34:01 AM2/11/13
to andro...@googlegroups.com
Hi.

I developed a small apk file that writes and reads contact data. Then I decided to see the used permissions in my apk using AndroGuard's function

perms = adexobj.get_permissions( [] )
print perms

The result is the following:
{'ACCESS_NETWORK_STATE': [<androguard.core.analysis.analysis.PathP instance at 0x3c82e60>, <androguard.core.analysis.analysis.PathP instance at 0x3c87950>, <androguard.core.analysis.analysis.PathP instance at 0x3c88680>], 'VIBRATE': [<androguard.core.analysis.analysis.PathVar instance at 0x4604c20>, <androguard.core.analysis.analysis.PathVar instance at 0x4604b90>, <androguard.core.analysis.analysis.PathVar instance at 0x4604c68>, <androguard.core.analysis.analysis.PathVar instance at 0x4604cb0>]}

I do not see used permissions WRITE_CONTACTS and READ_CONTACTS. Can you describe what's wrong with my script or maybe there is a bug in AndroGuard?

Anthony Desnos

unread,
Feb 12, 2013, 10:42:52 AM2/12/13
to andro...@googlegroups.com
Can you provide the AndroidManifest.xml file ?


2013/2/11 Yury Zhauniarovich <y.zhaln...@gmail.com>

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Androguard.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse androguard+...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

Yury Zhauniarovich

unread,
Feb 12, 2013, 10:53:19 AM2/12/13
to andro...@googlegroups.com
Here it is. The application is a very primitive. If you want I can send you the sources and the apk file. I do not know if this is relevant but I downloaded the latest sources of AndroGuard and use them to perform the analysis.

    package="org.mosesdroid.mscptester"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="10" />
    
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/title_activity_main" >
            <intent-filter android:label="@string/app_name">
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

Anthony Desnos

unread,
Feb 12, 2013, 10:54:45 AM2/12/13
to andro...@googlegroups.com
Ok sorry provide the APK :) But I will explain the problem.


2013/2/12 Yury Zhauniarovich <y.zhaln...@gmail.com>

Yury Zhauniarovich

unread,
Feb 13, 2013, 3:43:43 AM2/13/13
to andro...@googlegroups.com
Ok, finally I found the button to attach the file. Here is the apk file that I tried to analyze.
MsCpTester.apk

Jannath Nisha

unread,
Jun 10, 2017, 4:04:43 AM6/10/17
to Androguard
Dear friend,

         I need to install androguard for my work. But i cannot the correct the following error "Importerror: No modules named cryptography".
Help me to solve the same.

Thankyou

Sebastian Bachmann

unread,
Jun 10, 2017, 10:27:19 AM6/10/17
to andro...@googlegroups.com
Hey!

have you read the install instructions on github?
https://github.com/androguard/androguard/#4-building-and-requirements

You need python-cryptography and several other libraries installed!

HTH

Sebastian

On Sat, Jun 10, 2017 at 01:04:43AM -0700, Jannath Nisha wrote:
> Dear friend,
>
> I need to install androguard for my work. But i cannot the correct
> the following error "Importerror: No modules named cryptography".
> Help me to solve the same.
>
> Thankyou
>
>
> On Monday, 11 February 2013 22:04:01 UTC+5:30, Yury Zhauniarovich wrote:
> >
> > Hi.
> >
> > I developed a small apk file that writes and reads contact data. Then I
> > decided to see the used permissions in my apk using AndroGuard's function
> >
> > *perms = adexobj.get_permissions( [] )*
> > *print perms*
> >
> > The result is the following:
> > {'ACCESS_NETWORK_STATE': [<androguard.core.analysis.analysis.PathP
> > instance at 0x3c82e60>, <androguard.core.analysis.analysis.PathP instance
> > at 0x3c87950>, <androguard.core.analysis.analysis.PathP instance at
> > 0x3c88680>], 'VIBRATE': [<androguard.core.analysis.analysis.PathVar
> > instance at 0x4604c20>, <androguard.core.analysis.analysis.PathVar instance
> > at 0x4604b90>, <androguard.core.analysis.analysis.PathVar instance at
> > 0x4604c68>, <androguard.core.analysis.analysis.PathVar instance at
> > 0x4604cb0>]}
> >
> > I do not see used permissions WRITE_CONTACTS and READ_CONTACTS. Can you
> > describe what's wrong with my script or maybe there is a bug in AndroGuard?
> >
>
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Androguard.
> Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse androguard+...@googlegroups.com.
> Pour plus d'options, visitez le site https://groups.google.com/d/optout .

signature.asc
Reply all
Reply to author
Forward
0 new messages