Product Documentation

Example XML Syntax for Blacklisting and Whitelisting Policies

Dec 21, 2015

The following code samples illustrate how to use App Monitoring to create application whitelists and blacklists for your Android devices. Blacklisting app use case. Block an native email app on Android devices that are running operating systems Version 3.0 and earlier.

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<appcontrol> 
                <appcatalog> 
                                <whitelist> 
                                                <name>org.mozilla.firefox</name> 
                                </whitelist> 
                                <blacklist> 
                                                <name>com.android.email</name> 
                                </blacklist> 
                </appcatalog> 
                <appblockmessage>This application has been blacklisted and blocked by your Mobile System Administrator. For further inquiries, please contact your IT department.</appblockmessage> 
                <enforceblacklist>true</enforceblacklist> 
                <enforcewhitelist>false</enforcewhitelist> 
                <dorestart>true</dorestart> 
                <password>P@ssw0rd</password> 
</appcontrol>

Whitelisting app use case. Only allow a XenMobile app to run on the Android device, and block all other applications

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<appcontrol> 
                <appcatalog> 
                                <whitelist> 
                                                <name>com.citrix</name> 
                                                <name>com.android.launcher</name>  
                                                <name>com.android.launcher2</name> 
                                                <name>com.htc.launcher</name>  
                                </whitelist> 
                                <blacklist> 
                                                <name>com.android.email</name> 
                                </blacklist> 
                </appcatalog> 
                <appblockmessage>This application has been blacklisted and blocked by your Mobile System Administrator. For further inquiries, please contact your IT department.</appblockmessage> 
                <enforceblacklist>true</enforceblacklist> 
                <enforcewhitelist>false</enforcewhitelist> 
                <dorestart>true</dorestart> 
                <password>P@ssw0rd</password> 
</appcontrol>