[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] cor35vet:
Been using this ROM for the past month and am pretty happy with it.

Dirty flashed from RevengeOS (Android 10) to PE+ 11

There is an annoying bug however that I can't go into Settings -> System:

04-15 17:09:14.090 13641 13641 E AndroidRuntime: FATAL EXCEPTION: main
04-15 17:09:14.090 13641 13641 E AndroidRuntime: Process: com.android.settings, PID: 13641
04-15 17:09:14.090 13641 13641 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.containsKey(java.lang.String)' on a null object reference
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3431)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7660)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.containsKey(java.lang.String)' on a null object reference
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settingslib.drawer.Tile.getTitle(Tile.java:189)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.dashboard.DashboardFeatureProviderImpl.bindTitleAndGetObserver(DashboardFeatureProviderImpl.java:227)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.dashboard.DashboardFeatureProviderImpl.bindPreferenceToTileAndGetObservers(DashboardFeatureProviderImpl.java:135)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.dashboard.DashboardFragment.refreshDashboardTiles(DashboardFragment.java:511)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.dashboard.DashboardFragment.refreshAllPreferences(DashboardFragment.java:438)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.dashboard.DashboardFragment.onCreatePreferences(DashboardFragment.java:184)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.preference.PreferenceFragmentCompat.onCreate(PreferenceFragmentCompat.java:161)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settingslib.core.lifecycle.ObservablePreferenceFragment.onCreate(ObservablePreferenceFragment.java:61)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.SettingsPreferenceFragment.onCreate(SettingsPreferenceFragment.java:128)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.dashboard.DashboardFragment.onCreate(DashboardFragment.java:152)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.system.SystemDashboardFragment.onCreate(SystemDashboardFragment.java:49)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.Fragment.performCreate(Fragment.java:2883)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:484)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1312)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1477)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1246)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentTransition.calculateFragments(FragmentTransition.java:1128)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentTransition.startTransitions(FragmentTransition.java:135)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2112)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2055)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1957)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executePendingTransactions(FragmentManager.java:572)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:586)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.SettingsActivity.launchSettingFragment(SettingsActivity.java:374)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:282)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8000)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7984)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3404)
04-15 17:09:14.090 13641 13641 E AndroidRuntime: ... 11 more

Probably has to do with dirty flashing?

Does someone here know of a fix?

And I also had an issue today which killed my phone completely....

Had to tether because my internet died and made a phone call to my ISP, after a few minutes into the call the phone rebooted and wouldn't get past the Google boot logo anymore.

logcat was spamming tons of:

04-15 13:14:39.263 18057 18057 E AndroidRuntime: FATAL EXCEPTION: main
04-15 13:14:39.263 18057 18057 E AndroidRuntime: Process: .dataservices, PID: 18057
04-15 13:14:39.263 18057 18057 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause
04-15 13:14:44.674 18272 18306 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.bg
04-15 13:14:44.674 18272 18306 E AndroidRuntime: java.lang.IllegalArgumentException: tried recording negative data
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at android.net.NetworkStatsHistory.recordData(NetworkStatsHistory.java:342)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at android.net.NetworkStatsHistory.recordHistory(NetworkStatsHistory.java:416)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at android.net.NetworkStatsHistory.recordEntireHistory(NetworkStatsHistory.java:392)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.net.NetworkStatsCollection.recordHistory(NetworkStatsCollection.java:420)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.net.NetworkStatsCollection.read(NetworkStatsCollection.java:484)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.net.NetworkStatsCollection.read(NetworkStatsCollection.java:458)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.internal.util.FileRotator.readFile(FileRotator.java:373)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.internal.util.FileRotator.readMatching(FileRotator.java:297)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.net.NetworkStatsRecorder.loadLocked(NetworkStatsRecorder.java:189)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.net.NetworkStatsRecorder.getOrLoadCompleteLocked(NetworkStatsRecorder.java:170)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.net.NetworkStatsService$1.getUidComplete(NetworkStatsService.java:677)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.net.NetworkStatsService$1.getSummaryForAllUid(NetworkStatsService.java:721)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.stats.pull.StatsPullAtomService.getUidNetworkStatsSnapshotForTemplate(StatsPullAtomService.java:1223)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.stats.pull.StatsPullAtomService.getUidNetworkStatsSnapshotForTransport(StatsPullAtomService.java:1201)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.stats.pull.StatsPullAtomService.collectNetworkStatsSnapshotForAtom(StatsPullAtomService.java:1007)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.stats.pull.StatsPullAtomService.initAndRegisterNetworkStatsPullers(StatsPullAtomService.java:850)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.stats.pull.StatsPullAtomService.lambda$onBootPhase$1$StatsPullAtomService(StatsPullAtomService.java:682)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at com.android.server.stats.pull.-$$Lambda$StatsPullAtomService$w2J9UcZX1E4P1ogWSvuoTC2auDE.run(Unknown Source:2)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
04-15 13:14:44.674 18272 18306 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)

Kept on hitting this exception: https://github.com/LineageOS/androi...ava/android/net/NetworkStatsHistory.java#L342 and wouldn't boot because of it.

So I've recompiled the ROM and replaced the throw with a simple return lol.

diff --git a/core/java/android/net/NetworkStatsHistory.java b/core/java/android/net/NetworkStatsHistory.java
index 3c1b86b9f19..73a03b24faf 100644
--- a/core/java/android/net/NetworkStatsHistory.java
+++ b/core/java/android/net/NetworkStatsHistory.java
@@ -339,7 +339,7 @@ public class NetworkStatsHistory implements Parcelable {
long operations = entry.operations;

if (entry.isNegative()) {
- throw new IllegalArgumentException("tried recording negative data");
+ return;
}
if (entry.isEmpty()) {
return;

Phone works fine again now xd

Got this nice data warning after it booted again (see attached image)

I definitely did not use that much data though ...

Edit: Well crap my self built image doesn't pass SafetyNet, both basicIntegrity and ctsProfile fail...

Followed https://wiki.pixelexperience.org/devices/dipper/build/ which builds with test-keys, could this be the reason for it? How do I switch to using release-keys?