java.lang.SecurityException: Permission Denial: killBackgroundProcesses() from pid=10542, uid=10433 requires android.permission.KILL_BACKGROUND_PROCESSES

tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • UserManager getUserCount() (Jelly Bean)
    via Stack Overflow by Kedi
    ,
  • Fatal exception error
    via Stack Overflow by user2850116
    ,
  • Dealing with Download Listener in Android
    via Stack Overflow by Alok Kumar
    ,
  • securityexception
    via by Unknown author,
    • java.lang.SecurityException: Permission Denial: killBackgroundProcesses() from pid=10542, uid=10433 requires android.permission.KILL_BACKGROUND_PROCESSES at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.ActivityManagerProxy.killBackgroundProcesses(ActivityManagerNative.java:5523) at android.app.ActivityManager.killBackgroundProcesses(ActivityManager.java:2766) at com.wenming.weiswift.ui.login.fragment.profile.setting.SettingActivity$5.onCheckedChanged(SettingActivity.java:118) at android.widget.CompoundButton.setChecked(CompoundButton.java:165) at android.widget.CompoundButton.toggle(CompoundButton.java:118) at android.widget.CompoundButton.performClick(CompoundButton.java:123) at android.view.View$PerformClick.run(View.java:22526) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:134)

    Users with the same issue

    filipebatista
    filipebatista8 times, last one,
    Hiren Amaliyar
    Hiren Amaliyar8 times, last one,
    Aravind
    Aravind86 times, last one,
    Indri Yunita
    Indri Yunita199 times, last one,
    Unknown User
    Unknown User4 times, last one,
    229 more bugmates