Nugon SOS v1.4 - Versión Convivencia Multimedia
Nugon SOS: Final Polish & Multimedia Optimization
Nugon SOS is now a technically mature emergency tool, capable of bypassing Android's deepest power-saving restrictions while coexisting seamlessly with daily phone use and media playback.
Final Technical Architecture
1. The "Stealth" Bypass Engine
To ensure volume buttons work even in Deep Sleep (screen off, unplugged) without showing ugly "Remote Screen" icons during normal use:
- Dynamic Mode: The app now detects the screen state. The
MediaSessionandSilent Audioloop only activate when the screen is OFF. - Multimedia Coexistence: If music is playing (Spotify/YouTube), Nugon SOS steps back to let the system handle volume normally. The active audio keeps the CPU awake, allowing our
AccessibilityServiceto monitor the buttons without the bypass trick. - Universal Observer: A new
ContentObservermonitors system volume levels. It detects rapid "jumps" (delta changes) characteristic of a long-press, providing a 100% reliable trigger even if other apps have hijacked the hardware keys.
2. Reliable Haptic Feedback
We solved the "infinite vibration" and "canceled vibration" bugs:
- Initial Touch: A single, very short 50ms pulse when the button is first touched (only when the screen is off).
- Settling Delay: A 500ms silent window after detection to let system volume events finish.
- Final Confirmation: A powerful, continuous 1000ms vibration once the alert is dispatched.
3. Continuous Protection
- Auto-Start: Implemented both a
BootReceiverand an Accessibility Service trigger to ensure Nugon starts automatically after a phone reboot. - Persistence: The service runs as a Foreground Service with a silent (
IMPORTANCE_LOW) persistent notification.
Key Configuration for Users
Important
Battery Optimization: The user MUST set Nugon SOS to "Unrestricted" in battery settings for these background triggers to work reliably.
Accessibility: The service must be enabled in Settings > Accessibility.
Warning
Volume Blind Spots: For technical reasons, if the volume is already at 0 or 15, the software-based detection won't see any "change". We recommend keeping the volume between levels 3 and 13 for maximum security while the screen is off.
Verification Checklist
- Works with Screen ON (Accessibility Service).
- Works with Screen OFF & No Music (MediaSession Bypass).
- Works with Screen OFF & Music Playing (Universal Volume Observer).
- Works without USB cable.
- Volume buttons work normally for sound adjustment.
- Starts automatically after reboot.
Developed with focus on reliability and user safety.