LightBlog

jeudi 4 juin 2020

[Update: New Explanation, Google Response] This wallpaper triggers a rare bug causing Android devices to bootloop

Update 1 (06/04/2020 @ 03:12 AM ET): Explanations have emerged on the cursed wallpaper bug, alongside a response from Google. Scroll to the bottom for more information. The article as published on June 1, 2020, is preserved below.

Imagine you’re scouring the internet for cool wallpapers and you come across a picturesque landscape. It has everything; a lush green forest, a pristine lake with a tiny island, snow-capped mountains in the background, and a thick cloud cover with sunlight seeping in through the gaps. You immediately download the image, set it as your phone’s wallpaper, and boom! Your Android phone gets stuck in a bootloop. Sounds unlikely, doesn’t it? Well, it’s true for this particular wallpaper.

The wallpaper was recently shared on Twitter by renowned Samsung leakster Ice Universe, who claimed that the wallpaper “will cause your phone to crash!” Despite their warning, several users downloaded the wallpaper to check if it actually did do anything on their phone and they were met with the following results:

According to Davide Bianco, lead developer of the AOSP-based custom ROM “POSP”, this particular wallpaper causes some Android devices to crash as it makes use of the RGB color space, instead of the sRGB color space that is supported natively on Android. Bianco has submitted a patch to AOSP that reportedly fixes the issue and the description of the patch states that “The issue occurs when the user tries to set as wallpaper an image that is not sRGB. What happens is that variable y value is higher than the histogram bounds, making SysUI crash. One possible fix is to limit y value to be always less than 256.” Along with Bianco, two developers, XDA Senior Member BadDaemon and XDA Recognized Developer luca020400, from the popular LineageOS custom ROM team have also come up with a unique solution to the problem. You can check out the patch descriptions over on the LineageOS Gerrit by following this link and this link.

We strongly recommend against using this image as your wallpaper under any circumstances. In case you have already used it and your device is stuck in a bootloop, please check the instructions below on how you may be able to recover your device.

A report from 9to5Google on the matter further reveals that the issue is limited to devices running Android 10 or older and it doesn’t affect devices running the Android 11 Developer Preview. This is due to the fact that on Android 11, the system converts the color space if it’s not supported, but on Android 10 it does not. Which means that this isn’t an issue with this particular image and could be caused by other images using the RGB color space.

Do note that while the issue doesn’t affect all Android devices, we strongly recommend against trying the wallpaper on your phone. In case you try it anyway, you might be able to recover your device by either resetting it completely or by entering safe mode and changing the wallpaper. But since some users over on Twitter weren’t able to recover their devices using the aforementioned methods, it would be best if you don’t use the exact image as your wallpaper. If you really like the wallpaper, just take a screenshot of the image and use that as your wallpaper instead.


Update: Explanation and Response from Google

Expanding on the causes of the bug as explained by XDA Senior Member BadDaemon and XDA Recognized Developer luca020400, the “cursed” wallpaper is encoded in a special color space which is called “Google/Skia/E3CADAB7BD3DE5E3436874D2A9DEE126” — this is the full name of the color space, and Skia refers to the 2D graphics library made by Google. In contrast, most other wallpaper images are encoded in a color space called “sRGB”.

In Android versions 10 and older, all images are converted to sRGB unless otherwise specified by the developers. There’s a rare bug that can occur when converting the image to sRGB, wherein the code that calculates the “luminance” value of each pixel manages to exceed the maximum limit of 255.

Luminance is calculated using the following formula:

Luminance = .2126f * r + .7152f * g + .0722f * b

Here “r”, “g”, and “b” are red, green, and blue color values represented in an 8-bit value from 0 to 255.

The problem with this calculation is that it always rounds the final value up. The “cursed” wallpaper has the following RGB values: 255, 255, 243, which when plugged into the above equation looks like:

Luminance = .2126 * (255) + .7152 * (255) + .0722 * (243)
Luminance = 256

