dropbox-sdk-java icon indicating copy to clipboard operation
dropbox-sdk-java copied to clipboard

Android Security Alert: Another app on your phone may be trying to...

Open vikrama opened this issue 5 years ago • 5 comments

Using the SDK in a debug build in Android emulator, dropbox.AuthActivity errors out with a Security Alert "There might be more than one app trying to handle....".

I see that it is very similar to : https://github.com/dropbox/dropbox-sdk-java/issues/153 and the error is https://github.com/dropbox/dropbox-sdk-java/blob/5f47303107da2813f696b520ce976b73d0ba7847/src/main/java/com/dropbox/core/android/AuthActivity.java#L289

  1. My app is the only non-default app in the emulator.
  2. I have verified that there are no multiple declarations of dropbox.AuthActivity in AndroidManifest files.
  3. Have tried uninstalling and re-installing the debug build multiple times.

Any idea what's going on?

vikrama avatar Oct 30 '20 19:10 vikrama

With the advent of App Bundle, can the dropbox.AuthActivity declaration continue to be in a module's manifest or should it be in the base module's manifest? For some reason, when AuthActivity starts, it's finding 2 instances of it under my app's packagename.

vikrama avatar Oct 30 '20 19:10 vikrama

Can you try restarting the emulator's OS, if you haven't already? While not typically necessary, in some cases we've heard that a restart is required for the system to reflect changes to these.

greg-db avatar Oct 30 '20 20:10 greg-db

Yes, behavior continues after a cold start and even after restarting the OS.

vikrama avatar Nov 07 '20 00:11 vikrama

Thanks for checking that. I'm not sure off hand what may be causing this then, so we'll have to look into it. (It may be related to using an App Bundle, but I don't know if the SDK has been tested with that in particular. I believe it predates App Bundles.)

To help us reproduce this, would you be able to share am AndroidManifest.xml file(s) (or a sample project, if possible), that produces this issue? Thanks in advance!

greg-db avatar Nov 09 '20 18:11 greg-db

Clear all issue

Sardarwaqas800 avatar Dec 31 '20 19:12 Sardarwaqas800