indiDing while its not exactly what you are asking for, at least with automate, while it still needs either root or adb access to achieve what you specifically want, you can instead just make a check, whether locationn service or internet is on. when its on, you could have a notification [even reminding you every 5 min or so], that you have the service on. when you have it off, you can make it so that it kills the app and you can again show yourself a notification that you need to enable internet/gps to use the app. i already use automate for tasks like these. you might find this as an acceptable workaround?