Features • Download • Installation • How to Use • Technologies • Contributing • License
Lock Screen Widget is a simple and elegant Android app that allows you to lock your device screen with just one tap on a home screen widget.
Built with Material You design, the app automatically adapts its colors to match your wallpaper on Android 12 and above.
- 🔒 One-tap screen lock - Lock your screen instantly from the home screen
- 🎨 Material You support - Dynamic colors based on your wallpaper (Android 12+)
- 🌙 Dark/Light theme - Automatically follows system theme
- 📱 Lightweight - Minimal battery and storage usage
- 🚀 Easy setup - Simple activation process
- 🆓 Free & Open Source - No ads, no tracking
- Download the latest APK from Releases
- Enable "Install from unknown sources" if prompted
- Install the APK
- Open the app and follow the setup instructions
# Clone the repository
git clone https://github.com/Gabrick75/LockScreenApp.git
# Open in Android Studio
# Build and run on your device- Open the Lock Screen Widget app
- Tap "Activate Administrator"
- Confirm the activation
- Go to your home screen
- Long press on an empty area
- Select "Widgets"
- Find "Lock Screen Widget"
- Drag it to your home screen
Simply tap the widget to instantly lock your screen! 🔒
| Technology | Purpose |
|---|---|
| Kotlin | Programming language |
| Android SDK | Native Android development |
| Material Design 3 | Modern UI components |
| Material You | Dynamic theming (Android 12+) |
| Device Admin API | Screen lock functionality |
| Requirement | Minimum |
|---|---|
| Android Version | 7.0 (API 24) |
| Material You | Android 12+ (API 31) |
app/
├── src/main/
│ ├── java/com/lockscreen/app/
│ │ ├── MainActivity.kt
│ │ ├── LockScreenWidget.kt
│ │ └── MyDeviceAdminReceiver.kt
│ ├── res/
│ │ ├── layout/
│ │ ├── drawable/
│ │ ├── values/
│ │ └── xml/
│ └── AndroidManifest.xml
└── build.gradle.kts
Contributions are welcome! Here's how you can help:
- Fork the repository
- 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
- Add widget customization options
- Add multiple widget sizes
- Translate to more languages
| Issue | Reason | Workaround |
|---|---|---|
| "Device locked by work policy" message | Device Admin API limitation | None (Android limitation) |
| Fingerprint disabled after lock | Device Admin API limitation | Use PIN/Password |
Note: These limitations are due to Android's Device Admin API. A future update may include an Accessibility Service option that allows biometric unlock.
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name
- GitHub: @Gabrick75
Give a ⭐ if this project helped you!
Made with ❤️ for Android
