Set Android launchMode to singleInstance using CloudMake?

731
2
Jump to solution
07-12-2022 08:49 PM
Gerhard
New Contributor III

Is it possible to set the Android launchMode to singleInstance using CloudMake?

Similar to Solved: Set parameter in AndroidManifest.xml or info.plist... - Esri Community, I want to add a property to the AndroidManifest.xml file. I specifically want to affect the launchMode which, through CloudMake, defaults to singleTask (line five in the sample below). The launchMode setting isn't specified in Edit appinfo - ArcGIS AppStudio | Documentation.

From the AndroidManifest.xml file:

 

 

<activity android:configChanges="fontScale|keyboard|keyboardHidden|
locale|navigation|orientation|screenLayout|screenSize|
smallestScreenSize|uiMode"
android:label="@string/app_name"
android:launchMode="singleTask"
android:name="com.arcgis.appframework.QmlApplicationActivity"
android:screenOrientation="unspecified" android:theme="@style/AppTheme"
android:windowSoftInputMode="adjustResize">

 

 

Best,

Gerhard
0 Kudos
1 Solution

Accepted Solutions
TrevorFrame
Esri Contributor

Hello @Gerhard,

Currently android:launchMode is set to singleTask and cannot be updated. 

Best,

Trevor

View solution in original post

2 Replies
TrevorFrame
Esri Contributor

Hello @Gerhard,

Currently android:launchMode is set to singleTask and cannot be updated. 

Best,

Trevor

Gerhard
New Contributor III

Thanks @TrevorFrame. Is there a plan to allow greater customisation of the Android Manifest in future? I'd be happy to submit this as an idea.

I'm specifically wanting to patch the StrandHogg vulnerability that applies to all Android versions up to Android 10 where singleTask could allow for task hijacking.

Best,

Gerhard
0 Kudos