@grote ok, what's freaking funny is this act is required UPON TURNING ON DEVELOPER MODE. Imagine if you need to do this every time you need to turn off developer mode because some banking apps check for developer mode. THIS IS HORRIBLE.
If you want to limit app installation, don't limit developer mode. Adb is borderline not ok but still, something else. Maybe this is only required if you need to enable app install from untrusted sources apk.