OnePlus 5 SystemUI crashes on IKEv2 RSA VPN connection attempt
Expected Behavior
Android Built-in IKEv2 RSA VPN should connect normally.
Current Behavior
After creating a new VPN connection (of type IKEv2 RSA) with the built-in VPN connection UI, trying to connect results in first showing a username and password dialog (wich should not appear by the way, because of certificate only connection), and after confirming the SystemUI crashes and the Lock-Screen is shown! So no connection at all.
Logs
Logcat shows the following error at the event
01-11 17:12:02.558 1561 7058 I Vpn : Switched from [Legacy VPN] to [Legacy VPN]
01-11 17:12:02.558 1561 7058 D Vpn : setting state=DISCONNECTED, reason=prepare
01-11 17:12:02.559 1561 7058 D Vpn : setting state=CONNECTING, reason=startPlatformVpn
01-11 17:12:02.564 25944 25944 D AndroidRuntime: Shutting down VM
01-11 17:12:02.565 25944 25944 E AndroidRuntime: FATAL EXCEPTION: main
01-11 17:12:02.565 25944 25944 E AndroidRuntime: Process: com.android.systemui, PID: 25944
01-11 17:12:02.565 25944 25944 E AndroidRuntime: java.lang.IllegalArgumentException: Required parameter was not provided: User Identity
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:3015)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2995)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2978)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2920)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.net.IVpnManager$Stub$Proxy.startLegacyVpn(IVpnManager.java:949)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.net.VpnManager.startLegacyVpn(VpnManager.java:697)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at com.android.systemui.statusbar.policy.SecurityControllerImpl.connectLegacyVpn(SecurityControllerImpl.java:2)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at com.android.systemui.qs.tiles.VpnTile$$ExternalSyntheticLambda2.onClick(R8$$SyntheticClass:33)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:175)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7872)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at com.android.internal.util.Preconditions.checkStringNotEmpty(Preconditions.java:129)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.net.Ikev2VpnProfile.validate(Ikev2VpnProfile.java:207)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.net.Ikev2VpnProfile.<init>(Ikev2VpnProfile.java:189)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.net.Ikev2VpnProfile.<init>(Unknown Source:0)
01-11 17:12:02.565 25944 25944 E AndroidRuntime: at android.net.Ikev2VpnProfile$Builder.build(Ikev2VpnProfile.java:1114)
01-11 17:12:02.565 25944 25944 E AndroidRuntime:
01-11 17:12:02.565 25944 25944 I BufferEulogizer: Performing emergency dump of log buffers
01-11 17:12:02.641 25944 25944 I BufferEulogizer: Buffer eulogy took 76ms
01-11 17:12:02.646 1561 26870 I DropBoxManagerService: add tag=system_app_crash isTagEnabled=true flags=0x2
01-11 17:12:02.648 25944 25944 I Process : Sending signal. PID: 25944 SIG: 9
Steps to Reproduce
- Create new VPN connection with the built-in Android VPN of type IKEv2 RSA
- save it
- Try to connect
/device cheeseburger /version lineage-20 /date 2023-01-09 /kernel 4.4.302-perf+ #1 Mon Jan 9 02:31:18 UTC 2023 /baseband .c4.7-00070-8998_GEN_PACK-2.271073.1.277412.1 /mods Google Apps
I have read the directions.