Smart Screen Unlocker Recovery is an advanced, automation-driven forensic and accessibility framework. It is specifically engineered to help mobile technicians, forensic experts, and everyday users recover access to Android devices with completely broken displays, dead touch digitizers, or inaccessible screens.
By injecting raw kernel-level touch gestures via an authorized ADB (Android Debug Bridge) interface, this tool acts as a synthetic hardware digitizer, allowing you to input your known pattern and recover your data.
β οΈ CRITICAL NOTICE: This is NOT a cracking, brute-forcing, or bypassing tool. It requires the device to have USB Debugging enabled, an authorized RSA fingerprint with the host PC, and the user MUST know the correct lock screen pattern.
- π‘οΈ Multi-State Awareness (AFU/BFU): Dynamically detects if the device is in Before First Unlock (BFU) or After First Unlock (AFU) states and adjusts the vertical matrix geometry accordingly.
- π Smart XML Container Bypassing: Intelligently ignores fake, full-screen transparent containers deployed by modern security patches (e.g., Samsung OneUI 8+) to locate the true lock screen grid.
- π¨ Interactive Visual GUI: Features a sleek, terminal-spawned graphical canvas allowing the technician to visually draw the pattern using a mouse, mirroring physical device interaction.
- β±οΈ Auto-Timeout Prevention: Automatically boosts the device's
screen_off_timeoutto 5 minutes during the operation to prevent screen sleep, seamlessly restoring the original settings post-injection. - β
Deep Kernel Verification: Interrogates the Android OS (
dumpsys window&dumpsys keyguard) to mathematically verify a successful unlock without relying on visual screen feedback.
| ποΈ Live Interactive Drawer | π Deep Telemetry & Execution Log |
|---|---|
![]() |
![]() |
![]() |
![]() |
To account for fragmentation across Android OEMs, DPI scaling, and custom UIs, this tool utilizes a sequential cascade of mathematical engines. If one fails, the script dynamically adjusts its geometry and fires the next!
| Engine | Strategy Name | Description | Target Devices |
|---|---|---|---|
| 1 | Dynamic XML Hierarchy |
Attempts to pull the exact pixel bounds directly from the UI Automator tree. | Universal (If not blocked) |
| 2 | Golden Ratio Base Matrix |
Uses empirical OEM aspect ratios to calculate a mathematically perfect square or rectangle grid. | Samsung & Generic AOSP |
| 3 | DPI Shifted Matrix |
Compensates for users who have altered their display scaling (Small/Large UI sizes). | Universal |
| 4 | Custom High Matrix |
Targets shifted notification shade layouts, commonly found in Android 13+ environments. | Samsung & Custom ROMs |
| 5 | Custom Extreme Matrix |
Built from extreme-case hardware telemetry for unique screen resolutions. | Tall Aspect Ratios (21:9) |
| 6 | Cross-Over Failsafe |
Tests BFU matrices on AFU states (and vice-versa) in case of Knox or SystemUI desynchronization. | Universal |
This framework calculates screen matrices dynamically, making it theoretically compatible with any Android device. However, it has been rigorously tested and optimized for the following architectures:
| OEM / Brand | Tested Models (Examples) | UI Environment | Success Rate |
|---|---|---|---|
| Samsung | Galaxy S24 (SM-S921U), Galaxy S23 (SM-S911U) | OneUI 5.0 - 8.5 | π’ 100% |
| TCL | T609DL, 30 SE, 40 XL | TCL UI / AOSP 12-13 | π’ 100% |
| Xiaomi / POCO | Redmi Note 12, POCO X5 | MIUI 14 / HyperOS | π’ High |
| Motorola | Moto G Stylus, Edge series | MyUX / AOSP | π’ High |
| Pixel 6, Pixel 7, Pixel 8 | Pixel UI | π’ High |
You do not need Python installed. Simply download the standalone .exe from the Releases tab.
- Ensure USB Debugging is enabled on the target Android device.
- Connect the device to your PC and authorize the connection.
- Run
Smart_Screen_Unlocker.exe. - Draw your pattern on the interactive GUI and watch the terminal automate the injection!
# Clone the repository
git clone [https://github.com/alisakkaf/Smart-Screen-Unlocker-Recovery.git](https://github.com/alisakkaf/Smart-Screen-Unlocker-Recovery.git)
cd Smart-Screen-Unlocker-Recovery
# Install build dependencies (optional, for compiling)
pip install -r requirements.txt
# Execute the script
python main.py
Once Smart Screen Unlocker Recovery successfully injects the kernel gestures and bypasses the secure BFU/AFU lockscreen state, your Android device is now fully unlocked and responsive to external display utilities.
You can immediately transition to scrcpy to achieve full low-latency screen mirroring, audio forwarding, and peripheral control to safely back up your system data.
- Keep your device connected via the authorized USB/Wireless ADB interface.
- Download and extract the latest version of
scrcpyonto your host machine. - Execute the following terminal commands depending on your recovery workflow:
# Standard high-performance mirroring with the physical device screen off
scrcpy --always-on-top --turn-screen-off --stay-awake
# Advanced forensic stream optimized for backup operations
scrcpy --max-fps=30 --video-bit-rate=4M --audio-bit-rate=128k --window-title="Recovered Device Screen"
---
## π οΈ Compiling to .exe (For Developers)
To bundle the utility into a portable runtime executable with your custom icon (`6437133.png`), execute this command in your PowerShell/CMD:
```powershell
python -c "from PIL import Image; img = Image.open('6437133.png'); img.save('icon.ico', format='ICO')" ; pyinstaller --noconfirm --onefile --console --icon="icon.ico" --name="Smart_Screen_Unlocker" --clean main.py
If this digital forensics asset saved your data or assisted your mobile repair workflow, please consider giving the repository a β Star to increase its distribution visibility across developer channels!
- Lead Engineer: Ali Sakkaf
- π Official Website: alisakkaf.com
- π» GitHub: @alisakkaf
- π¦ Facebook: AliSakkaf.Dev
Developed By : Ali Sakkaf Β© 2026. All Rights Reserved.



