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

Commit f18937e3 authored by Anton Hansson's avatar Anton Hansson Committed by android-build-merger
Browse files

Merge "Installd: migrate legacy obb data when user 0 unlocks." into qt-dev

am: d4070aad

Change-Id: I67ce8da41dab43a5fd178d880812f725cad9a3da
parents 9939f83a d4070aad
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -121,6 +121,24 @@ public class Installer extends SystemService {
        }
    }

    @Override
    public void onUnlockUser(int userId) {
        if (userId == 0) {
            if (!checkBeforeRemote()) return;

            if (mInstalld == null) {
                Slog.wtf(TAG, "Call to onUnlockUser prior to onStart.");
                return;
            }

            try {
                mInstalld.migrateLegacyObbData();
            } catch (RemoteException re) {
                Slog.wtf(TAG, "Error migrating legacy OBB data.", re);
            }
        }
    }

    private void connect() {
        IBinder binder = ServiceManager.getService("installd");
        if (binder != null) {