I have rooted HTC 10 on Marshmallow 6.0.1 and have Xposed Framework installed with the module Smart Network which is supposed to do this, but it does not work, apparently because whenever turning off data, a popup message appears which you can only manually turn off. Does anybody know of a way to disable the popup message or know of any other way to automatically turn off data when the screen goes off, and then have the data turn on when the screen turns back on?