[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] DoctorZimmerman:
I've found a bug, which causes a crash as soon as I tap on "Mobile Network".

The only thing I did was to set the prefered network type to a different one.

I wanted to use USB-Tethering with the given network type (edge is rly bad) so i wanted to set it to H+ or LTE as prefered type.

--------- beginning of crash
11-16 14:43:59.336 3463 3463 E AndroidRuntime: FATAL EXCEPTION: main
11-16 14:43:59.336 3463 3463 E AndroidRuntime: Process: com.android.phone, PID: 3463
11-16 14:43:59.336 3463 3463 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.MobileNetworkSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2914)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:106)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:193)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6680)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
11-16 14:43:59.336 3463 3463 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.os.Parcel.createException(Parcel.java:1956)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1918)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1868)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.net.INetworkStatsSession$Stub$Proxy.getHistoryForNetwork(INetworkStatsSession.java:326)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.settingslib.net.DataUsageController.getDataUsageInfo(DataUsageController.java:134)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.phone.DataUsagePreference.initialize(DataUsagePreference.java:57)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.updateBodyBasicFields(MobileNetworkSettings.java:914)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.updateBody(MobileNetworkSettings.java:952)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.initializeSubscriptions(MobileNetworkSettings.java:622)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.onActivityCreated(MobileNetworkSettings.java:809)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.Fragment.performActivityCreated(Fragment.java:2531)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1318)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2426)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2205)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2161)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2062)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3051)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2998)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:182)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.Activity.performCreate(Activity.java:7151)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.Activity.performCreate(Activity.java:7135)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2894)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	... 11 more
11-16 14:43:59.336 3463 3463 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.server.net.NetworkStatsService.internalGetHistoryForNetwork(NetworkStatsService.java:730)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.server.net.NetworkStatsService.access$700(NetworkStatsService.java:157)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at com.android.server.net.NetworkStatsService$1.getHistoryForNetwork(NetworkStatsService.java:611)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.net.INetworkStatsSession$Stub.onTransact(INetworkStatsSession.java:109)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:	at android.os.Binder.execTransact(Binder.java:731)
11-16 14:43:59.336 3463 3463 E AndroidRuntime:
11-16 14:43:59.330 693 693 I chatty : uid=1000(system) /vendor/bin/spdaemon identical 11 lines
11-16 14:43:59.340 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.350 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.360 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.361 2849 2866 I chatty : uid=1000 system_server expire 32 lines
11-16 14:43:59.371 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.391 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.401 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.412 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.433 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.443 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.453 693 693 D spcomlib: [spcom_is_sp_subsystem_link_up] skp dev-node doesn't exist.
11-16 14:43:59.463 693 693 E spdaemon: Timeout wait for SP link UP.
11-16 14:43:59.464 693 693 E spdaemon: wait_for_sp_link_up failed. ret [-110].
11-16 14:43:59.464 693 693 E spdaemon: Loading SP Apps failed. ret [-110].
11-16 14:43:59.464 693 693 D spdaemon: going to sleep for a day.
11-16 14:44:01.487 5992 6046 I chatty : uid=1001(radio) com.android.phone expire 4 lines
11-16 14:44:03.774 5992 5992 E AndroidRuntime: FATAL EXCEPTION: main
11-16 14:44:03.774 5992 5992 E AndroidRuntime: Process: com.android.phone, PID: 5992
11-16 14:44:03.774 5992 5992 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.MobileNetworkSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2914)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:106)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:193)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6680)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
11-16 14:44:03.774 5992 5992 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.os.Parcel.createException(Parcel.java:1956)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1918)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1868)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.net.INetworkStatsSession$Stub$Proxy.getHistoryForNetwork(INetworkStatsSession.java:326)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.settingslib.net.DataUsageController.getDataUsageInfo(DataUsageController.java:134)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.phone.DataUsagePreference.initialize(DataUsagePreference.java:57)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.updateBodyBasicFields(MobileNetworkSettings.java:914)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.updateBody(MobileNetworkSettings.java:952)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.initializeSubscriptions(MobileNetworkSettings.java:622)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.phone.MobileNetworkSettings$MobileNetworkFragment.onActivityCreated(MobileNetworkSettings.java:809)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.Fragment.performActivityCreated(Fragment.java:2531)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1318)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2426)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2205)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2161)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2062)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3051)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2998)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:182)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.Activity.performCreate(Activity.java:7151)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.Activity.performCreate(Activity.java:7135)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2894)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	... 11 more
11-16 14:44:03.774 5992 5992 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.server.net.NetworkStatsService.internalGetHistoryForNetwork(NetworkStatsService.java:730)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.server.net.NetworkStatsService.access$700(NetworkStatsService.java:157)
11-16 14:44:03.774 5992 5992 E AndroidRuntime:	at com.android.server.net.NetworkStatsService$1.getHistoryForNetwork(NetworkStatsService.java:611)
11-16 14:44:03.775 5992 5992 E AndroidRuntime:	at android.net.INetworkStatsSession$Stub.onTransact(INetworkStatsSession.java:109)
11-16 14:44:03.775 5992 5992 E AndroidRuntime:	at android.os.Binder.execTransact(Binder.java:731)
11-16 14:44:03.775 5992 5992 E AndroidRuntime:
11-16 14:44:03.786 2849 2867 I chatty : uid=1000 system_server expire 2 lines
11-16 14:44:06.930 6194 6194 I chatty : uid=1001(radio) com.android.phone expire 62 lines
11-16 14:44:07.472 2849 2859 I chatty : uid=1000 system_server expire 2 lines
11-16 14:44:07.798 6194 6240 I chatty : uid=1001(radio) com.android.phone expire 5 lines
11-16 14:44:07.940 2849 3515 I chatty : uid=1000 system_server expire 21 lines
11-16 14:44:08.034 2416 2416 I wificond: Unexpected empty scan result!

the other error which occoured had todo with NetworkStatHistory (it shows negative traffic limit warning lol (-2.09TB):

11-16 14:52:38.258 11252 11355 W NetworkPolicy: Failed to read network stats: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference
11-16 14:52:38.259 13578 13613 D IncomingMessageObserver: Network requirement: true, app visible: false, gcm disabled: false
11-16 14:52:38.264 11252 11355 I chatty : uid=1000(system) NetworkPolicy identical 1 line
11-16 14:52:38.270 11252 11355 W NetworkPolicy: Failed to read network stats: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference
11-16 14:52:38.293 11252 11363 W MultipathPolicyTracker: Failed to get data usage: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference
11-16 14:52:38.331 11252 11363 I chatty : uid=1000(system) ConnectivitySer identical 4 lines
11-16 14:52:38.332 11252 11363 W MultipathPolicyTracker: Failed to get data usage: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.NetworkStatsHistory com.android.server.net.NetworkStatsCollection.getHistory(android.net.NetworkTemplate, android.telephony.SubscriptionPlan, int, int, int, int, long, long, int, int)' on a null object reference