In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .

Redmi K20 Pro

[Discussion] [Awareness] Never set this image as wallpaper. It could harm your phone!

2020-06-02 00:41:22
285 14

Hello Mi Fans,
I hope everyone is doing good. Today I'm going to share some serious problems with wallpaper - Yes a Wallpaper could do harm your device.

Simply setting an image as wallpaper on your phone could cause it to crash and become unable to boot. The issue was reported by well-known leaker Universe Ice on Twitter and confirmed by dozens of other users.

Android Authority tested it themselves. First, on his daily driver, the Mate 20 Pro, which doesn’t appear to be affected. He was able to replicate the issue on a Google Pixel 2. After setting the image as a wallpaper, the phone immediately crashed. It attempted to reboot, but the screen would constantly turn on and off, making it impossible to pass the security screen. For security reasons, we couldn't post the full-size photo here.

Restarting the device in safe mode (by holding down the volume button during boot-up) did not fix the issue. All need to reset the device by the sack of Personal data.

Wallpaper crash explained:
Davide Bianco, one of the lead developers of the POSP custom ROM project, explained to Android Authority About This image. I quoting the whole message. For reference, here is the method definition.
The main issue right here is that SystemUI only handles sRGB images for the wallpaper and doesn’t have any check against non-sRGB wallpapers. This can lead to a particular crash in the ImageProcessHelper class, as a variable used to access an array goes over the array bounds.

This variable is called y, and it’s the sum of the current scanned pixel rgb values. This pixel is obtained from scanning every row and column of the greyscaled picture surface. Every time we get a pixel, we assign to y the sum of its rgb values (usually max is 255) and use said variable to access an element of the histogram array (which size is 256 max) and do stuff with said element.

Now, for normal greyscaled images the sum of rgb values is always 255, but this is no normal image. The variable y goes over 255, and it generates an out of bounds exception (any exception in SysUI is treated as fatal, leading to an infinite loop of crashes because the image gets processed every time SysUI starts). Now, one solution could be to add a check after y is assigned a value that basically sets y to 255 if it ever goes over the max bound. This actually works, but we get worse quality for some reason.

The LineageOS guys were able to find out that this particular issue happens because of poor rounding, mostly because the rgb values were always rounded to ceil instead of normal rounding. They were able to fix it by manually rounding the values and apparently this method also retains quality, but I really don’t see how, mostly because SysUI seems to always convert the image to sRGB, leading to a color loss when the color space is larger.

It was also discovered by one 9to5Google developer that the issue doesn’t occur on Android 11 as the picture is always converted to sRGB before it gets processed in any way.

I also tried crafting my own broken image with photoshop or gimp, but SysUI always converted the image to the safe color space, leading to no crash (but a loss of colors ofc). I even tried extracting the broken image color profile and using it in a new image, but still couldn’t get SysUI to crash.

So, Don't do it on your phone or don't do prank it with your friends. The good news is it has been already posted as a bug.

Source : 1

Special thanks to our Admin mnnahid Bhai & All SMods/Mods and Members
for their continuous supports and inspirations

Coronavirus (COVID-19) Advisory:
  • Stay at home
  • Use Hand sanitizer and soap frequently
  • Use Mask and gloves.


Number of participants 2 Experience +25 Pack Reason

View Rating Log

2020-06-02 00:41:22
Favorites1 RateRate

Semi Pro Bunny

Nahid1971 | from Redmi Note 7 Pro


2020-06-02 00:46:46

Photography Team

Mahmudul31594 | from Redmi K20 Pro


Omg! Thank you so much for share this. This is very important for all.
2020-06-02 00:57:13
Mahmudul Hasan
Photography Team, Mi Community Bangladesh

Techie Team

MR.MIJAN | from app


Very important information. Thanks for letting us know the news.
2020-06-02 01:25:38
Mijanur Rahman
Tech Team, Mi Community Bangladesh

Semi Pro Bunny

Nazmul Haque Himel | from Mi Note 3


is it true....
2020-06-02 02:16:03

Device Team

