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

Commit 70650a57 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add annotation for CHANGE_COMPONENT_ENABLED_STATE permission"

parents 8c30819b 3875ce09
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);