Repository navigation
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 callsonApplyWallpaper. A picker that callsonApplyWallpapergets aWallpaperDescriptionthat carries the content. - New
OpenGlLiveWallpaperRequest.contentTag(opaque, at most 256 characters) andWallpaperOperationResult.effectiveTarget. Applying new content to one screen does not change the other screen. - New
WallpaperCapabilities.supportsPerScreenLiveWallpaperandAsyncWallpaper.getLiveWallpaperScreens(), which returnsLiveWallpaperScreenswith the Home and LockLiveScreenState. 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
effectiveTargetisboth. Video live wallpapers are unchanged. On iOS,supportsPerScreenLiveWallpaperis false, andgetLiveWallpaperScreens()returns an empty snapshot.
Daily schedule
A daily schedule applies one wallpaper for each time of day.
- New
startDailySchedule,stopDailySchedule,applyCurrentScheduleEntry, andgetDailyScheduleStatus. 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.
startDailySchedulestops rotation, and a successfulstartWallpaperRotationstops the daily schedule. applyCurrentScheduleEntryre-arms an alarm that a force stop removed.getDailyScheduleStatusreports 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.
nextSwitchEpochMsis 0 while the cache is incomplete. - Android only. iOS and other platforms return
unsupported.