Is there a way to turn on/off Sync with on{x} scripting?
Asked
Active
Viewed 144 times
1 Answers
2
According to the on{x} documentation, no.
You can turn on/off mobile data usage, using mobileDataEnabled(get; set;)
but that's probably not what you're looking for.
Actually, on second thought, you could write a native Android app that would receive a custom intent and toggle the sync setting, and then call that from on{x} using launch(String appName, Object params, Object callback)
. See the applications section of the on{x} docs for more on this.
...and general sync settings "auto-sync" checkbox programtically may help you with making such a native app.

Community
- 1
- 1

MalcolmOcean
- 2,807
- 2
- 29
- 38