How to make user stay logged in during tests

I’m trying to run a test suite using TestNG and i have to login the user everytime a new test begin. I want to login once and then run all the tests in the suite, without having to put all the methods in one class

It happens due to reset of app with default appium settings on driver start.

Use logic below to make start as you wish