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.

  • Work Profile or Fully-Managed device. Dec 6 '20 at 15:11
  • Could you please elaborate more your idea? I searched and found nothing like work profile on LineageOS, only system profile
    – Suncatcher
    Dec 6 '20 at 16:29
  • 1
    It's a corporate level solution. If you are not already familiar with it, it's certainly not for you: duckduckgo.com/…. You can try some other solutions already suggested in similar questions: android.stackexchange.com/…. But I don't think any universal reliable solution exists. Dec 6 '20 at 17:29
  • yes, corporate solutions are definitely an overkill for this task, I considered to utilize Lineage builtin functionality
    – Suncatcher
    Dec 6 '20 at 19:35

I feel I found solution to my problem. Though it is not exactly what is in the question title, but it is perfectly does the job.

In the LineageOS there is a special setting that is located in Settings>Privacy, it is called Protected apps

enter image description here

In this applet you can specify any app and protect it with pattern.

enter image description here Any, including Settings app, which fully covers my needs. If the user cannot enter the settings he cannot install APK as well

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.