To disable "Notifications on lock screen" and "Show sensitive content" on LineageOS using ADB, you can use the following commands:
Disable notifications on the lock screen for all apps:
bashadb shell settings put global lock_screen_show_notifications 0
Disable sensitive content in notifications on the lock screen:
bashadb 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:
bashadb 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?