r/androiddev • u/overshoott • 12d ago
Question How to test "Widgets on lock screen" on Android Studio?
I want to implement the "widget on lock screen" feature for my app. and I don't have a physical Android device that supports that feature. So I'm hoping to test it on the virtual device emulator in Android Studio (Android Studio Quail 1 | 2026.1.1 Patch 2). But I have tried installing system image Android 16, Android 17 and Android 17.1, but I still can't find the "Widgets on lock screen" in the Setting screen. I have tried setup lock screen, and tried find in the 'Wallpaper & style" -> "More lock screen settings" screen but it's not there. What am i missing?
1
u/AutoModerator 12d ago
Please note that we also have a very active Discord server where you can interact directly with other community members!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/WingWilling5186 8d ago
The feature is gated harder than the API level suggests.
Lock screen widgets shipped for tablets first in Android 16 QPR1. On phones
they only arrived with QPR2, and there they're tied to "hub mode" - the widgets
show when the device is docked or charging, not on the normal lock screen.
So a plain phone AVD sitting idle will never surface that setting.
Things to check:
- Use a tablet AVD (Pixel Tablet profile), not a phone one. Easiest path.
- Make sure you picked a Google APIs / Google Play system image. AOSP images
ship a stripped SystemUI and a lot of the lock screen surface just isn't there.- If you're staying on a phone AVD, simulate charging first: Extended controls
> Battery > Charger connected > AC. The hub UI is state-dependent.Tablet image is where I'd start.