I am seeking ways to disable installing apps with APK, i.e. make the setting "Allow apps from unknown sources" password-protected or disable completely for user. Is there a way? Maybe it's possible from adb shell?
I am running LinageOS 13 on Lenovo Vibe A Plus and can flash 14.1 if needed.