This value causes SystemUI, and basically the whole OS, to crash because it exceeds the maximum value. It’s a bug that’s so incredibly specific because it involves a combination of a rounding error and color space conversion error.

This bug does not affect Android 11 because the image’s “Skia” color space is not converted to sRGB by default. Thus, this color space conversion error and the rounding error does not occur on Android 11.

However, Romain Guy from the Android Toolkit team at Google believes that the root cause of this issue is only in the way that luminance is calculated and not in any color space conversion issues. Google is conducting its own testing, so we will likely see what they come up with soon.

The post [Update: New Explanation, Google Response] This wallpaper triggers a rare bug causing Android devices to bootloop appeared first on xda-developers.



from xda-developers https://ift.tt/2TY96QH
via IFTTT

Facebook Messenger’s chat heads switch to Android 11’s bubble notifications API

Google introduced the new Bubbles API with Android 10 Beta 2 back in April last year. The API was initially offered as an opt-in feature for developers, with Google urging them to test the API in their apps so that the supported apps were ready when the feature finally rolled out in a future Android release. As expected, the feature was enabled by default in the Android 11 Developer Preview 1 that was released earlier this year. In the leaked Android 11 Beta, the Bubbles feature is now available in Notification settings (and not in Developer Options), however, developers still have to enable support for showing notifications in a Bubble. Up until now, we’ve only seen the feature in action in an APK teardown of the Google Messages app. But the latest update for Facebook Messenger also switches the app over the Bubbles API.

For the unaware, Facebook Messenger has long had a feature for floating notification bubbles called “Chat Heads”. The feature made use of Android’s System Alert Window API, but in Facebook Messenger version 268.0.0.3.118 the app is switching over to the new Bubbles API if the device is running Android 11. This feature works on our tipster’s Pixel 4XL running Android 11 Beta 1 and our Editor-in-Chief Mishaal Rahman‘s Pixel 3a XL, running Android 11 DP4.

Facebook Messenger Android 11 Bubbles Facebook Messenger Android 11 Bubbles Facebook Messenger Android 11 Bubbles

As you can see in the attached screenshots, the feature shows up as a new option called Bubbles in the Facebook Messenger settings. Once enabled, it gives you the option to choose if you wish to see Bubbles for all conversations, selected conversations, or no conversations from within the Messenger notification settings. While the feature is making use of the newer API, it still looks pretty much the same as the older Messenger Chat Heads. Whenever you receive a new message, it shows up as a chat bubble clinging to a side on your device’s home screen. Tapping on the bubble opens up the conversation in a floating window where you can quickly reply to messages.

You can move the bubble from one side to the other by tapping and holding the bubble and then dragging it to the other side. You also get the option to have multiple conversations in a single bubble by tapping on the plus icon at the top and adding a new contact. To dismiss a bubble, you can tap and hold on it and then drag it to the X icon that appears close to the bottom of the display.


Thanks to Hani Mohamed Bioud for the tip and screenshots!

The post Facebook Messenger’s chat heads switch to Android 11’s bubble notifications API appeared first on xda-developers.



from xda-developers https://ift.tt/3dvWBUl
via IFTTT

mercredi 3 juin 2020

Facebook Messenger’s chat heads switch to Android 11’s bubble notifications API

Google introduced the new Bubbles API with Android 10 Beta 2 back in April last year. The API was initially offered as an opt-in feature for developers, with Google urging them to test the API in their apps so that the supported apps were ready when the feature finally rolled out in a future Android release. As expected, the feature was enabled by default in the Android 11 Developer Preview 1 that was released earlier this year. In the leaked Android 11 Beta, the Bubbles feature is now available in Notification settings (and not in Developer Options), however, developers still have to enable support for showing notifications in a Bubble. Up until now, we’ve only seen the feature in action in an APK teardown of the Google Messages app. But the latest update for Facebook Messenger also switches the app over the Bubbles API.

