diff options
| author | 2022-09-19 13:06:23 +0800 | |
|---|---|---|
| committer | 2022-11-30 00:49:42 +0800 | |
| commit | 1cbf6fbbb4835f97b9fd6ad6814966c01bdeeba3 (patch) | |
| tree | ff00252c8b40d5a345f65a7808e55de5daf0f82b /libs/androidfw/AssetsProvider.cpp | |
| parent | 77eb98c8ac71097229bd95680c21b63ab6e388aa (diff) | |
Let self-targeting apps be able access OverlayManager
Self-targeting apps can't get an OverlayManager instance without the
system privilege.  This patch makes sure that the self-targeting
application can get an OverlayManager instance via Context.
```
OverlayManager overlayManager =
         context.getSystemService(OverlayManager.class);
```
In order to make the self-targeting feature compatible in the future,
this patch adds SELF_TARGETING_OVERLAY compatibility feature.
Test: atest \
          OverlayHostTests \
          OverlayDeviceTests \
          SelfTargetingOverlayDeviceTests \
          OverlayRemountedTest \
          FrameworksServicesTests:com.android.server.om \
          CtsContentTestCases:android.content.om.cts \
          idmap2_tests
Bug: 205919743
Change-Id: Ib0b619a2a54e22d31e6c14bf700e421688b6f506
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions