Libs

This is an autogenerated documentation file for the script: Libs

Run it

$ ./androanalyze scripts_builtin/Libs.py --package-names com.spotify.music

View the results

Non-Binary

$ ./androquery result -sn Libs -pn com.spotify.music

 {
     "apk meta": {
         "package name": "com.spotify.music",
         "version name": "2.2.0.636",
         "sha256": "bbf2c7d7b8fbbce68a97a2f0fd7e854e29b1ea9e3836615e7e6a35095915a607",
         "import date": "2015-04-14T15:10:06.364000",
         "build_date": "2015-02-11T12:25:40",
         "path": "/mnt/stuff/btsync/apks_manual_downloads/02.03.2015_top_free_4/apps_topselling_free/MUSIC_AND_AUDIO/com.spotify.music.apk",
         "tag": null
     },
     "script meta": {
         "name": "Libs",
         "sha256": "0b9f2891de2b7ff87eaf4da7588618984f19542c6cac6e3899d3c69cf508518a",
         "analysis date": "2015-06-22T20:29:33.907000",
         "version": "0.1"
     },
     "libraries": []
 }

Binary

For the case that the result may exceed 16MB, it is stored in MongoDB’s gridFS. Therefore we need to use a different query syntax:

View the meta data:

$ ./androquery result -sn Libs -pn com.spotify.music -nd

 Empty

View the raw data:

$ ./androquery result -sn Libs -pn com.spotify.music -nd -r

 Empty

Source


# encoding: utf-8

__author__ = "Nils Tobias Schmidt"
__email__ = "schmidt89 at informatik.uni-marburg.de"

from androlyze.model.script.AndroScript import AndroScript


class Libs(AndroScript):
    ''' List the libraries '''
    
    VERSION = "0.1"
    
    def _analyze(self, apk, dalvik_vm_format, vm_analysis, gvm_analysis, *args, **kwargs):    
        
        #categories
        CAT_LIBS = "libraries" 
        
        res = self.res
        
        # libs
        res.register_keys([CAT_LIBS])
        res.log(CAT_LIBS, apk.get_libraries())