Thanks for your response but to explain why edge or automation app won't help - I am looking to adjust the "auto brightness level (1 to 8)" under brightness settings,when the app is in forground
(Haven't explored edge fully and use MacroDroid and instead of Tasker)
Well i don't like tasker so i don't know much about it.
But xposed edge as a per app action (background foreground visible etc... ) you can set everything you want when app is in a particular state and even multiple action.
After that the app have lot of options and possibility and its simple to make it work.
But for what you're asking as I'm using GravityBox and Xposed edge modules. I can tell you that edge can do exactly what you want without complexity.