Before we start this reply, sorry if the reply is a bit too long, I kinda have the habit to always explain what exactly my stuff is doing xD
- - - - -
That's weird, especially since I'm not touching the android default shutdown at all, and that's what's triggered when battery is low, or when you press stuff in the original menu (and also I still don't get why lg seems to not use the normal function to show the power menu)
My module is hooking into the "showDialog" of the GlobalActionsDialog class, which is the stock power menu, the actual stock reboot process tho is in the ShutdownThread class, I was trying stuff with that class, but absolutely none of my test stuff is in the public releases, so I don't think my module is really the cause of this...
And since you're able to bring up the stock menu, my other hooks into the GlobalActionsDialog class are also ignored, and I also didn't changed them in that update (LG seems to somehow have it's complete own class for the dialog )
But anyways, I would need a logcat to look into it if it's containing something about what's happening :T
Also I can't reproduce it on my phone as my phones never doing the low battery shutdown because of broken battery, and I also can't show the stock menu on it
Many words, totally wrong. ? You rape com.android.server.power.ShutdownThread. Rebuild the function to stop displaying the default shutdown loading dialog.
11-24 20:11:45.962 I/Xposed ( 1675): [NeoPowerMenu] Loading Power Menu...
11-24 20:11:45.962 I/Xposed ( 1675): [NeoPowerMenu] Detected 5.0.2(21), injecting to:
11-24 20:11:45.962 I/Xposed ( 1675): [NeoPowerMenu] com.android.internal.policy.impl.GlobalActions
11-24 20:11:45.962 I/Xposed ( 1675): [NeoPowerMenu] com.android.internal.policy.impl.PhoneWindowManager
11-24 20:11:45.962 I/Xposed ( 1675): [NeoPowerMenu] com.android.server.power.ShutdownThread
11-24 20:11:45.962 I/Xposed ( 1675): [NeoPowerMenu] com.android.server.pm.PackageManagerService
11-24 20:11:45.968 I/Xposed ( 1675): [NeoPowerMenu] Getting permissions, using method for lollipop and above...
11-24 20:11:45.974 I/Xposed ( 1675): [NeoPowerMenu] Permission request hooked.
11-24 20:11:45.974 I/Xposed ( 1675): [NeoPowerMenu] Hooking (replace) com.android.internal.policy.impl.GlobalActions Constructor...
11-24 20:11:45.975 I/Xposed ( 1675): [NeoPowerMenu] Registering Broadcast Receiver and setting other values...
11-24 20:11:45.976 I/Xposed ( 1675): [NeoPowerMenu] Hooking (replace) com.android.internal.policy.impl.GlobalActions#showDialog...
11-24 20:11:45.978 I/Xposed ( 1675): [NeoPowerMenu] Replaced with showDialog(), just executing startActivity() to start my own dialog.
11-24 20:11:45.979 I/Xposed ( 1675): [NeoPowerMenu] Hooking (replace) com.android.internal.policy.impl.GlobalActions#createDialog...
11-24 20:11:45.982 I/Xposed ( 1675): [NeoPowerMenu] Replaced with empty method to prevent crashes.
11-24 20:11:45.983 I/Xposed ( 1675): [NeoPowerMenu] Hooking (replace) com.android.internal.policy.impl.GlobalActions#onAirplaneModeChanged...
11-24 20:11:45.985 I/Xposed ( 1675): [NeoPowerMenu] Replaced with empty method to prevent crashes.
11-24 20:11:45.985 I/Xposed ( 1675): [NeoPowerMenu] Hooking (after) com.android.server.power.ShutdownThread constructor...
11-24 20:11:45.986 I/Xposed ( 1675): [NeoPowerMenu] Getting needed values...
11-24 20:11:45.986 I/Xposed ( 1675): [NeoPowerMenu] Hooking (after) com.android.server.power.ShutdownThread#beginShutdownSequence...
11-24 20:11:45.987 I/Xposed ( 1675): [NeoPowerMenu] Rebuild the function to stop displaying the default shutdown loading dialog...
11-24 20:11:45.987 I/Xposed ( 1675): [NeoPowerMenu] Loading complete, all hooks executed.