Disable the Android lock screen using ADB — powered by Go.
dlock
is a powerful CLI tool that automates the process of disabling the lock screen on Android devices connected via ADB. Designed for developers, testers, and automation workflows with support for multiple devices and concurrent processing.
- 🚀 No root required
- 🔍 Automatic device detection
- 📱 Multi-device support with concurrent processing
- 🎯 Target specific devices by UDID
- 🔐 Multiple disabling strategies for maximum compatibility
- ✅ Verification of successful lock screen removal
- 📊 Detailed execution logs and status reporting
⚠️ Comprehensive error handling and troubleshooting
- ADB (Android Debug Bridge) installed and available in your system PATH
- USB debugging enabled on your Android device(s)
-
Download the latest binary from the releases page
-
Install ADB on your system:
- macOS:
brew install android-platform-tools
- Linux:
sudo apt-get install android-tools-adb
- Windows: Download from Android Platform Tools
- macOS:
-
Enable USB debugging on your Android device:
- Go to Settings > About Phone
- Tap "Build Number" 7 times to enable Developer Options
- Go to Settings > Developer Options
- Enable "USB debugging"
-
Connect your Android device(s) via USB
-
Run dlock:
# Process all connected devices ./dlock # Process specific devices by UDID ./dlock -devices "ABC123DEF456 789GHI012JKL" # Show help ./dlock -help
-
Get device UDIDs (if needed):
adb devices
The tool automatically:
- Detects connected Android devices
- Tries multiple methods to disable the lock screen
- Reboots the device to apply changes
- Validates that the lock screen has been removed
If the script fails to disable the lock screen:
- Ensure USB debugging is enabled on your device
- Check if your device requires USB debugging authorization
- Try enabling 'Settings > Developer Options > Disable permission monitoring'
- Some devices may have policy restrictions preventing lock screen modifications
- Make sure ADB is properly installed and accessible from the command line
- Check USB connection and try a different USB cable if necessary
- Only use this tool on devices you own or have permission to modify
- Be aware that disabling the lock screen may reduce device security
- Some enterprise policies or device administrators may prevent lock screen modifications
- Re-enabling the lock screen may require a device reset or manual configuration
This project is licensed under the MIT License - see the LICENSE file for details.