Xamarin Android Debugging Intents

0

I'm trying to work out how to debug intents that start my application.

It seems that VS for Mac has a complete dialog to manage doing this called Run Configurations there "seems" to be a similar feature in VS also called un Configurations but it doesn't seem to be an equivilant feature. It doesn't create any config or new files anywhere.

It seems this is doable from the adb command line. But trying that gets an permissions error:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE>adb shell am start -n "com.App.Driod/.MainActivity" -d "app-mobile-auth://sdcsdcsdc:sdcscscs"
adb server is out of date.  killing...
* daemon started successfully *
Starting: Intent { dat=App-mobile-auth://sdcsdcsdc:sdcscscs cmp=com.App.Driod/.MainActivity }
Security exception: Permission Denial: starting Intent { dat=mobile-auth://sdcsdcsdc:sdcscscs flg=0x10000000 cmp=com.App.Driod/.MainActivity } from null (pid=19572, uid=2000) not exported from uid 10144

java.lang.SecurityException: Permission Denial: starting Intent { dat=mobile-auth://sdcsdcsdc:sdcscscs flg=0x10000000 cmp=com.App.Driod/.MainActivity } from null (pid=19572, uid=2000) not exported from uid 10144
        at com.android.server.wm.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1043)
        at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:760)
        at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:583)
        at com.android.server.wm.ActivityStarter.startActivityMayWait(ActivityStarter.java:1288)
        at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:514)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1058)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1032)
        at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:3504)
        at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:518)
        at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:172)
        at android.os.ShellCommand.exec(ShellCommand.java:104)
        at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:9774)
        at android.os.Binder.shellCommand(Binder.java:881)
        at android.os.Binder.onTransact(Binder.java:765)
        at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:4498)
        at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2741)
        at android.os.Binder.execTransactInternal(Binder.java:1021)
        at android.os.Binder.execTransact(Binder.java:994)

Is there anyway to start a Xamarin Forms Android app with intent data supplied as an argument?

android
xamarin
xamarin.forms
asked on Stack Overflow Feb 19, 2021 by Jammer • edited Feb 20, 2021 by Jammer

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0