<p dir="auto">Not sure if this an issue that needs to be addressed or a normal behavior. I was adding facebook login to my flutter app, as a simple procedure, I added some activities that enable Facebook SDK to login.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">I added the activity</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="        &lt;activity android:name=&quot;com.facebook.FacebookActivity&quot;
            android:configChanges=
                    &quot;keyboard|keyboardHidden|screenLayout|screenSize|orientation&quot;
            android:label=&quot;@string/app_name&quot; /&gt;"><pre class="notranslate">        &lt;<span class="pl-ent">activity</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>com.facebook.FacebookActivity<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">configChanges</span>=
                    <span class="pl-s"><span class="pl-pds">"</span>keyboard|keyboardHidden|screenLayout|screenSize|orientation<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">label</span>=<span class="pl-s"><span class="pl-pds">"</span>@string/app_name<span class="pl-pds">"</span></span> /&gt;</pre></div>
<p dir="auto">before the</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="        &lt;activity
            android:name=&quot;.MainActivity&quot;
            android:launchMode=&quot;singleTop&quot;
            android:theme=&quot;@style/LaunchTheme&quot;
            android:configChanges=&quot;orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density&quot;
            android:hardwareAccelerated=&quot;true&quot;
            android:windowSoftInputMode=&quot;adjustResize&quot;&gt;
            &lt;meta-data
                android:name=&quot;io.flutter.app.android.SplashScreenUntilFirstFrame&quot;
                android:value=&quot;true&quot; /&gt;
            &lt;intent-filter&gt;
                &lt;action android:name=&quot;android.intent.action.MAIN&quot;/&gt;
                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;"><pre class="notranslate">        &lt;<span class="pl-ent">activity</span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>.MainActivity<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">launchMode</span>=<span class="pl-s"><span class="pl-pds">"</span>singleTop<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">theme</span>=<span class="pl-s"><span class="pl-pds">"</span>@style/LaunchTheme<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">configChanges</span>=<span class="pl-s"><span class="pl-pds">"</span>orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">hardwareAccelerated</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">windowSoftInputMode</span>=<span class="pl-s"><span class="pl-pds">"</span>adjustResize<span class="pl-pds">"</span></span>&gt;
            &lt;<span class="pl-ent">meta-data</span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>io.flutter.app.android.SplashScreenUntilFirstFrame<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span> /&gt;
            &lt;<span class="pl-ent">intent-filter</span>&gt;
                &lt;<span class="pl-ent">action</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>android.intent.action.MAIN<span class="pl-pds">"</span></span>/&gt;
                &lt;<span class="pl-ent">category</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>android.intent.category.LAUNCHER<span class="pl-pds">"</span></span>/&gt;
            &lt;/<span class="pl-ent">intent-filter</span>&gt;
        &lt;/<span class="pl-ent">activity</span>&gt;</pre></div>
<p dir="auto">now when I run the app(flutter run) I get this error and the app crashes.</p>
<h2 dir="auto">exception</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ProcessException: ProcessException: Process &quot;/Users/muskan/Library/Android/sdk/platform-tools/adb&quot; exited abnormally:
Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.brainants.debitcredit/com.facebook.FacebookActivity (has extras) }

Security exception: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=com.brainants.debitcredit/com.facebook.FacebookActivity (has extras) } from null (pid=14200, uid=2000) not exported from uid 10494

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=com.brainants.debitcredit/com.facebook.FacebookActivity (has extras) } from null (pid=14200, uid=2000) not exported from uid 10494
	at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1793)
	at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:844)
	at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:573)
	at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1250)
	at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:515)
	at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5916)
	at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5890)
	at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:483)
	at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:165)
	at android.os.ShellCommand.exec(ShellCommand.java:103)
	at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:17880)
	at android.os.Binder.shellCommand(Binder.java:655)
	at android.os.Binder.onTransact(Binder.java:553)
	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3542)
	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3805)
	at android.os.Binder.execTransact(Binder.java:752)
  Command: /Users/muskan/Library/Android/sdk/platform-tools/adb -s 3fabac74 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.brainants.debitcredit/com.facebook.FacebookActivity"><pre class="notranslate"><code class="notranslate">ProcessException: ProcessException: Process "/Users/muskan/Library/Android/sdk/platform-tools/adb" exited abnormally:
Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.brainants.debitcredit/com.facebook.FacebookActivity (has extras) }

