Permissions extraction module based on the PackageManager
in the monitoring system is implemented by calling the API
of the PackageManager. In the API, the
context.getPackageManager() is used to get package
management services; the getInstalledPackages() is used to
get a collection of all APP package structure; the
packageinfo.requestedPermissions is used to get permissions
information to each APP; the packageinfo.packageName is
used to get the package name; the packageinfo is used to get
the aplicationInfo node and the appinfo.loadLabel is used to
get the full name of the APP. In terms of the presentation of
the system, the module can be divided into two sub modules:
permission-extraction module according to APP and
APP-extraction module according to permission.