Updater app crashes when starting to install update for LineageOS 20 with error: Could not change profiles
Expected Behavior
After downloading the latest update, clicking Install should install it.
Current Behavior
The updater app crashes and closes when clicking install.
Workarounds
As suggested by @BadDaemon, disabling high-priority updates ("Prioritize Update Process" toggle) resolves the issue.
Failed Work-Arounds
I tried the following actions, which did not resolve the issue:
- Try updating multiple times
- Force close the updater app, reopen it, and try installing again
- Deleting and re-downloading the latest installation
- Rebooting my phone
Logs
The core error appears to be this:
01-11 09:37:29.636 1130 1130 E update_engine: [ERROR:update_attempter_android.cc(-1)] unknown(...): Domain=update_engine, Code=generic_error, Message=Could not change profiles
01-11 09:37:29.637 1130 1130 E update_engine: [ERROR:update_attempter_android.cc(91)] Replying with failure: pc:0x56e3fc7f00: Could not change profiles
01-11 09:37:29.638 17403 17403 D AndroidRuntime: Shutting down VM
--------- beginning of crash
01-11 09:37:29.639 17403 17403 E AndroidRuntime: FATAL EXCEPTION: main
01-11 09:37:29.639 17403 17403 E AndroidRuntime: Process: org.lineageos.updater, PID: 17403
01-11 09:37:29.639 17403 17403 E AndroidRuntime: java.lang.RuntimeException: Unable to start service org.lineageos.updater.controller.UpdaterService@51d57fe with Intent { act=action_install_update cmp=org.lineageos.updater/.controller.UpdaterService (has extras) }: android.os.ServiceSpecificException: Could not change profiles (code 1)
Attached is a logcat.txt log file; you can see this stack trace starting around line ~145.
Possible Solution
Updating is a core part of maintaining security.
Steps to Reproduce
- Open Settings
- Click on System > Updater
- Download the January 8, 2023 build of LineageOS 20.0
- Click Install
/device river /version 20-20230101-NIGHTLY-river /date 2022-12-05 /kernel 4.9.333-perf+ /baseband M632_11.47.01.85R /mods Google Apps
I have read the directions.
Edited by BadDaemon