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

Commit d4070aad authored by Anton Hansson's avatar Anton Hansson Committed by Android (Google) Code Review
Browse files

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

parents b4834139 eeb7d8f0
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) {