Android CLI Manual
MAD (Mobile Application Defense) is a tool to protect Android applications (Cordova, React Native, Flutter or native Java/Kotlin) with additional layers of security.
Environment preparation
Configuration File Creation
<?xml version="2.0" encoding="UTF-8" standalone="no"?>
<!--
Mobile Application Defense LTDA CONFIDENTIAL
Copyright 2014-2026 Mobile Application Defense
All Rights Reserved.
NOTICE: All information contained here is, and remains
the property of Mobile Application Defense and its suppliers,
if any. The intellectual and technical concepts contained
herein are proprietary to Mobile Application Defense
and its suppliers and may be covered by U.S. and Foreign Patents,
patents in process, and are protected by trade secret or copyright law.
Dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from Mobile Application Defense .
-->
<madConfiguration>
<general>
<apiToken>api-token-command-center</apiToken>
<bundleName>bundle-name-app</bundleName>
<mode>default</mode> <!-- default | monitor -->
<stack>react-native</stack> <!-- cordova | flutter | java -->
</general>
<bundleObfuscation>
<obfuscateDex>true</obfuscateDex>
<obfuscateAssets>true</obfuscateAssets>
</bundleObfuscation>
<certificatePinning>
<enabled>true</enabled>
<host domain="*.example.com">
<pin type="publicKey">1abc23de-456f-789g-hij0-k1234546klm=</pin>
</host>
<host domain="example2.com">
<pin type="certificate">1abc23de-456f-789g-hij0-k1234546klm=</pin>
<pin type="certificate">1abc23de-456f-789g-hij0-k1234546klm=</pin>
</host>
</certificatePinning>
<antiDebugging>
<enabled>true</enabled>
</antiDebugging>
<xposedDetection>
<enabled>true</enabled>
<modules>true</modules>
</xposedDetection>
<antiTampering>
<enabled>true</enabled>
<checkIntegrity>true</checkIntegrity>
<verifyHashSections>true</verifyHashSections>
</antiTampering>
<rootDetection>
<enabled>true</enabled>
<selinux>true</selinux>
<unlockedBootloader>true</unlockedBootloader>
</rootDetection>
<emulatorDetection>
<enabled>true</enabled>
</emulatorDetection>
<memoryProtection>
<enabled>true</enabled>
</memoryProtection>
<proxyDetection>
<enabled>true</enabled>
</proxyDetection>
<vishingProtection>
<enabled>true</enabled>
</vishingProtection>
<vcamDetection>
<enabled>true</enabled>
</vcamDetection>
<screenProtection>
<enabled>true</enabled>
</screenProtection>
<appCloneDetection>
<enabled>true</enabled>
</appCloneDetection>
<overlayDetection>
<enabled>true</enabled>
</overlayDetection>
<alertMessage>
<enabled>true</enabled>
<title>Security alert</title>
<message>
A security issue was found on your device.
For your protection, the application will be closed now.
</message>
</alertMessage>
</madConfiguration>Main command

Last updated