Skip to content

About

Android widget that change image for each phone unlock

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Unlock Photo Widget 📸

An Android application that changes your home screen widget photo automatically every time you turn off or unlock your device. Compatible with a wide range of Android devices, including Samsung, Xiaomi, Huawei, and more...

Current features

  • Auto-update on screen unlock
  • Persistent foreground service : Uses a foreground service to ensure the widget keeps updating without being killed by the Android system.
  • Dynamic 1x1 widget : Starts as a compact 1x1 tile on your home screen grid while remaining fully resizable to fit your layout.

Requirements

  • Android SDK : Minimum API Level 26 (Android 8.0 Oreo)
  • Target SDK : API Level 34+
  • Permissions :
    • READ_MEDIA_IMAGES / READ_EXTERNAL_STORAGE (to read your photo gallery)
    • FOREGROUND_SERVICE , FOREGROUND_SERVICE_DATA_SYNC (to keep the receiver active)
    • POST_NOTIFICATIONS (for the required background service notification)

Next features

  • Photo picker : An interface with a custom image picker to allow users to select, manage, and remove images directly from the app.
  • Automatic Boot Launch : Improve foreground service logic when device reboot.
  • ...

Setup

  1. Install
  • Download the latest .apk directly to your phone from the Releases page,
  • Or export the .apk file. Go to Android Studio : Build > Generate app Bundles or APKs > Generate APKs
  1. Open the .apk file on your phone to install it.

  2. Create a folder in your Gallery app named "WidgetPhotoFolder" (Note : there is currently no image picker interface, the application directly reads from this specific folder name)

  3. Add the widget

  • Go to your phone's HomeScreen and open the Widgets menu.
  • Find UnlockPhotoWidget and drag it onto your screen. You can add multiple widgets on your homescreen.
  • Grant storage/photos permissions when prompted.

⚠️ Important

  • After Phone Restart: Due to background service restrictions on certain Android devices, the widget might pause updating after a device reboot. Simply open the app once or tap the widget to reactivate the background service.
  • Widget Stops Updating: If the widget freezes or stops cycling photos, launching the main app once will instantly restart the background process.

Feedback & Bug Reports

If you encounter any bugs or issues, feel free to open an Issue on this repository. Your feedback is greatly appreciated :)

About

Android widget that change image for each phone unlock

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages