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

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

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

Developers bring Android 10 and Project Treble to the HTC U11

HTC’s smartphone division might not be dead after all, but the whole software update situation around existing HTC phones is a big mess. The Taiwanese phone manufacturer is having a hard time delivering the Android 10 update to its phones, with the HTC U11 Life being an exception due to its Android One branding. The regular variant of the HTC U11, for example, is stuck with Android Pie. Thankfully, owners of this phone now have an opportunity to get the taste of Android 10. Courtesy of XDA’s brilliant development community, the HTC U11 can not only boot LineageOS 17.1, but the device has also become compliant with Project Treble.

HTC U11 XDA Forums

XDA Senior Member Golv, along with XDA Recognized Developer tomascus and XDA Recognized Developer Flinny, are currently maintaining the unofficial build of LineageOS 17.1 for the HTC U11. The ROM has SELinux in permissive mode and VOIP calling experience might be finicky, but otherwise, it’s quite stable to be a daily driver. Those running stock HTC Sense firmware have to format the data partition (which will delete the contents of the internal storage) before flashing this ROM, so do perform a complete backup.

Download unofficial LineageOS 17.1 for the HTC U11

The Snapdragon 835-powered HTC U11 was originally released with Android 7.1 Nougat on board, thus the phone is officially not compatible with Project Treble. In a mission to “Trebelize” it, XDA Recognized Developer mikalovtch and several other developers from Team Venom have decided to create a dedicated vendor partition for proper Project Treble & Generic System Image (GSI) support by altering the stock partition table. This mod essentially extends the lifetime of this phone, as future versions of Android can theoretically be ported to the smartphone with minimum effort.

Project Treble for the HTC U11 — XDA Download and Discussion Thread

Please keep in mind that repartitioning your device will wipe EVERYTHING, thus be prepared with adequate backups. Users are also advised to download the model-specific RUU package beforehand, in case you need to restore the old partition layout. Be advised that these mods are not for the average user and are recommended for experienced users only.

The post Developers bring Android 10 and Project Treble to the HTC U11 appeared first on xda-developers.



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

Lenovo’s P-series ThinkPads and ThinkStation PCs are getting Linux options

Earlier this year in January, Dell unveiled the 2020 refresh for its XPS series of laptops. As part of the lineup, Dell released the XPS 13 2020 with 10th Gen Intel Ice Lake chips. Along with the regular Windows-based variants of the notebook, Dell also released a Ubuntu-based Developer Edition of the XPS 13 2020 featuring Ubuntu 18.04LTS. Up until now, Dell was one of the only major PC OEMs to officially offer Linux distribution options for its notebooks. However, Lenovo will soon be joining Dell by offering Linux-based versions of its P-series ThinkPad notebooks and ThinkStation PCs.

In a recent press release, Rob Herman, General Manager, Executive Director Workstation and Client AI Group at Lenovo, has revealed that the company is moving to certify its entire workstation portfolio for top Linux distributions from Ubuntu and Red Hat. As part of the move, the company’s portfolio of ThinkStation PCs and ThinkPad P-series notebooks will be certified by both Red Hat Enterprise Linux and Ubuntu LTS, enabling end-to-end support for enterprise users. This will include regular security patches and updates to keep the systems secure, verified hardware drivers, along with firmware and BIOS optimizations. On top of that, the company will also upstream device drivers directly to the Linux kernel to ensure stability and compatibility throughout the system’s lifetime.

In the Red Hat ecosystem, Lenovo has also partnered with the Fedora project to offer a pilot program with a preloaded Fedora image on the ThinkPad P53 and P1 Gen 2 systems. By certifying its entire workstation portfolio, Lenovo aims to prioritize the needs of specialized end-users and provide the best possible out-of-the-box Linux experience. The certified portfolio of workstations will also be fully customizable and configured-to-order, based on the needs of the end-user. Additionally, Lenovo will be providing complete web support, dedicated Linux forums, configuration guidance, and more to prospective buyers. The new Linux-based workstation lineup will roll out over the summer, starting with the ThinkPad P-series notebooks this month.


Source: Lenovo StoryHub

The post Lenovo’s P-series ThinkPads and ThinkStation PCs are getting Linux options appeared first on xda-developers.



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

Google removes “Remove China Apps” from the Play Store, likely for violating policy on deceptive behavior

The anti-China sentiment in India has seen a steep rise in the last few weeks due to the ongoing COVID-19 pandemic and the India-China border stand-off. As a result, several call-to-action messages urging users to boycott Chinese products and uninstall Chinese apps have been circulating on platforms like Twitter, Facebook, and WhatsApp. Capitalizing on the prevailing sentiment, Jaipur-based OneTouch AppLabs released an app called “Remove China Apps” on the Google Play Store on May 17th.

As its name suggests, the app is designed to help users uninstall apps from Chinese developers, which includes popular names like TikTok, ShareIt, CamScanner, and more. The app quickly rose to popularity soon after its release, reaching over one million downloads in less than two weeks and securing the second spot in the Google Play Store’s list of top free apps in India. However, the app’s popularity was quite shortlived as it has now been removed from the Play Store for allegedly violating the platform’s policy on deceptive behavior.

According to a recent report from Reuters, a Google spokesperson has confirmed that the “Remove China App” has been removed from the Play Store as it violated the app store’s policies. While the company itself hasn’t revealed exactly which policies were being violated by the app, a person familiar with the matter claims that the app violated policies that mislead users into removing or disabling third-party apps or modifying device settings or features.

As a report from TechCrunch points out, the app was likely violating the Play Store’s Deceptive Behavior Policy. This policy states that the Play Store doesn’t allow “Apps that encourage or incentivize users into removing or disabling third-party apps or modifying device settings or features unless it is part of a verifiable security service.” Since the app was just riding on the anti-China sentiment and wasn’t a part of a verifiable security service, Google ended up taking it down from the Play Store. The app was very likely matching the list of installed apps on the phone against a repository of popular apps with Chinese origin — unsurprisingly, the app failed to identify less popular apps, indicating that there was no real effort put into even towards its core purpose.

“Remove China App” developer OneTouch AppLabs has released a statement regarding the takedown on its website, thanking users for their support. The company hasn’t shed any light on the reason behind the takedown and did not respond to Reuters’ request for a comment on the matter.


Sources: Reuters, TechCrunch

The post Google removes “Remove China Apps” from the Play Store, likely for violating policy on deceptive behavior appeared first on xda-developers.



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