Monday, September 26, 2016

Why setting a 1x1 pixel wallpaper fails on (a few) Android devices?

To set a black or solid color wallpaper on an Android device, one can use a tiny 1x1 pixel image with the pixel set to that color. This works on most Android devices (including Nexus devices and others that run stock Android). The system knows how to fill the entire screen with that one pixel, giving you a full solid color wallpaper.

However, there are some Android devices that crash immediately after setting the 1x1 pixel image wallpaper:
  • Unfortunately, System UI has stopped.
  • Unfortunately, Home has stopped.

Trying slightly larger image sizes (2x2, 3x3, 4x4) also fails. For some devices, you need a 32x32 pixel image to finally get your color wallpaper working.

I just created an open source Android app to test this issue: Minimum Wallpaper. It's available on Google Play:
http://ift.tt/2ddBSZD

Its source code is available on GitHub:
http://ift.tt/2cPvEM1

So far I have a report with screenshot that on Allview P8 Energy the minimum wallpaper size that works is 32x32. From another project I'm involved in, I have some information that a 1x1 wallpaper also fails on devices such as:
  • LG: G5, Stylus 2
  • Meizu: m1 note, m2 note, MX5, Pro 6

My questions:
  • What could be a reasonable reason that (only) some devices are crashing/failing after setting a 1x1 pixel wallpaper?
  • What could be the minimum "safe" wallpaper size that should reasonable work on all Android devices?

My kind request: can Android device owners that read this thread - especially if they own one of the above mentioned devices - LG (G5, Stylus 2), Meizu (m1 note, m2 note, MX5, Pro 6) - test the Minimum Wallpaper app and report back the results on GitHub at:

http://ift.tt/2ddBtGo

Thank you


from xda-developers http://ift.tt/2cPvJPC
via IFTTT

No comments:

Post a Comment