Manual Android CLI
O MAD (Mobile Application Defense) é uma ferramenta para proteger aplicativos Android (Cordova, React Native, Flutter ou nativos Java/Kotlin) com camadas adicionais de segurança.
Preparação do ambiente
Criação do Arquivo de Configuração
<?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>Alerta de segurança</title>
<message>
Um problema de segurança foi encontrado no seu dispositivo.
Para sua proteção, o aplicativo será encerrado agora.
</message>
</alertMessage>
</madConfiguration>Comando principal

Atualizado