For the unaware, Facebook Messenger has long had a feature for floating notification bubbles called “Chat Heads”. The feature made use of Android’s System Alert Window API, but in Facebook Messenger version 268.0.0.3.118 the app is switching over to the new Bubbles API if the device is running Android 11. This feature works on our tipster’s Pixel 4XL running Android 11 Beta 1 and our Editor-in-Chief Mishaal Rahman‘s Pixel 3a XL, running Android 11 DP4.

Facebook Messenger Android 11 Bubbles Facebook Messenger Android 11 Bubbles Facebook Messenger Android 11 Bubbles

As you can see in the attached screenshots, the feature shows up as a new option called Bubbles in the Facebook Messenger settings. Once enabled, it gives you the option to choose if you wish to see Bubbles for all conversations, selected conversations, or no conversations from within the Messenger notification settings. While the feature is making use of the newer API, it still looks pretty much the same as the older Messenger Chat Heads. Whenever you receive a new message, it shows up as a chat bubble clinging to a side on your device’s home screen. Tapping on the bubble opens up the conversation in a floating window where you can quickly reply to messages.

You can move the bubble from one side to the other by tapping and holding the bubble and then dragging it to the other side. You also get the option to have multiple conversations in a single bubble by tapping on the plus icon at the top and adding a new contact. To dismiss a bubble, you can tap and hold on it and then drag it to the X icon that appears close to the bottom of the display.


Thanks to Hani Mohamed Bioud for the tip and screenshots!

The post Facebook Messenger’s chat heads switch to Android 11’s bubble notifications API appeared first on xda-developers.



from xda-developers https://ift.tt/3dvWBUl
via IFTTT

Build a New Career in Cybersecurity With This 10-Course Training Bundle

Even when whole cities are in lockdown, cybercrime never stops. As a result, top companies are always on the lookout for help with cybersecurity — experts estimate there will be 3.5 million unfilled jobs by next year. The Ultimate 2020 White Hat Hacker Certification Bundle helps you break into this lucrative world, with 10 courses teaching you practical skills and working towards acing top exams. You can get the bundle now for just $39.90 at the XDA Developers Depot.

White hat hackers are specialists in finding the flaws that malicious hackers try to exploit. Certified professionals can make $100k a year, and those who concentrate on bug bounty programs can earn significantly more. 

This bundle helps you launch your own white hat hacking career, with 98 hours of essential training. Through concise video tutorials, you learn about the darknet, common forms of malware, zero-day vulnerabilities, and operating systems security. You also discover how to hack servers, websites, and apps using a variety of key tools — including custom Python scripts and automated tests.

The courses are delivered by several top tutors, including Joe Parys, who has helped over 500,000 students on Udemy. Along with the practical training, you get full prep for the all-important CompTIA CySA+ and PenTest+ exams.

Worth $1,345, the bundle is now only $39.90 with lifetime access included.

 
The Ultimate 2020 White Hat Hacker Certification Bundle – $39.90

See Deal

Prices subject to change 

The post Build a New Career in Cybersecurity With This 10-Course Training Bundle appeared first on xda-developers.



from xda-developers https://ift.tt/3cuhSfJ
via IFTTT

AutoResponder for Telegram is a bot that lets you automate replies

After the great success of AutoResponder for WhatsApp and Instagram, XDA Senior Member TK Studio is back again with a similar app for Telegram called, unsurprisingly, AutoResponder for Telegram.

AutoResponder for Telegram is a powerful bot that lets you automatically reply to your friends and contacts when you’re away from your device. When someone sends you a message on Telegram, and you’re not around to respond, the bot will send a predefined reply on your behalf. You can create different rules and replies for different scenarios and even specify which contacts or groups should receive the automated reply. Furthermore, you can choose to react to only specific messages, meaning auto-reply will only trigger when the recipient’s message matches the template response that you have set. There are tons of parameters and granular controls to fine-tune the bot precisely as you want. The app also offers a Tasker plugin to let you automatically pause/unpause the bot, update/enable/disable and add/remove specific rules.

