Search code examples
androidapidrm

Android: how to enumerate available DRM plugins


I need to collect information on all available DRM plugins. Android's document on DRM mentions that all available plugins can be found under /system/lib/drm/plugins/native/. Is there an API that can give me similar information in a more friendly format (e.g. human readable plugin names rather than cryptic filenames).


Solution

  • DrmManagerClient.getAvailableDrmEngines() gives you the info of all the available engines.

    There's no reason to read these from the file location yourself. From the DRM docs

    Plug-ins are loaded automatically when DrmManagerService is launched