summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author felkachang <felkachang@google.com> 2022-09-21 16:09:56 +0800
committer felkachang <felkachang@google.com> 2022-12-20 12:48:47 +0800
commitd11fe3b41b56b4a9fd711a7156b8e8697374fd40 (patch)
tree7ddf58ecc6c2ec322d9fa0f8a01fa1730d9ae23d /libs/androidfw/ApkParsing.cpp
parenteaa0ad10e8047576aa1de969ce0f31ba8a4d6ba5 (diff)
Public self targeting API
Apps can maintains overlays by using these public APIs. 1. Create a FabricatedOverlay instance and set the overlay content. 2. Get a OverlayManager by calling context.getSystemService(...) 3. Create an OverlayManagerTransaction. 4. Register/unregister the overlays via the OverlayManagerTransaction 5. Commit the OverlayManagerTransaction. Apps can use the registered overlay to overlay itself resources. 1. Get the overlay information by calling overlayManager.getOverlayInfosByTarget(...) 2. Create a ResourcesProvider by calling ResourcesProvider.loadOverlay(overlayInfo) 3. Create a ResourcesLoader to adding the ResourcesProvider in steps 2. 4. Overlay a Resources instance by calling Resources.addLoader(...) This patch removes @hide to public the above APIs. Bug: 205919743 CTS-Coverage-Bug: 262232910 API-Coverage-Bug: 262232910 Test: make update-api ; make Test: make online-sdk-docs offline-sdk-docs Test: atest \ OverlayHostTests \ OverlayDeviceTests \ SelfTargetingOverlayDeviceTests \ OverlayRemountedTest \ FrameworksServicesTests:com.android.server.om \ CtsContentTestCases:android.content.om.cts \ CtsContentTestCases:android.content.res.loader.cts \ idmap2_tests Change-Id: I34fee52f55cd2ce63613dfb43e8ab235eca47772
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions