{"push_id":1195487516,"size":1,"distinct_size":1,"ref":"refs/heads/oms","head":"56cab9adee790877dc64a141237866c4a5734995","before":"52d01191d997d501dbd59b8dfa96aa921ee815e5","commits":[{"sha":"56cab9adee790877dc64a141237866c4a5734995","author":{"name":"Mårten Kongstad","email":"3cffa9f0984cbcdbe034048a923f9b72ea3c8264@sonymobile.com"},"message":"OMS: Runtime resource overlay support for downloaded overlay packages\n\nRequire non-pre-loaded overlay package's signature match that of the\ntarget package.\n\nSECURITY\n--------\nOverlay packages may either be pre-loaded, ie part of the system image,\nor downloaded. Pre-loaded overlays are trusted by definition. Downloaded\noverlays are only used if their signature matches that of their target\npackage.\n\nLOOKUP PRIORITY\n---------------\nDuring resource lookup, packages are sequentially queried to provide a\nbest match, given the constraints of the current configuration. If any\npackage provide a better match than what has been found so far, it\nreplaces the previous match. The target package is always queried last.\n\nWhen loading a package with more than one overlay, the order in which\nthe overlays are added become significant if several packages overlay\nthe same resource.\n\nFor downloaded overlays, the install time is used to determine the load\norder: packages installed later will be queried first and can therefor\nshadow previously installed overlays. Downloaded overlays always trumps\npre-installed ones.\n\nFor pre-installed overlays, the install time is randomly determined by\nthe order in which the Package Manager locates the packages during\ninitial boot. To support a well-defined order, pre-installed overlay\npackages are expected to define an additional 'priority' attribute in\ntheir <overlay> tags:\n\n    <overlay target=\"com.target.package\" priority=\"1234\"/>\n\nPre-installed overlays are loaded in order of their priority attributes,\nsorted in ascending order.\n\nThe following example shows the ResTable and PackageGroups after loading\nan application and four overlays. The resource lookup framework will\nquery the packages in the order E, D, C, B, A.\n\n        +------+------+-     -+------+------+\n        | 0x01 |      |  ...  |      | 0x7f |\n        +------+------+-     -+------+------+\n            |                           |\n        \"android\"                Target package A\n                                        |\n                       Pre-installed overlay B (priority 1)\n                                        |\n                       Pre-installed overlay C (priority 2)\n                                        |\n                      Downloaded overlay D (install time T)\n                                        |\n                    Downloaded overlay E (install time T + 1)\n\nTEST CASES\n----------\nTest cases are part of CTS. To verify this patch, run\n\n    $ make cts\n    $ echo | cts-tradefed run cts --package android.runtimeresourceoverlay\n\nChange-Id: If9a8c172425c384c5b9962132714cbea9142a48a","distinct":true,"url":"https://api.github.com/repos/nathanchance/purenexus_frameworks_native/commits/56cab9adee790877dc64a141237866c4a5734995"}]}
{"actor":{"display_login":"nathanchance"}}