Google Pixel 2 Supports Hardware Accelerated Tethering for Better Battery Life...

 
 
 
Google Pixel 2 Supports Hardware Accelerated Tethering for Better Battery Life...

 
xda-developers
Nov 2, 2017 11:32 PM • by Mishaal Rahman
Google Pixel 2 Supports Hardware Accelerated Tethering for Better Battery Life while Tethering

There's a lot about the new Google Pixel 2/Pixel 2 XL that have yet to be uncovered. Google pulled a fast one on the tech world when they suddenly unveiled that the new smartphones had a custom image processor embedded called the Pixel Visual Core, though that has yet to be enabled. There's another interesting thing we've found on the Pixel 2, although we're not 100% sure what the full implications of this new feature entail. The feature, called hardware accelerated tethering, will likely improve battery life during mobile data tethering by offloading all logic related to packet forwarding and other tethering-related duties onto hardware.

Google Pixel 2 Hardware Accelerated Tethering

Existing owners of the Google Pixel 2 or the Pixel 2 XL can find the feature in Developer Options under the Networking category. It's enabled by default, so presumably it's already functional on these devices. In the Android Open Source Project (AOSP), we can see several commits related to the feature under the "tether-offload" tag. We can see that there is logic for passing on your smartphone's data limit to the offload code so that your data limit isn't exceeded.

Most importantly, we can see an implementation for the "tether offload HAL." Hardware Abstraction Layers (HAL) is what allows the Android system to interface with the WiFi chip in the SoC that will handle hardware accelerated tethering. This HAL is used by Android to offload all of the burden of packet forwarding from Android onto hardware dedicated for it.

The end result is that the system resources dedicated to mobile data tethering will be freed up for other purposes. The less that the device's CPU is responsible for tethering related operations, the more power is conserved. This can be especially useful when the device enters sleep, because currently software based tethering on Android needs the CPU to be kept awake with a wakelock. By offloading the responsibility of tethering onto the hardware, then perhaps the CPU can truly enter a sleep state—improving battery life the longer you tether.

So what devices support hardware accelerated tethering? Well, we've only found the toggle on the Google Pixel 2/Pixel 2 XL thus far so we're assuming only those devices support it. According to the tethering offload HAL commits, it seems like Google was testing support on the Google Nexus 5X (bullhead). Furthermore, according to a few comments by Googlers, it seems that the tethering offload HAL is rather vendor neutral and can support offloading of tethering:

While this HAL does have a few quirks for Qualcomm setup, the vast majority of this is vendor neutral. Any vendor with a suitably capable SoC could support tethering hardware offload with this, in theory (they might skip the extra fd passing at setup, who knows).

In another comment, a Googler mentions how devices can mix and match WiFi chipsets and offload HALs but that the API they've build is still designed to work to squeeze the best battery life out of your device while tethering.

At the very top we define that this API will return a static configuration. Depending on the vendor /hardware implementation, these capabilities can change. For e.g. one device can have wifi from vendor A, and offload HAL from vendor B. whereas another device can have Wifi chipset from vendor B and offload HAL from vendor B. In this case the offload capabilities may be different. Even with limited capabilities, framework /client may want to take advantage of hardware offloading for a limited set. Therefore the API is designed to get most juice out of the hardware given there can be variations from soc to soc implementation.

If you own a Google Pixel 2/Pixel 2 XL and want to see the status of the hardware accelerated tethering, you can enter the following ADB shell command and look for strings related to "hardware offload:"

adb shell dumpsys connectivity tethering

We'll have to do testing to actually see how effective hardware accelerated tethering is at improving battery life while tethering. Tethering used to cause a huge hit in performance, too, but the massive improvements in CPU speed and optimizations in Android have largely fixed that issue. Thus, we don't expect that offloading tethering logic via the offload HAL to the WiFi chipset will lead to a noticeable improvement in performance.




Android Advices
Oct 31, 2017 4:15 PM • by Pavan Kumar B.C
Asus Zenfone 4 Pro, Zenfone 4 and Zenfone 4 Max Launched in the US

Asus has added another set of smartphones in its Zenfone 4 series and this Taiwanese company has launched them in the US. The list of devices includes Zenfone 4 Pro, Zenfone 4 and Zenfone 4 Max which will be the siblings of the 5.5-inch Zenfone 4 Max launched last month, These handsets come with different specifications which are mentioned below accordingly.

Zenfone 4 Pro

The Zenfone 4 Pro will come with a 5.5-inch 1080p AMOLED display and will have a 3600mAh battery on the back to power the handset. Under the hood, there is a Snapdragon 835 SoC coupled with 6GB of RAM. This device will come with the dual rear camera setup with a 12MP main camera with 1/2.55" sensor along with a 16MP secondary camera with 2x fixed optical zoom.

There is a 8MP selfie camera with 1.4-micrometer pixel size and f/1.9 aperture size. Out of the box, it will run on Android 7.1.1 Nougat operating system and is expected to get further updates as well. The handset is up for pre-orders at Amazon, B&H, Best Buy, Newegg and the companies official website. The device will start shipping from 6th of November and will be available for $599 in Black color.

Zenfone 4

Like the Zenfone 4 Pro, this smartphone also features a 5.5" 1080p display but here an IPS LCD panel is used.to power the handset, there is a Snapdragon 630 SoC coupled with 4GB of RAM, It will come out of the box with Android 7.1.1 Nougat and has a 3,300mAh battery to power the handset. This device also sports a dual rear camera setup sporting a 12MP camera with f/1.8 aperture size for the main camera while the secondary camera comes with 120-degree wide angle lens.

There is a 8MP front-facing camera for selfies and video calling. The onboard storage is 64GB which can be extended further with a microSD card slot. This handset is priced at $399 and will be available in Midnight Black and Moonlight White color variants.

Zenfone 4 Max 5.2"

We have already seen the 5.5" Zenfone 4 Max but this one sports a 5.2inch display with 720p resolution. Under the hood, there is a Snapdragon 425 SoC coupled with 2GB of RAM and 16GB of onboard storage. There is the 13MP + 5MP dual camera setup on the rear which it will be accompanied with 8MP selfie camera. It will come out of the box with Android 7.0 Nougat operating system.

The device will be sporting a 4100 mAh battery and is priced at $169 and will be available only in the Black color variant. The smartphone will be released on 3rd of November and will be available for pre-order via Amazon, B&H, Best Buy and Newegg. Are you planning to get any of these devices? Comment in the section below and stay tuned for more!

Source




 
 

This email has been sent by Froze ONE (isnanmm0@gmail.com). It is the potion result of 'Tech: Topic watch' from the dashboard 'Personal Dashboard', tab 'Tech > Android'. Unsubscribe

 
 
 

Subscribe to receive free email updates:

0 Response to "Google Pixel 2 Supports Hardware Accelerated Tethering for Better Battery Life..."

Post a Comment