Google has removed all of the UI from the OS to change this setting, but it's still changeable in other ways.
If an app has the WRITE_SECURE_SETTINGS permission, it can do this by calling Settings.Secure.putInt(contentResolver, Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING);. The Tiles app in the Google Play Store includes a ...
While I found no solution using SSHelper, it is indeed possible using Termux and the Termux-API. No root is required.
After installing the Termux app, one has to install the Termux-packages openssh and termux-api:
$ pkg install openssh
$ pkg install termux-api
I also had to install the Termux-API app from Playstore or F-Droid to get it working.
The sshd ...