On LineageOS how to disable *Notifications on lock screen* *Show sensitive content* with `adb`?
Feb 14, 12:19am

To disable "Notifications on lock screen" and "Show sensitive content" on LineageOS using ADB, you can use the following commands:

  1. Disable notifications on the lock screen for all apps:

    bash
    adb shell settings put global lock_screen_show_notifications 0
  2. Disable sensitive content in notifications on the lock screen:

    bash
    adb shell settings put global lock_screen_allow_private_notifications 0

These commands will prevent notifications from appearing on the lock screen and hide sensitive content, respectively. Make sure your device is connected via ADB and that you have the necessary permissions.

If you want to control this on a per-app basis, you can use the appops command. For example, to prevent a specific app (e.g., com.example.app) from showing sensitive notifications on the lock screen:

bash
adb shell appops set com.example.app RECEIVE_SENSITIVE_NOTIFICATIONS deny

Replace com.example.app with the actual package name of the app you want to configure.

Would you like help finding the package name for a specific app?

Feb 14, 12:19am

This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.