OSDN Git Service

Measure external storage using new GIDs.
authorJeff Sharkey <jsharkey@android.com>
Thu, 19 Jan 2017 16:21:36 +0000 (09:21 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 19 Jan 2017 16:24:10 +0000 (09:24 -0700)
commit7bf5b9532e192e846be3a31f28171cdba0f3c830
treeea3eb89a1ba62d37d69764e114606ac5708da0e4
parent45270e18cc52501cdbec95d3d005f04472ed8055
Measure external storage using new GIDs.

We just defined a new range of GIDs that will be used to mark per-app
data files stored on external storage, so start measuring them.

Also measure all OBB files using another new GID that was defined.

Note that we're relying on the per-app cache GIDs to track cache
usage on *both* internal and external storage, which means that stats
and extStats won't always add up.  (The framework already combines
these values together, and we didn't want to waste precious GID
space on explicitly tracking cache files on external storage.)

Test: builds, boots
Bug: 2794881734263266
Change-Id: Ife087df299ff8ee1a75fce1e39b4b737cf9375d5
cmds/installd/InstalldNativeService.cpp
cmds/installd/utils.h