An error occurred while fetching the assigned iteration of the selected issue.
Work Profile creation fails
Basic info
- Device: Pixel 6a
- CalyxOS version: 6.2.x
Brief description of the issue
When trying to create a work profile using the Work Profile app, the device soft reboots.
Steps to reproduce
- Open Work Profile app.
- Go through wizard of creating a new profile.
Expected result
Work Profile is created.
Actual result
Device soft reboots (CalyxOS boot animation appears).
Logs (if available, they make fixing much easier)
12-16 14:45:04.203 1000 7067 7067 D AndroidRuntime: Shutting down VM
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: FATAL EXCEPTION: main
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: Process: com.android.settings, PID: 7067
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver com.android.settings.fuelgauge.batteryusage.BatteryUsageBroadcastReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null object reference
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4862)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2476)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:109)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:232)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.os.Looper.loop(Looper.java:317)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8787)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null object reference
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at com.android.settingslib.fuelgauge.BatteryStatus.isCharged(BatteryStatus.java:172)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at com.android.settings.fuelgauge.batteryusage.BatteryUsageBroadcastReceiver.tryToFetchUsageData(BatteryUsageBroadcastReceiver.java:110)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at com.android.settings.fuelgauge.batteryusage.BatteryUsageBroadcastReceiver.onReceive(BatteryUsageBroadcastReceiver.java:82)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4853)
12-16 14:45:04.203 1000 7067 7067 E AndroidRuntime: ... 9 more
12-16 14:45:04.205 1000 6538 7104 W ActivityTaskManager: Not force finishing home activity com.android.settings/.FallbackHome
Screenshots (if any)
Insert screenshots here
Any other info
I thought this was an issue with my unofficial build, and it still might be, but users have been reporting it in the testing channel so it might be the same thing they are reporting.