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

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

Merge "Allow shell to enable/disable individual component in test package"

parents 9e296952 13810374
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -18100,8 +18100,10 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
        }
        synchronized (mPackages) {
            if (uid == Process.SHELL_UID) {
            if (uid == Process.SHELL_UID
                    && (pkgSetting.pkgFlags & ApplicationInfo.FLAG_TEST_ONLY) == 0) {
                // Shell can only change whole packages between ENABLED and DISABLED_USER states
                // unless it is a test package.
                int oldState = pkgSetting.getEnabled(userId);
                if (className == null
                    &&