Android M 6.0 - SecurityException Trying to remove accounts
问题 I have an app that uses Android AccountManager (package name: com.mycompany.accounts), that adds accounts to the device and provides a login screen. I have another app (com.mycomp.actualapp), that uses the first app to add/remove accounts. I can successfully add and remove accounts on Pre Marshmallow devices, using the following permissions in the manifest: <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>