summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/cmd_utils.py
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2020-02-12 13:43:20 -0800
committerWinson <chiuwinson@google.com>2020-03-31 03:14:25 -0700
commit561e0afb946c8008f994e7d927c0f3c10819fc44 (patch)
treed61ed55c24e6714d856e295d29f6146810de1795 /startop/scripts/lib/cmd_utils.py
parente3ef5ad69c837f5bf8abb2abde74e77d77bce0ea (diff)
Allow overriding the label and icon of a MainComponent
Normally these attributes are immutable once parsed from the AndroidManifest.xml of the corresponding app, but there exists a requirement for a special privileged app to change this at runtime. This change allows overriding label/icon of any component (Activity, Receiver, Provider, Service) that belongs to the app declared as R.string.config_overrideComponentUiPackage. This role can only be taken by 1 package, which must be a system app, and state is stored per-user. Different users with potentially different requirements can show a different label/icon. Co-authored-by: Yoshiaki Naka <yoshiaki.naka@sony.com> Bug: 113638339 Test: manual verify behavior using test app Test: atest PackageManagerComponentOverrideTests Change-Id: Id48eda55650ffc88854423498675b001c2500259
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions