Can this be done in Rule Machine?

Device Check Plus will do most of what your looking for.

Attempting to 'fix' the device is a great idea and something I could look into.