AB Siddik Author | from app


Nazmul Haque Himel
is it true....

2020-06-02 02:23:00
Special Team - Device (Mobile), Mi Community Bangladesh


Device Team

AB Siddik Author | from app


Very important information. Thanks for letting us know the news.

thanks bro
2020-06-02 02:23:16
Special Team - Device (Mobile), Mi Community Bangladesh


Device Team

AB Siddik Author | from app


Omg! Thank you so much for share this. This is very important for all.

thank you bro
2020-06-02 02:23:34
Special Team - Device (Mobile), Mi Community Bangladesh



Dipto78 | from Redmi 7


Very Important Information, Thanks Bro.
2020-06-02 08:19:32
Dipto Prodhan
Mi Community Bangladesh

Photography Team

Mahmudul31594 | from Redmi K20 Pro


AB Siddik
thank you bro

Most Welcome
2020-06-02 11:13:09
Mahmudul Hasan
Photography Team, Mi Community Bangladesh

Wizard Bunny

Nur.siddique | from Redmi Note 5


This is very important issue for all..
OMG. 😣
thank you for sharing this.
2020-06-02 13:36:21
Nure Alam
Device Team, Mi Community Bangladesh.
please sign in to reply.
Sign In Sign Up

AB Siddik

Device Team

  • Followers


  • Threads


  • Replies


  • Points


3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
Throw Back with Mi 2018
9th Birthday of Xiaomi
Redmi Note 7
বাংলা নববর্ষ
Suited and Booted
New Home
30K Members
Limited Edition Space Medal
Challenge Photographer
Android Q
40K Registered Users
Eid Mubarak
Tech Talent
50K Users
Fortune 500
App Maniac
Redmi 7A
60K Registered Users
Off Topic Guru
Mi A3
MIUI Weekly Poll
Super Saturday
Super Tuesday
90K Registered Users
Super Monday
Super Friday
Victory Day
100K Celebrate
Super Sunday
Mi POP 2020
Feliz Año Nuevo Chino
MIUIThemes App News
Uk Comm 150K
Scheduled Message
Medalla Community 300K
Sonic Blue
আন্তর্জাতিক মাতৃভাষা দিবস
150K Registered Users
110,000,000+ Redmi Note
10th Anniversary of Xiaomi
Super Wednesday
বাংলা নববর্ষ ১৪২৭
Android One
Mobile Game
Redmi 8
23 Nisan Kutlu Olsun!
Serie Redmi Note
Favorite Goalkeeper
Ramadan Kareem
Meetings from Home
Lefty Star
Favorite Author
Streaming Geek
Favorite Actor
Favourite Football Team
Redmi Note 8
Mail Lover
Super Thursday
Başkana Cevap Madalyası
Redmi Note 8 Pro
Corona Awareness
Redmi 8A
First Smartphone
Ramazan Bayramı
Phone Finder
Eid Mubarak
TV Series Freak
MI Note 10 Lite
MIUI Boot Animation
200 Mil Mi Fans En México
Favorite Singer
Redmi Note 8 Series 30 Million Poster
Redmi Note 9S
Mi Bunny
UK Community 300K Users Medal
Redmi Note 9
Cloud Storage
Redmi Note 9 Pro
30 Million Redmi Note 8 Series
Redmi Note 9 Pro Feature
Redmi 9 Colors
200K Registered Users
2nd Anniversary
Nepal "Happy New Year"
Redmi Note 9S Feature
Redmi Note 9 Feature
Navigation System
Note Color
First Anniversary
K2K #4
Favorite Bangladeshi Food
Internet Speed
Eid Mubarak 2020
Redmi 9A
Redmi Note 9 Pro Camera
Football Manager
The UI Mode
Material Expert
Redmi 9A Feature
MIUI 12 Dark Mode
Favorite Soft Drinks
Battery Survey
Display Expert
I Love Xiaomi

Read moreGet new

Mi Comm APP

Stay updated on Mi Products and MIUI

Copyright©2010-2020, All Rights Reserved
Quick Reply To Top Return to the list