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

Commit 07144bbf authored by Songchun Fan's avatar Songchun Fan
Browse files

[incremental] don't uninstall on unhealthy

Only uninstall on UNRECOVERABLE on USB.

BUG: 186468840
Test: atest android.cts.statsdatom.incremental.AppErrorAtomTests
Change-Id: I4bdb9b05658fe60795d5eac4ba9e111e39dffa2c
parent 72eee56f
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -3881,14 +3881,6 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
                @Override
                public void onHealthStatus(int storageId, int status) {
                    if (mDestroyed || mDataLoaderFinished) {
                        // App's installed.
                        switch (status) {
                            case IStorageHealthListener.HEALTH_STATUS_UNHEALTHY:
                                if (systemDataLoader) {
                                    onSystemDataLoaderUnrecoverable();
                                }
                                return;
                        }
                        return;
                    }