Here is a rundown of what you can do with AutoResponder for Telegram:

  • Auto Reply to Telegram
  • Send automatic replies to your friends
  • Individually customizable
  • Send replies to all messages
  • React to specific messages
  • Live answer replacements
  • Reply with the current location
  • Works with groups
  • Set contacts
  • Set delay
  • Specific times and days
  • Perfect for business
  • Dialogflow.com integration (formerly api.ai)
  • Working as a Tasker plugin

AutoResponder for Telegram — XDA Thread

The app is free to download on Google Play Store with an in-app purchase option. The Pro version unlocks the additional features such as the ability to send multiple automated replies, delaying replies, connecting the bot to your web server, and more.

AutoResponder for Telegram - Auto Reply Bot (Free+, Google Play) →

The post AutoResponder for Telegram is a bot that lets you automate replies appeared first on xda-developers.



from xda-developers https://ift.tt/2U8ItbX
via IFTTT

AutoResponder for Telegram is a bot that lets you automate replies

After the great success of AutoResponder for WhatsApp and Instagram, XDA Senior Member TK Studio is back again with a similar app for Telegram called, unsurprisingly, AutoResponder for Telegram.

AutoResponder for Telegram is a powerful bot that lets you automatically reply to your friends and contacts when you’re away from your device. When someone sends you a message on Telegram, and you’re not around to respond, the bot will send a predefined reply on your behalf. You can create different rules and replies for different scenarios and even specify which contacts or groups should receive the automated reply. Furthermore, you can choose to react to only specific messages, meaning auto-reply will only trigger when the recipient’s message matches the template response that you have set. There are tons of parameters and granular controls to fine-tune the bot precisely as you want. The app also offers a Tasker plugin to let you automatically pause/unpause the bot, update/enable/disable and add/remove specific rules.

Here is a rundown of what you can do with AutoResponder for Telegram:

  • Auto Reply to Telegram
  • Send automatic replies to your friends
  • Individually customizable
  • Send replies to all messages
  • React to specific messages
  • Live answer replacements
  • Reply with the current location
  • Works with groups
  • Set contacts
  • Set delay
  • Specific times and days
  • Perfect for business
  • Dialogflow.com integration (formerly api.ai)
  • Working as a Tasker plugin

AutoResponder for Telegram — XDA Thread

The app is free to download on Google Play Store with an in-app purchase option. The Pro version unlocks the additional features such as the ability to send multiple automated replies, delaying replies, connecting the bot to your web server, and more.

AutoResponder for Telegram - Auto Reply Bot (Free+, Google Play) →

The post AutoResponder for Telegram is a bot that lets you automate replies appeared first on xda-developers.



from xda-developers https://ift.tt/2U8ItbX
via IFTTT

Honor Play 4 and Honor Play 4 Pro with IR temperature sensor launched in China

The Honor Play series is a smartphone series from Huawei’s sub-brand. The focus of this series has been to provide a value offering to consumers within markets such as China, addressing their local needs and expectations. Honor recently teased that the upcoming launches in this series will feature a special infrared temperature sensor. The Honor Play 4 and Honor Play 4 Pro have finally launched in China, alongside a special version of the Play 4 Pro that does indeed come with an IR temperature sensor.

Honor Play 4 and Play 4 Pro: Specifications

Specifications Honor Play 4 5G Honor Play 4 Pro 5G
Dimensions & Weight
  • 170mm x 78.5mm x 8.9mm
  • 213g
  • 162.7mm x 75.8mm x 8.9mm
  • 213g
Display
  • 6.81″ FHD+ IPS TFT LCD
  • 2400 x 1080
  • 20:9 aspect ratio
  • Single hole-punch display
  • 6.57″ FHD+ IPS TFT LCD
  • 2400 x 1080
  • 20:9 aspect ratio
  • Dual hole-punch display
SoC MediaTek Dimensity 800:
  • 4x Cortex-A76 @ 2GHz +
  • 4x Cortex-A55 @ 2GHz
  • 7nm

Mali-G57 MC4 GPU

