Closed shashank-msra closed 11 months ago
@shashank-msra The isolated service that you are adding runs in an isolated process. In order to support this with MAM, you should use the documented meta-data item.
Hi @shashank-msra were you able to solve your issue using the Isolated Process metadata item?
You can find the issolated processes in your app by searching for Services with android:isolatedProcess=true in your app manifest https://developer.android.com/guide/topics/manifest/service-element
Hi @rygo-msft , as I described in my issue description itself, we do not have any service marked as isolated within the manifest. I also validated the merged manifest file & couldn't find any such entry. I could add isolated process metadata tag but since I am unaware what component is causing the issue, it didn't feel right to introduce such tag blindfolded. Any other suggestion would be much appreciated.
@shashank-msra If your app is not defining an android:isolatedProcess=true
, is must be coming from a library you're using. Can you share a minimal sample project that reproduces this crash?
Closing as no minimal sample has been shared. Please re-open if the sample can be provided.
@bannus Reopening this issue since the crash numbers have spiked in our latest release.
This crash is not reproducible at our side as of now. We are looking at the crash logs and will share a minimum sample once reproduced. We also don't have any process marked as isolated in our code or third party library.
Can you confirm if Intune throws SecurityException: Isolated process not allowed to call registerReceiver
only for isolated process and not due to other reasons ?
FYI, we are using Intune Version 9.1.0 in our application. As per release v9.7.0, it fixes SecurityException
in isolated processes on devices with API 27 or under. Is SecurityException in isolated processes for API 29 or above fixed in the latest Intune versions, since most of our crashes are for higher API levels ?
@singh-srikant The system is throwing that security exception, not Intune. We don't know of any circumstances in which this could occur unless your application contains an isolated process. This is why we'd need a sample app to continue investigating.
The fix in v9.7.0 was for another code path unrelated to the stack you've reported.
Summary
We are facing the following crash on our android application.
I went through the application manifest & we do not have any component that might be triggering the application in an isolated process. We do not have any service explicitly marked as isolated. I noticed that a similar issue was recently fixed in Intune's release v9.7.0 but it mentioned API 27 or below while the above cases are being registered lately on our playstore for Android 13(93% cases), 12, 10 & 14-Beta as well.
I have read through the Intune Guidelines related to isolated process but since we do not have any identifiable component that might be triggering the application in such a process, it doesn't feel safe to go with the meta tag addition. Its the reason reaching out to you to get any additional insights into the same.
Repro Steps
We do not have exact reproduction steps but as per the logs it seems adding a isolated service & triggering the same in MAM variant of the app will cause the issue
Details
AndroidX Dependencies
If your app includes any AndroidX libraries, please list them here, along with the version info: androidxCore = "1.6.0" androidxLifecycle = "2.3.1" androidxWorkManager = "2.7.0" androidxNavigation = "2.5.2" androidxStartupRuntime = "1.1.0" androidxDatastore = "1.0.0"
Third-Party Library Dependencies
If your app includes any third-party libraries, please list them here, along with the version info: