summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author felkachang <felkachang@google.com> 2022-11-24 11:21:13 +0800
committer felkachang <felkachang@google.com> 2022-11-30 13:08:13 +0800
commitf661351badd7195207c72bcdb4486e54639f211d (patch)
treeafb7c674d74339656f50f169120d1c4f5dfdc529 /libs/androidfw/StringPool.cpp
parent1691b994bc0a60a9da6be12e415ba23a61372173 (diff)
Add self-targeting constructor in FabaricatedOverlay
When the app wants to overlay its resource in runtime, it’s a SelfTargeting scenario. This patch adds a new builder constructor in FabaricatedOverlay for SelfTargeting. It's `Builder(@NonNull String overlayName, @NonNull String targetPackage)`. The app needs to pass 2 parameters. * the overlay name * target package to be overlaid This patch also marks the nullability and checks the arguments of `setResourceValue` and it needs related CTS tests to verify the nullability. * setResourceValue Test: atest \ OverlayHostTests \ OverlayDeviceTests \ SelfTargetingOverlayDeviceTests \ OverlayRemountedTest \ FrameworksServicesTests:com.android.server.om \ CtsContentTestCases:android.content.om.cts \ idmap2_tests Bug: 205919743 Change-Id: Ie8e2de13076c9d28bbcf7ee52deab91114f7ec57
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions