Professional surveillance camera application with real-time GPS tracking, HD video recording, anti-piracy protection and Watch Dogs-inspired UI. Built with modern Android architecture and enterprise-grade security features.
- High-Definition Photo Capture with CameraX integration
- HD Video Recording with audio support and enhanced processing
- Real-time Preview with professional overlay
- Orientation Detection (Portrait/Landscape adaptive UI)
- Custom Camera Controls with Watch Dogs-style interface
- Advanced Video Processing with 3-second sync delays for file integrity
- Multiple Video Formats support with automatic gallery integration
- Real-time Location Updates every 5 seconds
- Multiple GPS Strategies (LastLocation + Live updates)
- High Accuracy Mode with fallback providers
- GPS Status Indicators with precision metrics
- Location Embedding in photos and videos
- Dual Email Integration with automatic photo/video sending
- Robust Video Attachments with FileProvider + URI fallback methods
- Web Server Upload support for enterprise environments
- Configurable Recipients and server endpoints
- GPS Metadata included in all transmissions
- Secure File Sharing via FileProvider with multiple fallback options
- Gallery Integration - Videos automatically saved to device gallery
- File System Synchronization for reliable email attachments
- Code Obfuscation with ProGuard
- Signature Verification to prevent tampering
- Installation Source Validation
- Runtime Security Checks
- Debug Protection mechanisms
- ctOS-Inspired Design with green terminal aesthetics
- Real-time Overlays showing GPS, timestamp, and status
- Responsive Layouts for all screen orientations
- Professional Typography with monospace fonts
- Security Camera Interface elements
- Android 7.0 (API level 24) or higher
- Camera Permission for photo/video capture
- Location Permission for GPS tracking
- Storage Permission for file saving
- Internet Permission for email/server features
- Microphone Permission for video audio recording
- Go to Releases
- Download the latest
app-debug.apk - Enable "Install from Unknown Sources" in Android settings
- Install the APK
git clone https://github.com/adaymathers/Secure-Camera---ctOS.git
cd Secure-Camera---ctOS
./gradlew assembleDebug- Android Studio Arctic Fox or newer
- Android SDK API 24-33
- Kotlin 1.9.0+
- Gradle 8.0+
# Clone the repository
git clone https://github.com/adaymathers/Secure-Camera---ctOS.git
# Open in Android Studio or build via command line
cd Secure-Camera---ctOS
./gradlew assembleDebug
# APK location: app/build/outputs/apk/debug/app-debug.apk- Open app β βοΈ Settings
- Enter email address for automatic sending
- Configure SMTP settings (optional)
- Settings β Enable "Web Server Mode"
- Enter server endpoint URL
- Configure authentication if required
- App automatically uses high-accuracy GPS
- Ensure location services are enabled
- Grant "Allow all the time" permission for best results
app/
βββ src/main/java/com/ctos/camerahc2/
β βββ MainActivity.kt # Main camera interface
β βββ ConfigActivity.kt # Settings configuration
β βββ security/ # Anti-piracy protection
βββ src/main/res/
β βββ layout/ # UI layouts (portrait/landscape)
β βββ drawable/ # Icons and graphics
β βββ values/ # Strings and themes
βββ build.gradle # Dependencies and build config
- CameraX - Modern camera API
- FusedLocationProvider - Advanced GPS tracking
- ViewBinding - Type-safe view references
- Material Components - UI components
- OkHttp - HTTP client for server uploads
- ProGuard - Code obfuscation
This app implements multiple security layers:
- Code Obfuscation: All code is obfuscated to prevent reverse engineering
- Signature Verification: Validates app signature to detect tampering
- Source Validation: Ensures installation from trusted sources
- Runtime Checks: Continuous security monitoring during execution
- Debug Protection: Prevents debugging and analysis tools
- β FIXED: Video email attachments now work reliably
- β¨ NEW: Custom ctOS icon integrated across all resolutions
- π ENHANCED: Dual file sharing methods (FileProvider + URI fallback)
- β±οΈ IMPROVED: 3-second video processing delay with filesystem sync
- π§ ROBUST: Comprehensive email attachment debugging and validation
- ποΈ CLEANED: Removed landscape layouts (portrait-only optimization)
- ποΈ BUILD: Added R8 obfuscation dictionary for better compilation
- πΉ NEW: HD Video recording with audio support
- π± ENHANCED: Gallery integration for automatic video saving
- π‘οΈ SECURITY: Anti-piracy protection implementation
- π¨ UI: Watch Dogs-inspired interface improvements
- π°οΈ ENHANCED: Advanced GPS tracking with multiple strategies
- π§ NEW: Automatic email transmission functionality
- βοΈ CONFIG: Settings activity for app configuration
- π SECURITY: Enhanced security measures and validation
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Issues: GitHub Issues
- Documentation: Wiki
- Security: Report security issues privately
- Cloud Backup integration
- Multi-camera support
- Motion Detection alerts
- Live Streaming capabilities
- Facial Recognition (optional)
- Dark Mode theme
β‘ Built with passion for security and surveillance technology