LightBlog

lundi 11 novembre 2019

How to Completely Take Control of Ambient EQ on the Google Pixel 4

When Google announced the Pixel 4 last month, one of the features I was most excited to try out was Ambient EQ. Ambient EQ is what Google calls its automatic white balance adjustment feature. Using a sensor capable of measuring the color temperature of the ambient lighting (the TMD3702VC), Ambient EQ “dynamically adjusts the display [white balance] based on surrounding light levels.” Sadly, Ambient EQ on the Pixel 4 barely adjusts the color temperature of the display, leading to what I feel is an underwhelming experience.

Ambient EQ toggle in Display settings on the Google Pixel 4

The reason for including such a feature in the first place is because the “perceived white balance of [a] display changes with the color of the ambient lighting around you,” according to Dylan Raga, XDA’s Display Analyst. For example, “screens often appear overly-blue when viewed under warmer lighting.” In order to “[make] the screen appear consistent regardless of the color of ambient lighting,” smartphones “should change [their display] color temperature towards the color of the ambient lighting.”

Google’s first product with an automatic white balance adjustment feature was the Nest Hub, where the feature is also called Ambient EQ. On the Nest Hub, Ambient EQ is nothing short of magic. Looking at images on the Nest Hub display, no matter the current lighting condition, is like looking at printed photos. You don’t get that kind of experience with Ambient EQ on the Pixel 4, which, to be fair, makes sense since smartphones are used for more than just looking at images.

Google Nest Hub in different lighting conditions. Ambient EQ is tied to the “automatic brightness” setting on the device. It’s a bit difficult to capture the effect here—you really need to see it for yourself.

The Pixel 4 is far from the only mobile device with automatic white balance adjustment, though, which means we can compare how other tech companies have implemented the feature. Both Apple and Samsung have similar features, though Apple’s True Tone is more well-known thanks to better marketing. From the numerous complaints I’ve seen on online forums like Reddit, not everyone is a fan of how yellow the iPhone display looks with True Tone enabled. This is why I believe Google capped how low Ambient EQ can adjust the white point on the Pixel 4—they wanted the effect to be subtle and more color accurate so people don’t turn it off. That’s also likely why True Tone is disabled by default on the iPhone while Ambient EQ is enabled by default on the Pixel 4.

In their goal to please everybody, though, I think Google was a little too conservative in picking Ambient EQ’s range on the Pixel 4. I’m personally a big fan of how True Tone looks on the iPhone and iPad, so I was disappointed to learn that the Pixel 4’s white point average ranges from a minimum of 6300K to a maximum of 7450K corresponding to ambient color temperatures of 5300K and 8000K respectively. Under these default settings, I barely notice changes in the display when compared to an iPhone or iPad. In comparison, the 2016 9.7″ Apple iPad Pro can dip down to 5388K at 3000K ambient lighting, according to measurements done by AnandTech.

Tweaking Ambient EQ on the Pixel 4

Before the comments start flying that I think I know more than Google, I wanted to explain why I think it’s worth adjusting Ambient EQ. People’s tastes differ when it comes to display quality. Some people like warmer colors while others like cooler colors. Some people want their displays to always be color accurate while others care more about comfort. Like all other features on the Pixel 4, Google designed Ambient EQ to appeal to a majority of users. However, if you want to play around with the feature to get something that you think looks better for you, then that’s what I’m here to show you how to do.

And yes, as is the case with many features on the Pixel 4, it is possible to tweak Ambient EQ on the Pixel 4, provided you have root access. I’ve been using custom parameters for over a week now, and I feel that not only has it made reading text more pleasant in warmer ambient lighting, but it has also reduced eye strain. The Pixel 4 has become the smartphone I’m most comfortable using. Before I show you how to tweak Ambient EQ, though, you’ll need to understand how its parameters are controlled.

Ambient Color Temperature Display Color Temperature Decrease/Increase Thresholds
5300 6300 0.007874
6000 6400 0.0075472
7000 6850 0.006993
8000 7450 0.0067114

Stock Ambient EQ parameters on the Pixel 4 and Pixel 4 XL.