Security exception: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=com.brainants.debitcredit/com.facebook.FacebookActivity (has extras) } from null (pid=14200, uid=2000) not exported from uid 10494

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=com.brainants.debitcredit/com.facebook.FacebookActivity (has extras) } from null (pid=14200, uid=2000) not exported from uid 10494
	at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1793)
	at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:844)
	at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:573)
	at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1250)
	at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:515)
	at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5916)
	at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5890)
	at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:483)
	at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:165)
	at android.os.ShellCommand.exec(ShellCommand.java:103)
	at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:17880)
	at android.os.Binder.shellCommand(Binder.java:655)
	at android.os.Binder.onTransact(Binder.java:553)
	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3542)
	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3805)
	at android.os.Binder.execTransact(Binder.java:752)
  Command: /Users/muskan/Library/Android/sdk/platform-tools/adb -s 3fabac74 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.brainants.debitcredit/com.facebook.FacebookActivity
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:251:5)
&lt;asynchronous suspension&gt;
#1      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:441:34)
&lt;asynchronous suspension&gt;
#2      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:289:54)
&lt;asynchronous suspension&gt;
#3      HotRunner.run (package:flutter_tools/src/run_hot.dart:272:39)
&lt;asynchronous suspension&gt;
#4      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:398:37)
&lt;asynchronous suspension&gt;
#5      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18)
#6      _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64)
#7      _rootRunUnary (dart:async/zone.dart:1132:38)
#8      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#11     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#12     Future._complete (dart:async/future_impl.dart:476:7)
#13     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#14     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#15     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#16     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#17     _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64)
#18     _rootRunUnary (dart:async/zone.dart:1132:38)
#19     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#20     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#21     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#22     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#23     Future._complete (dart:async/future_impl.dart:476:7)
#24     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#25     _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20)
#26     _rootRun (dart:async/zone.dart:1124:13)
#27     _CustomZone.run (dart:async/zone.dart:1021:19)
#28     _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23)
#29     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#30     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#31     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#32     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)"><pre class="notranslate"><code class="notranslate">#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:251:5)
&lt;asynchronous suspension&gt;
#1      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:441:34)
&lt;asynchronous suspension&gt;
#2      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:289:54)
&lt;asynchronous suspension&gt;
#3      HotRunner.run (package:flutter_tools/src/run_hot.dart:272:39)
&lt;asynchronous suspension&gt;
#4      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:398:37)
&lt;asynchronous suspension&gt;
#5      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18)
#6      _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64)
#7      _rootRunUnary (dart:async/zone.dart:1132:38)
#8      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#11     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#12     Future._complete (dart:async/future_impl.dart:476:7)
#13     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#14     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#15     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#16     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#17     _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64)
#18     _rootRunUnary (dart:async/zone.dart:1132:38)
#19     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#20     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#21     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#22     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#23     Future._complete (dart:async/future_impl.dart:476:7)
#24     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#25     _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20)
#26     _rootRun (dart:async/zone.dart:1124:13)
#27     _CustomZone.run (dart:async/zone.dart:1021:19)
#28     _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23)
#29     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#30     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#31     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#32     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
</code></pre></div>
<h2 dir="auto">flutter doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="�[32m[✓]�[39m Flutter (Channel dev, v1.0.0, on Mac OS X 10.14.2 18C38b, locale en-US)
    �[32m•�[39m Flutter version 1.0.0 at /Users/muskan/flutter
    �[32m•�[39m Framework revision 5391447fae (9 days ago), 2018-11-29 19:41:26 -0800
    �[32m•�[39m Engine revision 7375a0f414
    �[32m•�[39m Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK 28.0.3)
    �[32m•�[39m Android SDK at /Users/muskan/Library/Android/sdk
    �[32m•�[39m Android NDK location not configured (optional; useful for native profiling support)
    �[32m•�[39m Platform android-28, build-tools 28.0.3
    �[32m•�[39m Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    �[32m•�[39m All Android licenses accepted.

�[32m[✓]�[39m iOS toolchain - develop for iOS devices (Xcode 10.1)
    �[32m•�[39m Xcode at /Applications/Xcode.app/Contents/Developer
    �[32m•�[39m Xcode 10.1, Build version 10B61
    �[32m•�[39m ios-deploy 1.9.4
    �[32m•�[39m CocoaPods version 1.5.3

�[32m[✓]�[39m Android Studio (version 3.2)
    �[32m•�[39m Android Studio at /Applications/Android Studio.app/Contents
    �[32m•�[39m Flutter plugin version 30.0.1
    �[32m•�[39m Dart plugin version 181.5656
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

�[32m[✓]�[39m VS Code (version 1.29.1)
    �[32m•�[39m VS Code at /Applications/Visual Studio Code.app/Contents
    �[32m•�[39m Flutter extension version 2.21.1

�[32m[✓]�[39m Connected device (1 available)
    �[32m•�[39m ONEPLUS A6000 • 3fabac74 • android-arm64 • Android 9 (API 28)

�[32m•�[39m No issues found!"><pre class="notranslate"><code class="notranslate">�[32m[✓]�[39m Flutter (Channel dev, v1.0.0, on Mac OS X 10.14.2 18C38b, locale en-US)
    �[32m•�[39m Flutter version 1.0.0 at /Users/muskan/flutter
    �[32m•�[39m Framework revision 5391447fae (9 days ago), 2018-11-29 19:41:26 -0800
    �[32m•�[39m Engine revision 7375a0f414
    �[32m•�[39m Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK 28.0.3)
    �[32m•�[39m Android SDK at /Users/muskan/Library/Android/sdk
    �[32m•�[39m Android NDK location not configured (optional; useful for native profiling support)
    �[32m•�[39m Platform android-28, build-tools 28.0.3
    �[32m•�[39m Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    �[32m•�[39m All Android licenses accepted.

�[32m[✓]�[39m iOS toolchain - develop for iOS devices (Xcode 10.1)
    �[32m•�[39m Xcode at /Applications/Xcode.app/Contents/Developer
    �[32m•�[39m Xcode 10.1, Build version 10B61
    �[32m•�[39m ios-deploy 1.9.4
    �[32m•�[39m CocoaPods version 1.5.3

�[32m[✓]�[39m Android Studio (version 3.2)
    �[32m•�[39m Android Studio at /Applications/Android Studio.app/Contents
    �[32m•�[39m Flutter plugin version 30.0.1
    �[32m•�[39m Dart plugin version 181.5656
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

�[32m[✓]�[39m VS Code (version 1.29.1)
    �[32m•�[39m VS Code at /Applications/Visual Studio Code.app/Contents
    �[32m•�[39m Flutter extension version 2.21.1

�[32m[✓]�[39m Connected device (1 available)
    �[32m•�[39m ONEPLUS A6000 • 3fabac74 • android-arm64 • Android 9 (API 28)

�[32m•�[39m No issues found!
</code></pre></div>
<p dir="auto">Again, not sure if this is completely normal for adb to try to initiate the first Activity in the manifest file. Either way just letting the team know.</p>
<h2 dir="auto">Steps to Reproduce</h2>

<ol dir="auto">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
<h2 dir="auto">Logs</h2>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>