Lines Matching full:overlay
19 Resource overlay
26 Overlay packages are special .apk files which provide no code but
30 package or any associated overlay package. Any redirection is completely
36 * overlay package, matching config (eg res/values-en-land)
40 * overlay package, no config (eg res/values)
44 During compilation, overlay packages are differentiated from regular
133 The resource overlay extension
136 The resource overlay mechanism aims to (partly) shadow and extend
139 overlay packages) to existing resource namespaces, like so:
141 mPackageMap[0x00] -> system package -> system overlay package
146 mPackageMap[0x7f - 1] -> application package -> overlay 1 -> overlay 2
148 The use of overlay resources is completely transparent to
150 configuration/value pairs. Any number of overlay packages may be loaded
151 at a time; overlay packages are agnostic to what they target -- both
154 The package targeted by an overlay package is called the target or
157 Resource overlay operates on symbolic resources names. Hence, to
158 override the string/str1 resources in a package, the overlay package
163 As of this writing, the use of resource overlay has not been fully
164 explored. Until it has, only OEMs are trusted to use resource overlay.
165 For this reason, overlay packages must reside in /system/overlay.
174 an overlay package. To translate between the two, a resource ID mapping
175 {original ID -> overlay ID} is created during package installation
191 to load a list of packages. This list includes overlay packages, if
194 When a target package or a corresponding overlay package is installed,
200 Creating overlay packages
203 Overlay packages should contain no code, define (some) resources with
207 The aapt -o flag instructs aapt to create an overlay package.
210 There are no restrictions on overlay packages names, though the naming
211 convention <original.package.name>.overlay.<name> is recommended.
214 Example overlay package
217 To overlay the resource bool/b in package com.foo.bar, to be applied
221 /system/overlay by adding the following to Android.mk:
224 LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
231 and trailing undefined overlay values are discarded to reduce the memory
242 header := idmap-magic <crc32-original-pkg> <crc32-overlay-pkg>
253 Given a pair of target and overlay packages with CRC sums 0x216a8fe2
256 Name Target package Overlay package
277 0x6b9beaec # CRC32 of the resources.arsc file in the overlay package
280 0x00000000 # no bool type exists in overlay package -> no header_block
282 0x00000003 # header_block for string; overlay IDs span 3 elements
284 0x7f010000 # target 0x7f01001 -> overlay 0x7f010000
285 0x00000000 # str2 not defined in overlay package
286 0x7f010001 # target 0x7f010003 -> overlay 0x7f010001
287 0x00000001 # header_block for integer; overlay IDs span 1 element
289 0x7f020000 # target 0x7f030000 -> overlay 0x7f020000