HiSilicon Kirin 990:
  • 2x Cortex-A76 @ 2.86GHz +
  • 2x Cortex-A76 @ 2.09GHz +
  • 4x Cortex-A55 @ 1.86GHz

Mali-G76 GPU

RAM and Storage
  • 6GB LPDDR4X + 128GB
  • 8GB + 128GB
  • Expandable up to 512GB
  • 8GB LPDDR4x + 128GB UFS 3.0
Battery and Charging
  • 4300 mAh battery
  • 22.5W fast charging
  • 4200 mAh battery
  • 40W fast charging
Rear Camera
  • Primary: 64MP, f/1.89
  • Secondary: 8MP wide-angle, f/2.2
  • Tertiary: 2MP depth sensor, f/2.4
  • Quarternary: 2MP macro, f/2.4
  • Primary: 40MP, f/1.8
  • Secondary: 8MP, f/2.4, OIS, 3x optical zoom
Front Camera
  • 16MP, f/2.0
  • 32MP, f/2.0, fixed focus
  • 8MP, f/2.2, fixed focus
Other Features
  • Wi-Fi 802.11a/b/g/n/ac
  • Bluetooth 5.1
  • 5G SA/NSA
  • IP5X
  • 3.5mm headphone jack
  • Side-mounted fingerprint sensor
  • Wi-Fi 802.11a/b/g/n/ac
  • Bluetooth 5.1
  • 5G SA/NSA
  • Dual Frequency GPS
  • Side-mounted fingerprint sensor
Android Version MagicUI 3.1 based on Android 10 MagicUI 3.1 based on Android 10

Honor is marketing the phones as different variants within the same lineup and generation, but both the phones are very different from each other.

Honor Play 4 - Phantom Blue Honor Play 4 - Iceland Illusion

The Honor Play 4 5G is clearly the more humble device, with the MediaTek Dimensity 800 SoC. A few specifications of the device are not very clear — like whether it actually has a 6.81″ display as the official spec sheet suggest, or which exact sensor is used for the 64MP camera — but it is clear that there is a focus on smartphone photography here while still providing high value. Curiously, Honor has added a 3.5mm headphone jack to the device and has brought back storage expandability (though it is unclear if this is via microSD card or a proprietary card)

Honor Play 4 Pro - Mecha Blue

The Honor Play 4 Pro 5G has a few more tricks up its sleeve. First, it is powered by the HiSilicon Kirin 990, the current flagship SoC. This makes the device a flagship offering in terms of performance at least. Interestingly, Honor is also using only a dual-camera setup on the device — comprising of a 40MP main sensor (details unspecified, but it can be the RYYB sensor as seen on past devices like the Honor 30 and the Honor X10) and an 8MP telephoto sensor. We certainly prefer companies sticking to fewer-but-good cameras instead of bundling borderline-useless camera sensors on devices purely for the marketing points of “quad-camera” and “penta-camera”.

The Play 4 Pro 5G comes in two variants: one is the regular variant, and the other comes with an IR temperature sensor. The infrared sensor can measure the temperature of objects, animals, and people, but the latter is obviously the most noteworthy in current times. Taking someone’s temperature is one of the ways that COVID-19 can be detected (though it’s not always a symptom).

Honor claims that the sensor has a measurement range of -20°C to 100°C, though we’ll reserve our judgment on its practical usability till the time we get an opportunity to use the device ourselves.

Pricing and Availability

The Honor Play 4 will be available for purchase in China for CNY 1799 (~$253/₹19,000) for the 6GB + 128GB variant, and CNY 1999 (~$281/₹21,250) for the 8GB + 128GB unit. The Honor Play 4 Pro will be available for purchase in China for CNY 2899 (~$408/₹30,750), while the variant with the IR temperature sensor will cost you CNY 2999 (~$422/₹32,000). International availability for either of these phones is unknown at this stage, though if they do arrive, they are likely to come with HMS on-board.

The post Honor Play 4 and Honor Play 4 Pro with IR temperature sensor launched in China appeared first on xda-developers.



from xda-developers https://ift.tt/36WZPxu
via IFTTT