Runtime resource overlay allows unmodified applications to appear as if they had been compiled with additional resources defined. See libs/utils/README for more information. This commit is the first iteration of runtime resource overlay. It provides the actual overlay modifications and loading of trusted overlay packages (ie residing in /vendor) targeting framework-res.apk. This commit loads exactly one overlay package. The overlay, if present, must target framework-res.apk and be located at /vendor/overlay/framework/framework-res.apk. Change-Id: If26ee7754813004a96c043dba37fbe99fa3919db
16 lines
781 B
Plaintext
16 lines
781 B
Plaintext
Unit tests for runtime resource overlay
|
|
=======================================
|
|
|
|
As of this writing, runtime resource overlay is only triggered for
|
|
/system/framework/framework-res.apk. Because of this, installation of
|
|
overlay packages require the Android platform be rebooted. However, the
|
|
regular unit tests (triggered via development/testrunner/runtest.py)
|
|
cannot handle reboots. As a workaround, this directory contains a shell
|
|
script which will trigger the tests in a non-standard way.
|
|
|
|
Once runtime resource overlay may be applied to applications, the tests
|
|
in this directory should be moved to core/tests/coretests. Also, by
|
|
applying runtime resource overlay to a dedicated test application, the
|
|
test cases would not need to assume default values for non-overlaid
|
|
resources.
|