This fork of Element Android includes custom security modules for testing and research purposes.
This repository has been forked from the official Element Android to integrate and test advanced security features including anti-debugging and code obfuscation capabilities.
A comprehensive anti-debugging solution that provides multiple layers of protection:
- Debugger Detection: Detects various debugging tools and environments
- Root Detection: Identifies rooted devices and potential security risks
- Emulator Detection: Prevents execution in emulated environments
- Runtime Monitoring: Continuous security threat assessment
- Native Implementation: C++ code for enhanced security and performance
- Seamlessly integrated into the main Android application
- Configurable security levels for debug vs release builds
- R8/ProGuard rules for code protection
Advanced code obfuscation and data protection system:
- Static Obfuscation: Compile-time code transformation
- Runtime Data Masking: Dynamic data protection
- String Encryption: Sensitive string obfuscation
- Reflection Indirection: Method call obfuscation
- R8 Integration: Works with Android's R8 minifier
- Class and method name obfuscation
- Control flow obfuscation
- Data encryption and decryption
- Anti-tampering measures
- Security features are disabled for easier development
- Full debugging capabilities available
- Faster build times
- Full security protection enabled
- R8 minification and obfuscation active
- Optimized for production use
# Debug build (security disabled)
./gradlew assembleGplayDebug
# Release build (full security enabled)
./gradlew assembleGplayReleaseSecurity settings can be configured in gradle.properties:
# Disable security in debug builds
vector.disableSecurityInDebug=true
vector.disableObfuscationInDebug=true
vector.useMinimalStartupInDebug=trueThis is a research/testing fork
- Not intended for production use
- For official Element Android, visit: element-hq/element-android
- Security modules are experimental and may not be fully tested
- Use at your own risk
This fork maintains the same dual licensing as the original Element Android project:
- GNU Affero General Public License v3
- Element Commercial License
The security modules are provided as-is for research and testing purposes.