Skip to content

3.7.0

Latest

Choose a tag to compare

@codenameakshay codenameakshay released this 05 Nov 13:26
f4b7c42

Android release with per-screen OpenGL live wallpapers and a daily wallpaper schedule. The Dart API gains fields and methods. Existing callers are unaffected.

Per-screen OpenGL live wallpapers

  • Android 16 (API 36): the OpenGL live wallpaper can show different content on the Home Screen and the Lock Screen. Each screen keeps its own shader, textures, and frame rate.
  • The user still picks Home, Lock, or both in the system preview. Android has no public API to set a live wallpaper on one screen. Each engine reads its screen (getWallpaperFlags) and that screen's wallpaper id. A new id means the user just set that screen, so the engine takes the staged content. A known id means a restart, so the engine keeps that screen's content. This works with the stock AOSP live picker, which never calls onApplyWallpaper. A picker that calls onApplyWallpaper gets a WallpaperDescription that carries the content.
  • New OpenGlLiveWallpaperRequest.contentTag (opaque, at most 256 characters) and WallpaperOperationResult.effectiveTarget. Applying new content to one screen does not change the other screen.
  • New WallpaperCapabilities.supportsPerScreenLiveWallpaper and AsyncWallpaper.getLiveWallpaperScreens(), which returns LiveWallpaperScreens with the Home and Lock LiveScreenState. Call it after the preview closes.
  • Android 15 (API 35) and older, or a build with the description flag off, is unchanged: all OpenGL engines share the latest content, and effectiveTarget is both. Video live wallpapers are unchanged. On iOS, supportsPerScreenLiveWallpaper is false, and getLiveWallpaperScreens() returns an empty snapshot.

Daily schedule

A daily schedule applies one wallpaper for each time of day.

  • New startDailySchedule, stopDailySchedule, applyCurrentScheduleEntry, and getDailyScheduleStatus. A schedule has 2 to 100 entries, each at a different minute of the day. Each entry owns the local time up to the next entry, and the last entry wraps past midnight.
  • Every source is cached when the schedule starts. If one source fails, the request fails and the running schedule or rotation stays as it was.
  • One inexact alarm drives the switches. No exact-alarm permission is needed, so Doze can deliver a switch some minutes late.
  • Boot, clock changes, time zone changes, and app updates apply the current entry and arm the alarm again. The manifest now also listens for MY_PACKAGE_REPLACED.
  • Only one schedule runs. startDailySchedule stops rotation, and a successful startWallpaperRotation stops the daily schedule.
  • applyCurrentScheduleEntry re-arms an alarm that a force stop removed. getDailyScheduleStatus reports the mode, entry indexes, next switch time, and last error.
  • Alarm, boot, clock and app-update broadcasts apply the current entry at once, inside the alarm's idle allowance. When another wallpaper change holds the lock for more than 3 seconds, or the apply fails, a durable background job applies it later. The broadcast always finishes within its time limit. These applies run even when the entry has not changed.
  • Missing cached sources appear in status immediately. Applying fails and cancels the unusable alarm. nextSwitchEpochMs is 0 while the cache is incomplete.
  • Android only. iOS and other platforms return unsupported.