i am sorry. I do not understand this. I want to do a similar thing in my car. i have a push button, which i used on raspbian to shutdown the system. I installed it on the GPIO3 so that it would be powerd on. This works on Android aswell. The shutdown on raspbian worked with a python script. I changed to android because I want to test spotify offline, Headunit reloaded etc. Could you please help me. I looked on google, but I am not really good at this kind of thing. Thank you