Invalid Sound Settings crash on Poco F2 Pro Weekly 21.3.31


Grohhle

Members
Apr 6, 2021
5
15
Hi! Im experiencing this error when trying to enter into sound settings:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.MiuiSoundSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.settings.dndmode.Alarm$DaysOfWeek.getCoded()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(Unknown Source:663)
at android.app.ActivityThread.handleLaunchActivity(Unknown Source:47)
at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:67)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:77)
at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:73)
at android.app.ActivityThread$H.handleMessage(Unknown Source:52)
at android.os.Handler.dispatchMessage(Unknown Source:19)
at android.os.Looper.loop(Unknown Source:249)
at android.app.ActivityThread.main(Unknown Source:134)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
at com.android.internal.os.ZygoteInit.main(Unknown Source:313)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.settings.dndmode.Alarm$DaysOfWeek.getCoded()' on a null object reference
at com.android.settings.MiuiSoundSettings.refreshZenRuleSettings(Unknown Source:108)
at com.android.settings.MiuiSoundSettings.onCreate(Unknown Source:343)
at android.app.Fragment.performCreate(Unknown Source:13)
at android.app.FragmentManagerImpl.moveToState(Unknown Source:359)
at android.app.FragmentManagerImpl.addAddedFragments(Unknown Source:46)
at android.app.FragmentManagerImpl.executeOpsTogether(Unknown Source:129)
at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(Unknown Source:99)
at android.app.FragmentManagerImpl.execPendingActions(Unknown Source:21)
at android.app.FragmentManagerImpl.executePendingTransactions(Unknown Source:0)
at com.android.settings.SettingsActivity.switchToFragment(Unknown Source:253)
at com.android.settings.SettingsActivity.launchSettingFragment(Unknown Source:35)
at com.android.settings.SettingsActivity.onCreate(Unknown Source:249)
at com.android.settings.MiuiSoundSettingsActivity.onCreate(Unknown Source:0)
at android.app.Activity.performCreate(Unknown Source:81)
at android.app.Activity.performCreate(Unknown Source:1)
at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)
at android.app.ActivityThread.performLaunchActivity(Unknown Source:399)
... 11 more



Anyone wonders what could be?
Thanks in advance :D
 
Settings were restored from a Google backup it looks like, possibly a backup that was made on a previous Stable ROM.
You'd have to factory reset and setup your device without restoring the Google backup.
 
  • Like
Reactions: Grohhle