I'm running my Samsung S10e with Lineageos 19.1 and I'm using the multi user feature. Now I'm looking for a way to logout non main users to prevent applications from running in the background. Is there a way to get a user logout functionality?
According to https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setLogoutEnabled(android.content.ComponentName,%20boolean), there is user logout available when using android admin.
is there a way to apply this locally for example by adb shell?