See the wiki (https://wiki.lineageos.org/signing_builds.html) for more information Do not reboot/restart after the migration without installing the new build. Note: official builds can have packages signed with test-keys (e.g. com.android.cts.priv.ctsshim). This script will incorrectly replace the key of these packages when going from unofficial to official. Change-Id: Idc3414ec6cd1d51e8da61ac797833a553d9f98b5