Intune Android SDK: Know if app is Intune enrolled or running normally?

%3CLINGO-SUB%20id%3D%22lingo-sub-1235039%22%20slang%3D%22en-US%22%3EIntune%20Android%20%3A%20Know%20if%20app%20is%20Intune%20enrolled%20or%20running%20normally%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1235039%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%2C%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20with%20Intune%20android%20SDK%20to%20know%20whether%20my%20app%20is%20running%20on%20a%20device%20with%20intune%20policies%20enabled%20or%20as%20a%20normal%20app%3F%3C%2FP%3E%3CP%3EAny%20lead%20or%20help%20will%20be%20appreciated%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1235039%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Application%20Management%20(MAM)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi ,

Is there any way with Intune android SDK to know whether my app is running on a device with intune policies enabled or as a normal app?

Any lead or help will be appreciated?

Thanks

3 Replies
Do you mean protected with an app protection policy?
If so, this might be what you are looking for: https://docs.microsoft.com/en-us/mem/intune/apps/app-protection-policies-monitor

@Thijs Lecomte 

Thanks for the reply..but this is not what I am looking for.

I want to know programmatically on my app whether my app is running on an intune enabled environment or not.

My basic requirement is to track some events based on whether the user is an intune one or a normal one

Ahn okay, my apologies, misread this :)

I don't have any experience with the SDK, hope some else can help you out!