How to install app and don't reinstall it for each test(for configuration skipping)

Hi there!
I’m just started to write test and notice that application automatically uninstalls after each @Test. In that situation I need
Reconfigure my device each before each step.- get all permission^ click on few dialog boxes, then login etc…
What I need is install an app first, then after each test just reopen an app.
I see advice like add this capability in @BeforeMethod section:
But it don’t work for me, because i need to install app first, and i can’t do it by hand because I run tests in a cloud

In Otherwords, I need to install an app(without manually doing it) and don’t reinstall it after each test.

@Ivan_Litvinov try Different capabilities for different scenarios