Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityException #91

Open
dschuermann opened this issue Nov 5, 2016 · 1 comment
Open

SecurityException #91

dschuermann opened this issue Nov 5, 2016 · 1 comment

Comments

@dschuermann
Copy link
Member

java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=65578, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {org.birthdayadapter.free/org.birthdayadapter.ui.BaseActivity}: java.lang.SecurityException: uid 10212 cannot explicitly add accounts of type: org.birthdayadapter.account
	at android.app.ActivityThread.deliverResults(ActivityThread.java:4053)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4096)
	at android.app.ActivityThread.-wrap20(ActivityThread.java)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1516)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6077)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.SecurityException: uid 10212 cannot explicitly add accounts of type: org.birthdayadapter.account
	at android.os.Parcel.readException(Parcel.java:1683)
	at android.os.Parcel.readException(Parcel.java:1636)
	at android.accounts.IAccountManager$Stub$Proxy.addAccountExplicitly(IAccountManager.java:995)
	at android.accounts.AccountManager.addAccountExplicitly(AccountManager.java:733)
	at org.birthdayadapter.util.AccountHelper.addAccount(AccountHelper.java:65)
	at org.birthdayadapter.util.AccountHelper.addAccountAndSync(AccountHelper.java:79)
	at org.birthdayadapter.ui.BasePreferenceFragment.onRequestPermissionsResult(BasePreferenceFragment.java:116)
	at android.support.v4.app.FragmentActivity.onRequestPermissionsResult(FragmentActivity.java:911)
	at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7069)
	at android.app.Activity.dispatchActivityResult(Activity.java:6921)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:4049)
	... 9 more
@abirke
Copy link

abirke commented Apr 11, 2019

This is most probably related to #96. It might also be targeted by #108 but I only have one Android version available to test so somebody might double-check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants