How to get rid of "Battery not charging dialog"?
I disabled similar thing in Xperia Z1 with GravityBox as I remember, it is a module for Xposed Framework, you will need to be rooted to do those things..