Disable permission to display over apps without app knowing [ROOT]


I am a driver with UberEats and when i get a new request, it doesnt show where the destination is before i accept the order and pick it up from the restaurant.

I found a way around this by disabling the permission for the app to draw over other applications. This prevents it from showing the requests normally and allows me to open the app and see the destination.

However, each time i want to go online in the app, i have to enable the permission, go online then disable it again, since the app checks for that permission.

Is there a way to disable that permission without the app knowing?

Android 10, Oneplus Nord, stock ROM, rooted with magisk.