OverlayManager Fabricated RROs
Adds registering and unregistering of FabricatedOverlay to the OMS. The process that creates the fabricated overlays owns it and is the only process allowed to unregister it. When a fabricated overlay is registered, overlay settings for it are initialized in all users. When a fabricated overlay is unregistered, it is disabled and removed from all users. When a new user is created, it will be able to use the fabricated overlay as well. On boot, fabricated overlays that are not referenced in overlay settings will be deleted. When the package that created the fabricated overlay is uninstalled, its fabricated overlays are also unregistered. Bug: 172471315 Test: atest OverlayDeviceTests Change-Id: I0539656f4c919246b13129579b0286c08a398dc2
Showing
- Android.bp 1 addition, 0 deletionsAndroid.bp
- cmds/idmap2/Android.bp 23 additions, 9 deletionscmds/idmap2/Android.bp
- cmds/idmap2/idmap2d/Idmap2Service.cpp 143 additions, 11 deletionscmds/idmap2/idmap2d/Idmap2Service.cpp
- cmds/idmap2/idmap2d/Idmap2Service.h 17 additions, 2 deletionscmds/idmap2/idmap2d/Idmap2Service.h
- cmds/idmap2/idmap2d/aidl/core/android/os/FabricatedOverlayInfo.aidl 28 additions, 0 deletions...2/idmap2d/aidl/core/android/os/FabricatedOverlayInfo.aidl
- cmds/idmap2/idmap2d/aidl/core/android/os/FabricatedOverlayInternal.aidl 30 additions, 0 deletions...map2d/aidl/core/android/os/FabricatedOverlayInternal.aidl
- cmds/idmap2/idmap2d/aidl/core/android/os/FabricatedOverlayInternalEntry.aidl 26 additions, 0 deletions.../aidl/core/android/os/FabricatedOverlayInternalEntry.aidl
- cmds/idmap2/idmap2d/aidl/services/android/os/IIdmap2.aidl 9 additions, 1 deletioncmds/idmap2/idmap2d/aidl/services/android/os/IIdmap2.aidl
- cmds/idmap2/idmap2d/aidl/services/android/os/OverlayablePolicy.aidl 0 additions, 0 deletions...2/idmap2d/aidl/services/android/os/OverlayablePolicy.aidl
- cmds/idmap2/include/idmap2/FabricatedOverlay.h 3 additions, 1 deletioncmds/idmap2/include/idmap2/FabricatedOverlay.h
- cmds/idmap2/include/idmap2/FileUtils.h 3 additions, 0 deletionscmds/idmap2/include/idmap2/FileUtils.h
- cmds/idmap2/include/idmap2/ResourceContainer.h 1 addition, 0 deletionscmds/idmap2/include/idmap2/ResourceContainer.h
- cmds/idmap2/libidmap2/FabricatedOverlay.cpp 11 additions, 6 deletionscmds/idmap2/libidmap2/FabricatedOverlay.cpp
- cmds/idmap2/libidmap2/FileUtils.cpp 15 additions, 0 deletionscmds/idmap2/libidmap2/FileUtils.cpp
- cmds/idmap2/libidmap2/ResourceContainer.cpp 9 additions, 1 deletioncmds/idmap2/libidmap2/ResourceContainer.cpp
- core/java/android/content/om/CriticalOverlayInfo.java 5 additions, 0 deletionscore/java/android/content/om/CriticalOverlayInfo.java
- core/java/android/content/om/FabricatedOverlay.java 126 additions, 0 deletionscore/java/android/content/om/FabricatedOverlay.java
- core/java/android/content/om/IOverlayManager.aidl 1 addition, 1 deletioncore/java/android/content/om/IOverlayManager.aidl
- core/java/android/content/om/OverlayInfo.java 31 additions, 3 deletionscore/java/android/content/om/OverlayInfo.java
- core/java/android/content/om/OverlayManagerTransaction.java 59 additions, 3 deletionscore/java/android/content/om/OverlayManagerTransaction.java
Loading
Please register or sign in to comment