New System alert


Mackbet

Members
Nov 14, 2022
6
13
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:
I know there is a function on advanced option of TWRP, but when i get there to "repair context" it warn me with a red line telling me that if i use this function it may be brick my phone.... like i would have problem with starting my device...... what should i do to fix this problem?
Thank you in advance for anyone to answer me.