Fixed new sessions window not opened when receving activity intent from nethunter app.
Found out when nethunter app sending activity intent to nhterm, if nhterm is first opened by that intent sent by nethunter, then all the next activity intent with the same action and category will not be process, as it's a android mechenism. see https://stackoverflow.com/questions/3781182/activity-not-started-its-current-task-has-been-brought-to-the-front The way I found to solve this issue is to added 'android:launchMode="singleTask"' to the corresponding activity.
This commit is contained in:
parent
63172255bf
commit
15660a0c60
@ -89,6 +89,7 @@
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
<activity android:name="com.offsec.nhterm.RunScriptNetHunterLogin"
|
||||
android:launchMode="singleTask"
|
||||
android:excludeFromRecents="true"
|
||||
android:permission="com.offsec.nhterm.permission.RUN_SCRIPT_NH_LOGIN">
|
||||
<intent-filter>
|
||||
@ -97,6 +98,7 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="com.offsec.nhterm.RunScriptNetHunter"
|
||||
android:launchMode="singleTask"
|
||||
android:excludeFromRecents="true"
|
||||
android:permission="com.offsec.nhterm.permission.RUN_SCRIPT_NH">
|
||||
<intent-filter>
|
||||
@ -105,6 +107,7 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="com.offsec.nhterm.RunScriptSu"
|
||||
android:launchMode="singleTask"
|
||||
android:excludeFromRecents="true"
|
||||
android:permission="com.offsec.nhterm.permission.RUN_SCRIPT_SU">
|
||||
<intent-filter>
|
||||
@ -113,6 +116,7 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="com.offsec.nhterm.RunScript"
|
||||
android:launchMode="singleTask"
|
||||
android:excludeFromRecents="true"
|
||||
android:permission="com.offsec.nhterm.permission.RUN_SCRIPT">
|
||||
<intent-filter>
|
||||
@ -121,6 +125,7 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="com.offsec.nhterm.RunShortcut"
|
||||
android:launchMode="singleTask"
|
||||
android:excludeFromRecents="true">
|
||||
<intent-filter>
|
||||
<action android:name="com.offsec.nhterm.RUN_SHORTCUT" />
|
||||
|
Loading…
Reference in New Issue
Block a user