Keylogging Without a Custom Keyboard
Android keyloggers don't need to replace your keyboard. Instead, they use the Accessibility Service to intercept all input events across all apps. This means a keylogger can capture passwords typed in your banking app, messages typed in WhatsApp, and search queries typed in your browser — all without ever touching your keyboard.
How Accessibility-Based Keylogging Works
The Permission Grant
The keylogger app requests accessibility access. Social engineering tricks users into enabling it: "Enable accessibility for battery optimization," "Enable accessibility to fix [app name]."
The Event Flow
Once accessibility is enabled, the keylogger receives accessibility events for ALL apps:
- User focuses a text field — keylogger receives TYPE_VIEW_FOCUSED event
- User types a character — keylogger receives TYPE_VIEW_TEXT_CHANGED event
- The event includes the text — keylogger reads the typed text
- The keylogger stores the text with metadata about which app and field
- The keylogger exfiltrates the data periodically to C2 server
What Gets Captured
- Passwords — typed in password fields (even though masked on screen)
- PIN codes — typed in lock screen and banking apps
- Messages — typed in WhatsApp, Telegram, Signal, SMS
- Search queries — typed in Google, browser search bars
- OTP codes — typed in 2FA verification fields
- Form data — names, addresses, credit cards
Contextual Metadata
The keylogger captures context: which app, which field, timestamp, window title, and activity name. This makes the captured data far more valuable.
Why This Is More Dangerous Than Desktop Keyloggers
Cross-App Capture
Android accessibility keyloggers know exactly which app and which field received input, making data more organized and actionable.
Password Field Capture
Even if you use a password manager, the accessibility service can capture the auto-typed password as it appears in the text field.
No Special Privileges Needed
Android accessibility keyloggers require only the accessibility permission, which any user can grant without rooting.
Persistence
Once accessibility is granted, it persists across reboots and app updates.
How to Detect Accessibility Keyloggers
Check Accessibility Services
Settings > Accessibility: Look at all services listed. Identify any app you don't recognize. Only screen readers (TalkBack), password managers, and known accessibility tools should have access.
Check for Hidden Apps
Settings > Apps > Show system apps: Look for apps with generic names like "System Service" or "Device Optimizer." Check installation source and permissions.
Use MVT
MVT (Mobile Verification Toolkit) can analyze Android devices for known spyware indicators, including keylogger signatures.
Monitor Battery and Data Usage
Keyloggers consume battery and data for continuous operation. Check Settings > Battery and Settings > Data Usage for anomalies.
How to Prevent Accessibility Keylogging
Never Grant Accessibility to Unknown Apps
Only grant accessibility to apps you trust completely — screen readers, password managers, and known accessibility tools.
Be Wary of Social Engineering
Common tricks: "Your phone is infected, enable accessibility to clean it," "Enable accessibility for battery optimization." None of these are legitimate.
Use Google Play Protect
Keep Play Protect enabled. It scans sideloaded apps and can detect known keylogger families.
Consider Advanced Protection
Google's Advanced Protection Program blocks most sideloaded app installs.
The iOS Difference
iOS does not have a direct equivalent to Android's accessibility-based keylogging. iOS apps cannot read content from other apps, and custom keyboards are visible to the user. This is one reason iOS is generally more resistant to keyloggers.
Frequently Asked Questions
Can Android keyloggers capture passwords from password managers?
Yes. If a password manager auto-types a password, the accessibility service can capture it as it appears in the text field.
How can I tell if I have a keylogger?
Check Settings > Accessibility for unknown services. Check Settings > Apps for apps you don't recognize. Use MVT for forensic analysis.
Does using a custom keyboard protect me?
No. Accessibility-based keyloggers intercept input events from any keyboard.
Can factory reset remove a keylogger?
Yes. A factory reset removes all apps, including keyloggers. However, MDM profiles may survive a reset.









