Open Android Date Settings: Intent android.provider.Settings.ACTION_DATE_SETTINGS


I’m trying to find a solution to open the Android intent android.provider.Settings.ACTION_DATE_SETTINGS to allow me to change device time before test suite starts.

I can successfully open the intent locally using an adb command adb shell am start -a android.settings.DATE_SETTINGS (appium --relaxed-security is set when starting appium server). ADB shell commands do not work on Device Farm, so I am looking for another method.

I can open the root settings page with the following, but I want to be able to open the Date Settings:

    val settingsActivity = Activity("", ".Settings")
    val androidDriver = driver as AndroidDriver

Any help would be appreciated.