As part of automating our android application there is a need to reset the app data (cache + account data). I noticed that there is driver.resetApp function that can be used for this purpose. It clears the app cache and preferences but it does not clear the account data, to be more specific the account data lives under Settings -> Accounts and our app.
We store the login credentials here for the user so that the user does not have to automatically login into our app.
This means that when the next test runs the user is already logged in and the test fails.
We can certainly use the fullReset capability but this would be our final option.
Can someone please let us know if it is possible to clear the data using appium API or adb shell?
Thank you
Haroon