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

AuthActivity startWebAuth Crash #505

Open
BaojunCZ opened this issue Aug 4, 2023 · 5 comments
Open

AuthActivity startWebAuth Crash #505

BaojunCZ opened this issue Aug 4, 2023 · 5 comments

Comments

@BaojunCZ
Copy link

BaojunCZ commented Aug 4, 2023

Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.dropbox.com/... cmp=team.opay.pay.merchant.service/com.opay.webview.WebFoundationActivity } from ProcessRecord{28b315a 21629:com.smartwallet.app/u0a265} (pid=21629, uid=10265) not exported from uid 10256
at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
at android.os.Parcel.createException(Parcel.java:2357)
at android.os.Parcel.readException(Parcel.java:2340)
at android.os.Parcel.readException(Parcel.java:2282)
at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:4128)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1732)
at android.app.Activity.startActivityForResult(Activity.java:5370)
at android.app.Activity.startActivityForResult(Activity.java:5328)
at android.app.Activity.startActivity(Activity.java:5714)
at android.app.Activity.startActivity(Activity.java:5667)
at com.dropbox.core.android.AuthActivity.startWebAuth(AuthActivity.kt:295)
at com.dropbox.core.android.AuthActivity.onTopResumedActivityChanged$lambda-0(AuthActivity.kt:144)
at android.app.Activity.runOnUiThread(Activity.java:7138)
at com.dropbox.core.android.AuthActivity.onTopResumedActivityChanged(AuthActivity.kt:134)
at android.app.Activity.performTopResumedActivityChanged(Activity.java:2000)
at android.app.ActivityThread.reportTopResumedActivityChanged(ActivityThread.java:4911)
at android.app.ActivityThread.handleTopResumedActivityChanged(ActivityThread.java:4895)
at android.app.servertransaction.TopResumedActivityChangeItem.execute(TopResumedActivityChangeItem.java:39)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2203)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:268)
at android.app.ActivityThread.main(ActivityThread.java:8017)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:627)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:997)

   Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.wm.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1095)
at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1643)
at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:1279)
at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1238)
at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1181)
@greg-db
Copy link
Contributor

greg-db commented Aug 7, 2023

I'll be happy to help with any issues you're having with the SDK, but I'll need some more information. Please reply with:

  • the name and version number of the platform and SDK/library you are using
  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)

@BaojunCZ
Copy link
Author

com.dropbox.core:dropbox-core-sdk:5.4.4
Phone: Infinix Smart 4 Plus,Infinix HOT 10S
startOAuth2PKCE

@greg-db
Copy link
Contributor

greg-db commented Sep 27, 2023

This issue does not reproduce for me when running startOAuth2PKCE using v5.4.4 of the Dropbox SDK.

Have you made any changes to the SDK?

What version of Android are you using?

Have you configured the AuthActivity as shown in the example here?

Please share the specific steps and code to reproduce the issue so we can look into it.

@BaojunCZ
Copy link
Author

BaojunCZ commented Jan 23, 2024

val requestConfig = DbxRequestConfig(ClientIdentifier) val scopes = listOf( "account_info.read", "files.content.write", "files.content.read", "files.metadata.write", "files.metadata.read" ) Auth.startOAuth2PKCE(context, ApiKey, requestConfig, scopes)

I did not change the SDK.

I am also unable to reproduce the issue, only receiving many exceptions on the log collection platform. And most of the error reports come from the Transsion brand, and a small part comes from Samsung.

@greg-db
Copy link
Contributor

greg-db commented Jan 23, 2024

Can you confirm if you configured the AuthActivity as shown in the example here? In particular, it looks like the android:exported="true" line may be relevant, so make sure you have that.

Also, I notice there are two different third party package names mentioned in the error output: team.opay.pay.merchant.service and com.smartwallet.app. Can you clarify what these two are?

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