I agree about the idea of closing the phone app automatically. seems rather obvious that that's what should happen when you end a call. the lock screen sounds good too.
unfortunately i dont have the know how to "write a daemon" - is it complex?
when your phone is locked and you receive a call, the screen will show you the normal caller-screen.
after taking the call and then ending it, the phone-app closes and locks the screen again.
when your phone is locked and you receive a call, the screen will show you the normal caller-screen.
after taking the call and then ending it, the phone-app closes and locks the screen again.
I think the OP is talking about the behaviour he would like when making outgoing calls.