Texting and phonecall permission denied

I am using "call texting.sendmessage" and "call phonecall.makephonecall", got erro messages (PROCESS_OUTGOING_CALLS permission denied and READ_CALL_LOG permission denied plus another one about phone state or sth like that) when testing with aiaccompanion on real device (android 10) even before i pressed the buttons to send text or make a call. It asks me to change permissions in setting. Then I allowed the alcompanion app for phone and SMS in setting, but i still have the error messages. How do you fix this problem? Thanks

A post was merged into an existing topic: permission.PROCESS_OUTGOING_CALLS google reject

duplicate post - again...