The above table shows the most important parameters for Ambient EQ on the Pixel 4. The first two columns show the Pixel 4’s base display color temperature (column #2) with respect to the ambient color temperature (column #1). Using a calculation involving the decrease/increase thresholds as well as some other parameters, the Pixel 4 can adjust its display color temperature to any value in-between the minimum (6300K) and maximum (7450K). If you’re interested in reading how these in-between values are calculated, I recommend reading the descriptions for each setting in AOSP. Search for “config_displayWhiteBalance” to find all of the relevant Ambient EQ parameters and their descriptions.

With this knowledge, I tweaked Ambient EQ to use a mix of known Apple True Tone values (thanks to Anandtech) and stock Pixel 4 values to create the following changes:

Ambient Color Temperature Display Color Temperature Decrease/Increase Thresholds
3000 5388 0.008
5000 6404 0.0076981
6000 6700 0.0075472
7000 6850 0.006993
8000 7450 0.0067114

Custom Ambient EQ parameters on my Pixel 4.

Are these values perfect? No, of course not. Do I personally prefer how the Pixel 4 looks with these values? You bet. If I could get a full list of True Tone ambient/display color values, I would expand my tweak to better match the iPhone. If I had better display equipment with me, I could create a set of values that makes the Pixel 4 appear color-accurate in all ambient lighting conditions. And if I wanted to, I could expand Ambient EQ’s color range to make it a total replacement for Night Light. All it takes is a bit of trial and error, and that’s why I’m sharing what I’ve learned with the community.

Here’s a Magisk Module I made containing the custom Ambient EQ values in the table shown above. Simply download it from the link below and install the Module in Magisk Manager.

Download AmbientEQTweak Magisk Module

If you’re interested in customizing Ambient EQ on your own, you’ll need to do the following:

  1. Create a Runtime Resource Overlay (RRO) targeting the Android Framework (package name: “android”). Here’s the AndroidManifest.xml from my overlay.
    • Create an arrays.xml with the custom parameters you want. For example, config_displayWhiteBalanceAmbientColorTemperatures is the integer array that corresponds to column #1 in the above table while config_displayWhiteBalanceBaseThresholds and config_displayWhiteBalanceDisplayColorTemperatures correspond to column #2 in the above table. Note that config_displayWhiteBalanceDecreaseThresholds and config_displayWhiteBalanceIncreaseThresholds must be the same length as config_displayWhiteBalanceBaseThresholds. Here’s the arrays.xml I used in my overlay.
    • Create an integers.xml file if you want to have a new minimum or maximum display color temperature. Set your minimum in config_displayWhiteBalanceColorTemperatureMin and your maximum in config_displayWhiteBalanceColorTemperatureMax. Here’s the integers.xml I used in my overlay.
    • Create a dimens.xml if you want to change what color temperature Ambient EQ will bias toward in low-lighting conditions. This is done by changing the value of config_displayWhiteBalanceLowLightAmbientColorTemperature. Note that the low-light threshold is a range of lux values in the array config_displayWhiteBalanceLowLightAmbientBrightnesses which can be overridden in arrays.xml. (I overrode the default 10-50 range with 10 so the Pixel 4 would drop down to 5388K when the ambient brightness was below 10 lux.) Here’s the dimens.xml I used in my overlay.
  2. Compile and sign your overlay package and create a Magisk Module to place this overlay in /vendor/overlay.

You can use the Substratum and Magisk Module templates or you can just extract my Magisk Module and decompile the overlay I made to use as a base. If you come up with a set of values you’re happy with, please do share your work in the comments below or on the XDA forums.

Google Pixel 4 Forums ||| Google Pixel 4 XL Forums

Lastly, if you want to go the trial-and-error route, I recommend using the following two shell commands:

  • adb shell dumpsys color_display – Use this to see if your minimum and maximum color temperature overrides are working and to see what the current display color temperature is set to.
  • adb shell dumpsys display – Look for the “AmbientColorTemperatureSensor” output to see what the TMD3702VC color sensor is reporting the current ambient color temperature is. The events history lists the recorded ambient color temperature and the time, in Unix epoch milliseconds, that the value was recorded.

The post How to Completely Take Control of Ambient EQ on the Google Pixel 4 appeared first on xda-developers.



from xda-developers https://ift.tt/34Un9Ki
via IFTTT

Google announces new Chrome developer tools to reduce page loads and build native app-like experiences

Two decades ago, Google started off as a web search engine, but today, it dominates how we experience and interact with the web. Google Search, in itself, hugely commands most of the online usage, but other products like the world’s most popular browser – Google Chrome – as well as the most used mobile operating system – Android – has put Google in the lead among other stakeholders of the web. The percentage of users going online using mobile devices has increased and so has the internet giant’s emphasis on reducing load times to ensure stickiness. AMP or accelerated mobile pages was one step Google took to ensure faster loading of webpages. Last year, it also introduced a web element known as “Portals” to optimize “seamless” switching between webpages.

With the vision to “make loading disappear,” Google today announced new developer tools at the Chrome Dev Summit 2019 to make the web safer and more user-friendly while also improving the chances of helping developers boost their user base as well as revenues.

Portals

Google demonstrated the progress that Portals has made since they launched it at Google I/O earlier this year and implemented behind a flag in Chrome Canary. To refresh your memory, Portals allows developers to embed certain content or entire webpages into another webpage just like an iframe. In order to eliminate any wait time, the content inside the Portal or the frame loads while users are still browsing the initial webpage.

Google has shared an example of movie ticketing service Fandango in which the landing page for a particular movie (Joker in the example) is bound inside a Portal. When a user taps on Joker, the next page is rendered already fully loaded.

Web Bundles

Google is announcing Web Bundles which is created to help web developers share their web content with others through a variety of mediums, including but not limited to email, USB, or FTP. Developers will be able to effectively cache the entire web content intended to be shared using APIs like Background Periodic Sync and Content Indexing and then selectively render the required content even if the end-user is not connected to the internet. To enable web developers to utilize this functionality, Google is making Web Bundles available behind a Chrome flag while the two APIs will be available as origin trials.

Native-like web experience

While being aware that plenty of users use their mobile phones to go online, Google also acknowledges the cross-device usage patterns across the world. For more than a couple of years, Google has been pushing Progressive Web Apps (PGAs) as a substitute for native Android apps with the objective of reducing loading time and data consumption.

To align the applications on the web with native apps, Google is announcing three new features for developers. These are:

  1. SMS Receiver, which will allow web apps to fetch SMS-based authentication codes just like apps can. In the video above, you can see how seamlessly the web version of Swiggy, an Indian food ordering service, suggests the user to leverage the verification code received via SMS.
  2. Contact Picker, which will let users upload contacts on to web apps in a fashion similar to the contact sharing on messaging apps like WhatsApp.
  3. Native File System API, which will give web apps the permission and the facility to read files and folders from a user’s device and save changes to them directly. Potential applications of this feature may include online text editors, photo and video editors, even web-based IDEs, and more.

These APIs will also be available as origin trials for Google Chrome.

New metrics and guidance for developers

To help contextualize the general “health of the web,” Google has announced a project called The Web Almanac in partnership with the HTTP Archive. With guidance from 85 experts, the project is aimed at seeking insights and visualizing trends on actionable data about the best and the worst practices on the web.

The mission involved reviewing nearly 6 million websites, after which these experts have condensed their conclusions on ways to improve user experience in 20 chapters. This practice will be repeated as an “annual tradition” so that the Almanac remains a resourceful guide for web developers.

Along with this, Google is also introducing two new metrics to help developers optimize their websites for the best practices. These are:

  1. Largest Contentful Paint (LCP), which the “perceived” loading time of a webpage. Simply put, it is the loading time of the “largest element visible in the viewpoint.” This will quantify how quickly are the key elements on a webpage loaded so that developers can eliminate any sort of lag. The LCP is calculated for the time before the user interacts with the page so the intent here is to minimize the loading delay as much as possible.
  2. Cumulative Layout Shift (CLS), which is used the gauge the stability of webpages. It can help developers determine how often elements like buttons or a particular image changes its location on the viewable part while the page is loading. Thus, CLS can help developers eliminate this frustrating issue of elements changing their position while the page loads. This metric relies on “layout shift score” which measures the tendency of page elements to shift while loading, thereby troubling users. The layout shift score should be ideally zero – or at least as close to zero as possible – to ensure an hassle-free experience for the users.

With the objective of helping developers achieve the best performance, accessibility, and efficiency on their websites, Google is expanding the scope of Lighthouse Stack Packs to a variety of frameworks. Besides WordPress and Next.js, which is already supported by Lighthouse, Google is adding support for frameworks such as AMP, Angular, React, as well as Magento, the CMS catering exclusively to e-commerce websites.

Improve memory management, better privacy, and greater control

Google claims to be investing time, effort, and money into remedying one of the biggest complaints with Google Chrome and that is memory consumption. Besides working on improving memory management, they are also constantly improving the performance of Chrome to ensure that the web remains accessible to all irrespective of “their device type or internet speed or purchasing power.

In terms of privacy, the next version of Google Chrome i.e. ver79 will be improving how cookies are handled. This includes a new toggle on the New Tabs Page in the Incognito mode to help users control third-party cookies much better. The Settings page will also be tweaked to make this toggle easily accessible in the regular mode.

Google is furthering its efforts into the development of Privacy Sandbox, which is defined as the set of open standards laid out to improve privacy online. The Privacy Sandbox is aimed at allowing websites to deploy cookies without making users feel overwhelmed or insecure due to ads while also finding ways to block fingerprinting.

The post Google announces new Chrome developer tools to reduce page loads and build native app-like experiences appeared first on xda-developers.



from xda-developers https://ift.tt/32B5WUx
via IFTTT

Score Pre-Black Friday Savings on This Top-Tier VPN

No-one likes being watched. But every time you browse the web without protection, your clicks are being tracked. If you would prefer to keep Facebook and the government out of your browsing history, you need to try Windscribe VPN Pro. This highly-rated service helps you remain anonymous online, while also blocking ads, unlocking content, and securing your data. With this pre-Black Friday price drop, you can get a three-year subscription for $59.99.

By routing your traffic through masking servers, Windscribe VPN can hide your IP address and physical location. The service also uses AES-256 encryption to protect your data. In combination, these features make it virtually impossible for anyone to track you online.

But Windscribe is more than a VPN. When you download the desktop app, you get the protection of a top-notch firewall. Port forwarding allows you to access services on your home network remotely, and you can torrent without limits. 

Just as importantly, Windscribe VPN takes privacy very seriously. You can sign up to the service without providing an email address, and the company keeps no activity logs.

Order now for $59.99 to get three years on the Windscribe VPN Pro plan, worth $324.

 
Windscribe VPN Pro Subscriptions – $59.99

See Deal

Prices subject to change.

The post Score Pre-Black Friday Savings on This Top-Tier VPN appeared first on xda-developers.



from xda-developers https://ift.tt/34NvTBI
via IFTTT

BatteryGuru helps you track usage and optimize battery health for longevity

Practically all smartphones these days come with non-removable batteries and some form of fast charging technology. Unless done properly with adequate heat management, charging and fast charging do degrade the life of your phone’s battery, and non-removable batteries make it difficult to swap out an older degraded battery for a new one. Glass sandwich designs further complicate the swapping process, often cracking either the front or the back glass if you are not experienced enough. In these situations, it becomes really important to maintain the health of your battery, especially if you plan to use your phone for more than 2 years. BatteryGuru attempts to help you in this endeavor.

BatteryGuru by XDA Recognized Developer Paget96 tries to help your phone’s battery life by focusing on its overall longevity rather than getting you the most work done with a full charge.

BatteryGuru app for longer battery life and healthy battery BatteryGuru app for longer battery life and healthy battery BatteryGuru app for longer battery life and healthy battery BatteryGuru app for longer battery life and healthy battery BatteryGuru app for longer battery life and healthy battery

The main info screen on BatteryGuru has sections to show different charging statistics, like charge/discharge percentage, estimated time for full charge/discharge, info on deep sleep and more. The “Protection” section is where users can set reminders for charging limits and battery temperature, which is what will directly affect how long your phone’s battery will last. You can tweak the settings to be more aggressive or laidback, depending on your needs and expectations. The “Health” section contains information and tips for battery longevity, while the “Save” section toggles different hardware settings to save battery.

BatteryGuru doesn’t require root, and the developer assures that it also does not access any sensitive information, and it will not show false info to the user. The app is free and can be downloaded from the Play Store.

BatteryGuru – XDA Discussion Thread

BatteryGuru (Free, Google Play) →

The post BatteryGuru helps you track usage and optimize battery health for longevity appeared first on xda-developers.



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

Samsung Galaxy A70s update brings Link to Windows, Type-C headset support, and more

The Samsung Galaxy A70s is the company’s first smartphone to be equipped with a 64MP primary back camera. It was launched a couple of months ago as a mid-cycle upgrade to the Galaxy A70 and uses a 64MP ISOCELL GW1 Bright sensor as compared to the 32MP sensor on the latter. The smartphone is now getting its first update and with it, arrive new features such as Link to Windows, Type-C headset compatibility, and Bixby activation using the power button.

The first of the new features i.e. Link to Windows allows users to view the phone’s media and notifications on their Windows PCs. You might otherwise need Microsoft’s Your Phone app to do so but with Samsung’s Link to Windows feature, you can:

  • view the latest 25 images and videos from the Galaxy A70s on the PC as well as transfer them to your PC via simple drag & drop,
  • view notifications and send/receive SMS or MMS from the PC,
  • mirror the phone’s screen on to the PC, and
  • play games using the keyboard and mouse.

samsung galaxy a70s update

Additionally, the update adds support for USB Type-C headsets which can be used as an alternative to the 3.5mm headphone jack. Further, you can now use the power key to activate Samsung’s smart assistant Bixby on the Galaxy A70s with the new Side Key feature. Users can now assign double-press action to open the Camera, Bixby app, or any other application. The long-press action on the power button can be assigned to wake the Bixby voice assistant instead of bringing up the power menu.

Apart from these new features, the update brings the Google Security patches from October 2019. This update is 313MB in size and is already rolling out in India. You can check for it by going to Settings > Software Update.

Samsung Galaxy A70s XDA Forums

The Galaxy A70s runs One UI 1.1 based on Android 9 Pie. While Samsung has already started beta-testing One UI 2.0 based on Android 10 but that is limited to the Galaxy Note 10 and Galaxy S10 devices as of now. The Galaxy A70s will surely get the Android 10 update but there’s no timeline currently.


Via: Tizen Help

The post Samsung Galaxy A70s update brings Link to Windows, Type-C headset support, and more appeared first on xda-developers.



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

Lockdown Lite is a lightweight app to lock your Android apps behind a PIN, pattern or fingerprint

There are several reasons why a user might want to lock apps separately, even in addition to the global lockscreen. For this reason, most Android OEM UX’s now come with an app locker baked in, allowing users to quickly lock down app access without needing any extra app. However, if your phone does not have such functionality built-in, you can try any of the countless app lockers on the Google Play Store. To make your hunt easier, check out Lockdown Lite, a lightweight app that can lock Android apps behind a password or fingerprint.

LockX by XDA Member _RedT_, or Lockdown Lite as it is known on the Google Play Store, is an app locker in its functionality. Lockdown Lite can lock any app on your phone, and can also prevent them from getting uninstalled. However, the standout feature on the app is its small size and negligible footprint, with the app coming in at just 1.32MB in size after installation on my OnePlus 7 Pro.

The app is very easy to setup. It does need the accessibility service permission, which we advise not granting to any and every app (so grant this permission at your discretion). Further, Lockdown Lite uses two permissions — Internet, for ads, and permission for fingerprint to enable the fingerprint unlock feature. You can use either PIN or Pattern lock as your base unlocking mechanism, and then enable fingerprint unlocking on top. For PIN, you can choose between 4, 5, or 6 digit PIN; and for pattern lock, you can choose between 3×3, 4×4, and 5×5 grids, and further customize it by choosing to not show the pattern line as you draw it. You can also choose how frequently the app locks down the target app, so you have some flexibility here.

If you would like to try out LockX/Lockdown Lite, you can check out the discussion thread over in our forums and download it from the Google Play Store.

Check out LockX / Lockdown Lite in the XDA Forums

Lockdown Lite - Small, fast & secure (Free+, Google Play) →

The post Lockdown Lite is a lightweight app to lock your Android apps behind a PIN, pattern or fingerprint appeared first on xda-developers.



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

Samsung Galaxy S10 gets Note 10’s improved gallery, device search, and more with upcoming update

Smartphone manufacturers introduce new features with their leading devices and these features eventually make their way to older and relatively affordable others. Back in September, Samsung added the Galaxy Note 10’s DeX mode and camera features to the Galaxy S10. Now, they are rolling out a new update and bringing many other Galaxy Note 10‘s features to the Galaxy S10. This update includes improved contextual search in the gallery, multimedia controls, and a lot more.

First off, the update for the Samsung Galaxy S10 series brings refinement to the Gallery. You can now type a keyword and related images will show up automatically. This search is presumably powered by Samsung’s own AI – Bixby.

Samsung Galaxy S10 XDA ForumsSamsung Galaxy S10 Plus XDA Forums

The update also brings improvements to the media discovery. The new “Media” option at the bottom of the quick settings panel now also shows recommendations for the music and videos. You can also control media playback on other devices like wireless speakers or Samsung TVs from this menu. Further, the “Devices” menu accessible with a button adjacent to the Media button will allow you to take control of all connected devices.

samsung galaxy s10 update samsung galaxy s10 update

The Auto Hotspot feature allows devices with the same Samsung account as your smartphone to connect to your Galaxy S10’s Wi-Fi hotspot. Family Sharing allows members in your Samsung family group to share your internet connection without having to connect manually. Furthermore, the “Intelligent Wi-Fi Tips” feature will help users troubleshoot if they face any difficulty while signing into a Wi-Fi network.

An update for the Samsung Galaxy S10 around the last week of September had added the Note 10’s AR Doodle feature using which you can draw anything and its spatial position remains unchanged even if you move around. The update had also added other camera features such as Live Focus, Live Focus Video, Night Mode on the front camera, and lastly the Super Steady mode for videos. Additionally, the update has brought improved DeX support with new video editing features.

Samsung notes that the latest update will be available region-wise and new features may be limited to certain regions. Comment below with your region if you’re received the update and we’ll add those details to the article.

The post Samsung Galaxy S10 gets Note 10’s improved gallery, device search, and more with upcoming update appeared first on xda-developers.



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