Chosen Solution
I had change my battery in my phone (huawei g8) when I plug in the charger it doesn’t charge it will automatically on and repeat the same but not charging I put on charging for half day it doesn’t charge it keep on power on and off and repeating
IMO there´s an issue in power managment. Replace your battery with a new one and test it again.