System alert related to battery application shows up often some time after i've flashed my system from MIUI 13 to MIUI 14 on my Xiaomi Mi 10 Ultra (cas), any solution?
Code:
This is the alert log:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.content.Context.getPackageManager()' on a null object reference
at com.miui.powerkeeper.utils.PackageUtil.getPackageNameByUid(Unknown Source:0)
at com.miui.powerkeeper.millet.MilletUidObserver.getPkgNameByUid(Unknown Source:20)
at com.miui.powerkeeper.millet.MilletUtils.setPkgData(Unknown Source:7)
at com.miui.powerkeeper.controller.FrozenAppController$AppStateFrozenControl.frozenAppLater(Unknown Source:57)
at com.miui.powerkeeper.controller.FrozenAppController$AppStateFrozenControl.handleEvent(Unknown Source:83)
at com.miui.powerkeeper.controller.FrozenAppController$AppStateFrozenControl.frozenAppNow(Unknown Source:183)
at com.miui.powerkeeper.controller.FrozenAppController$AppStateFrozenControl.handleEvent(Unknown Source:262)
at com.miui.powerkeeper.controller.FrozenAppController$8.run(Unknown Source:20)
at android.os.Handler.handleCallback(Unknown Source:2)
at android.os.Handler.dispatchMessage(Unknown Source:4)
at android.os.Looper.loopOnce(Unknown Source:182)
at android.os.Looper.loop(Unknown Source:82)
at android.os.HandlerThread.run(Unknown Source:28)
Last edited by a moderator: