diff options
| author | 2022-11-08 05:53:26 +0000 | |
|---|---|---|
| committer | 2022-11-15 10:04:17 +0000 | |
| commit | 1e8add8d46a6f7bf0b156f1c282892e99a86e526 (patch) | |
| tree | 8a5b80b6317b3584a86d65d8f93c4fa866c6deb7 /libs/androidfw/AssetDir.cpp | |
| parent | 9452d8bc52f6a6dc456afbf91a980e52eef97314 (diff) | |
Ensure the resource name is validated
According to the comment of FabricatedOverlaysTests#setResourcesValue,
it describes that the param `resourceName` should be in the form
"[package]:type/entry". However, there is no validation for it.
This patch adds the function ensureValidResourceName to validate the
input param resourceName.
Bug: 205919743
Test: atest OverlayDeviceTests
# result is http://ab/I87000010106296791
Change-Id: I3327feafe297b697ae295e7a417cba581c482726
Diffstat (limited to 'libs/androidfw/AssetDir.cpp')
0 files changed, 0 insertions, 0 deletions