Turn on android phone when charger is connected- build app or executable script

Job ID: 34964784

Budget: ₹1,500 – ₹12,500 INR

I need to turn on my phone on as soon as power supply i.e. charger is connected without using any power buttons. Initially phone remains in switched off condition, when charger is plugged in it will be turned on, root app is allowed, it must support android 7.1, device is xiaomi redmi 4x