Udinic / AccountAuthenticator

812 stars 216 forks source link

Permission Denial: starting Intent #8

Open funcoding opened 9 years ago

funcoding commented 9 years ago

I imported the project in Android Studio. When I press ADDACCOUNT, I get the following message

03-21 22:39:01.899  12718-12735/com.udinic.accounts_example W/Binder﹕ Caught a RuntimeException from the binder stub implementation.
    java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.udinic.accounts_authenticator_example.test/com.udinic.accounts_authenticator_example.authentication.AuthenticatorActivity (has extras) } from ProcessRecord{37027392 12718:com.udinic.accounts_example/u0a315} (pid=12718, uid=10315) not exported from uid 10286
            at android.os.Parcel.readException(Parcel.java:1540)
            at android.os.Parcel.readException(Parcel.java:1493)
            at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2433)
            at android.app.Instrumentation.execStartActivity(Instrumentation.java:1547)
            at android.app.Activity.startActivityForResult(Activity.java:3746)
            at android.app.Activity.startActivityForResult(Activity.java:3707)
            at android.app.Activity.startActivity(Activity.java:4027)
            at android.app.Activity.startActivity(Activity.java:3989)
            at android.accounts.AccountManager$AmsTask$Response.onResult(AccountManager.java:1710)
            at android.accounts.IAccountManagerResponse$Stub.onTransact(IAccountManagerResponse.java:59)
            at android.os.Binder.execTransact(Binder.java:446)
Leaking commented 9 years ago

Hello,Just serveral minite ago,I fix the same problem,I don't know my reason is the same as yours.

My reason is I have install 2 apk with 2 different package name.So it can't choose which package's LoginActivity.

santoki-darshan commented 6 years ago

Hello,Just serveral minite ago,I fix the same problem,I don't know my reason is the same as yours.

My reason is I have install 2 apk with 2 different package name.So it can't choose which package's LoginActivity.

It works fine with 1st app I installed but with 2nd one gives "Permission Denial" error

ashukhushi commented 5 years ago

@santoki-darshan-I have also facing same issue.please help me to resolve

santoki-darshan commented 5 years ago

@santoki-darshan-I have also facing same issue.please help me to resolve

Try using different signin-config for apps