Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3875ce09 authored by Chad Brubaker's avatar Chad Brubaker
Browse files

Add annotation for CHANGE_COMPONENT_ENABLED_STATE permission

Test: builds
Bug: 79583362
Change-Id: Id7259d22b24ffdd0506ede28cce7307bdc44bd9b
parent f7e7b1d3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5406,6 +5406,8 @@ public abstract class PackageManager {
     * @param newState The new enabled state for the component.
     * @param flags Optional behavior flags.
     */
    @RequiresPermission(value = android.Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE,
            conditional = true)
    public abstract void setComponentEnabledSetting(ComponentName componentName,
            @EnabledState int newState, @EnabledFlags int flags);

@@ -5433,6 +5435,8 @@ public abstract class PackageManager {
     * @param newState The new enabled state for the application.
     * @param flags Optional behavior flags.
     */
    @RequiresPermission(value = android.Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE,
            conditional = true)
    public abstract void setApplicationEnabledSetting(String packageName,
            @EnabledState int newState, @EnabledFlags int flags);