Services

This is an autogenerated documentation file for the script: Services

Run it

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

View the results

Non-Binary

$ ./androquery result -sn Services -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": "Services",
         "sha256": "4289c76adce3be0efb678529cf6c6960b85594f410756e236bf25a821e018397",
         "analysis date": "2015-06-22T20:29:34.177000",
         "version": "0.1"
     },
     "services": [
         "com.spotify.mobile.android.service.SpotifyService",
         "com.spotify.mobile.android.video.VideoService",
         "com.spotify.mobile.android.service.MetadataManagerProxy",
         "com.spotify.mobile.android.service.ConnectManagerProxy",
         "com.spotify.mobile.android.service.SessionManagerProxy",
         "com.spotify.mobile.android.service.RemoteNativeRouterProxy",
         "com.spotify.mobile.android.service.MonitorService",
         "com.spotify.mobile.android.util.tracking.TrackingService",
         "com.spotify.music.spotlets.mobileapptracker.MobileAppTrackerIntentService",
         "com.spotify.mobile.android.service.DeviceIdentifierLoggerIntentService",
         "com.spotify.music.internal.service.DeleteCacheService",
         "com.spotify.mobile.android.spotlets.video.BackgroundableVideoService",
         "com.spotify.music.internal.service.DeleteOldCacheLocationsService",
         "com.spotify.mobile.android.spotlets.collection.service.AnnotateService",
         "com.spotify.mobile.android.spotlets.collection.service.RecentlyPlayedService",
         "com.spotify.mobile.android.spotlets.collection.cosmos.service.CollectionService",
         "com.spotify.mobile.android.spotlets.offline.service.OfflineService",
         "com.spotify.mobile.android.spotlets.podcast.service.PlayedStateService",
         "com.spotify.mobile.android.spotlets.ads.VideoAdService",
         "com.spotify.mobile.android.service.VideoPlayerManagerProxy",
         "com.spotify.music.spotlets.situationalcontent.loggers.activityrecognition.ActivityRecognitionIntentService",
         "com.spotify.music.spotlets.radio.service.RadioActionsService",
         "com.spotify.mobile.android.service.player.PlayerStateService",
         "com.spotify.mobile.android.service.session.SessionStateService",
         "com.spotify.mobile.android.service.media.MediaService",
         "com.spotify.mobile.android.applink.service.AppLinkService",
         "com.spotify.mobile.android.service.feature.FeatureService",
         "com.spotify.mobile.android.androidauto.SpotifyMediaBrowserService"
     ]
 }

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 Services -pn com.spotify.music -nd

 Empty

View the raw data:

$ ./androquery result -sn Services -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

#categories
CAT_SERVICES = "services"

class Services(AndroScript):
    ''' Read services from manifest '''

    VERSION = "0.1"

    def _analyze(self, apk, dalvik_vm_format, vm_analysis, gvm_analysis, *args, **kwargs):

        res = self.res

        res.register_keys([CAT_SERVICES])

        # services
        res.log(CAT_SERVICES, apk.get_services())