Generate /data/system/packages.list in the PackageManager
This file contains uid + debugFlag + dataPath information for each non-system installed package. It is meant to be used later from native code and thus needs to be considerably simpler to parser than packages.xml. The file should only be readable by non-system userIds, and its format is essentially line-based with each line like: <pkgName> <uid> <debugFlag> <dataDir> With: <pkgName> as the package name <uid> as the application-specific user id <debugFlag> either 0 or 1. 1 if the package is debuggable <dataDir> path to the package's data directory We need the debug flag to allow 'run-as' to only allow commands to be executed on debuggable packages, even on production devices.
Loading
Please register or sign in to comment