How to optimize android studio7

help me figure it out, I have a certain problem with impersonating my mobile phone, I do not know how to configure it so that there would not be any problems with android studio