OSDN Git Service

Newly create idmap only when it is outdated
authorJaekyun Seok <jaekyun@google.com>
Wed, 19 Apr 2017 02:01:38 +0000 (11:01 +0900)
committerJaekyun Seok <jaekyun@google.com>
Wed, 26 Apr 2017 02:30:33 +0000 (02:30 +0000)
commit1d091465334784adeded4ef182cc6f732eb6f99e
treebf10d8ac919f3908d3e89767fd833de2c5485ffa
parentc211793ac645c969a437e63ead11947f888d2bec
Newly create idmap only when it is outdated

For now, OverlayManagerService calls Installd.idmap() whenever a user
is changed, and then a idmap is re-generated even though there are no
changes on its target apk and overlay apk.
This CL is to avoid such unnecessary re-generation of idmap. Instead
only a group id will be updated when the idmap isn't outdated.

Test: building succeeded and tested on sailfish.
Bug: 37179531
Change-Id: Id726cbbc621bd64f2a329798b2ab5436f0c28d70
cmds/installd/InstalldNativeService.cpp