Google Pixel 2’s “Now Playing” Feature uses AmbientSense to Minimize Battery...

 
 
 
Google Pixel 2's "Now Playing" Feature uses AmbientSense to Minimize Battery...

 
xda-developers
Oct 16, 2017 4:51 AM • by Mishaal Rahman
Google Pixel 2's "Now Playing" Feature uses AmbientSense to Minimize Battery Drain

The Google Pixel 2 and Pixel 2 XL are official after many months of leaks. One of the more interesting (and controversial) features is "Now Playing," which detects music playing in the background and shows you what's playing on the lock screen. We first heard about this feature a few weeks before launch, but we didn't have much information about the feature apart from Google telling us that it can work offline without sending any data to the cloud (the latter is especially important in light of recent revelations regarding the Google Home Mini). After digging into the Now Playing feature, we've discovered that the feature is based on years-old technology called AmbientSense which promises minimal battery drain.

Google Pixel 2 Now Playing AmbientSense Google Pixel 2 Now Playing AmbientSense

Google Pixel 2's Now Playing Feature

We were first tipped off about this when we analyzed the Pixel Ambient Services application, which is available on the Google Play Store.

Pixel Ambient Services (Free, Google Play) →

But it wasn't the app itself that made us aware of the AmbientSense connection. Instead, it was the name of the APK pre-installed in /system/priv-app on the Google Pixel 2. Called AmbientSense, the APK matches the name of a technology described in a research paper presented at the 2013 IEEE International Conference on Pervasive Computing and Communications Workshops by researchers M. Rossi, S. Feese, O. Amft, N. Braune, S. Martis and G. Tröster.

What is AmbientSense and how does it relate to "Now Playing?"

We found a webpage that displays the first page of this paper here. According to the paper's abstract, AmbientSense is a "real-time ambient sound recognition system on a smartphone." What's most interesting about AmbientSense is that it can be implemented as an Android app and only needs access to the device's microphone to analyze ambient sounds.

There are two processing modes described in the paper: autonomous and server mode. Autonomous processing occurs on the smartphone only by comparing audio samples against a locally stored database. In comparison, server mode sends audio features to a server which then sends classification results back. Clearly, Google's "Now Playing" feature is probably running AmbientSense in "autonomous" mode as it can work offline.

The paper goes on to describe how the team of researchers tested recognition performance, runtime, CPU load, and recognition delay under both autonomous and server mode recognition in a set of 23 ambient sound classes. They found that the AmbientSense app ran for up to 13.75 hours on a Samsung Galaxy SII and up to 12.87 hours on the Google Nexus One. Keep in mind how old these devices are; the Google Nexus One was released in 2010 and is a dinosaur in comparison to the Pixel 2. We can only imagine how much AmbientSense has been refined through Google's testing.

Is it Possible to Port the Now Playing Feature on non-Google Pixel 2 Phones?

I can't make any promises yet, but I think it's possible. We're working with XDA Recognized Contributor Quinny899 to make it happen. In order to get the Now Playing feature working on the first generation Google Pixel/Nexus smartphones, there are a few things that we believe are needed:

  • Pixel Ambient Services (AmbientSense.apk)
  • Audio Matching database
  • Some missing libraries
  • SystemUI modifications to ambient display
  • Root access (to push the above files to /system)
Google Pixel 2 Now Playing AmbientSense Google Pixel 2 Now Playing AmbientSense

Screenshots credit: Kieron Quinn (Quinny899)

We currently already have the audio matching database in our possession, called "matcher.leveldb." It's a 53MB storage library based on Google's LevelDB. This is the database that AmbientSense relies on to do audio matching in autonomous mode.

As for the libraries, we know what they're called and where to look for them, but it will take some time before we can get our hands on a Pixel 2 to extract it.

Finally, SystemUI needs to be modified because the "Now Playing" feature writes text to ambient display—something which is currently not possible on the ambient display feature found on the first generation Pixel.

As for getting this working on non-Google phones, we'll test that after we get it working on the Google Pixel and Nexus phones. If or when we make a breakthrough on getting this feature working, the first place you'll know about it is the XDA Portal—so stay tuned for more!




Android Advices
Oct 14, 2017 4:15 PM • by Pavan Kumar B.C
T-Mobile offering $500 off on LG V30 with the purchase of two units

The LG V30 was announced not long ago and the device has arrived on the popular carrier T-Mobile stores starting today. The carrier has been taking orders for the device from last week and on the occasion of the launch, it has decided to throw a nice deal to its customers by giving an $500 off who buy two units of LG V30. Moreover, if you are gearing to get this device on T-Mobile's Equipment Installment Plan the handset will be priced at $80 down and $30 a month for a span of 24 months.

The customers need to participate in the promotion to get the $500 by registering at the website and will also be receiving a prepaid MasterCard by mail. It doesn't stop with it as T-mobile is providing more offers on LG devices like if you have plans of buying two LG G6 units or even V20 units the second one will be free after rebate. This will be a good deal on the LG V20 which is the predecessor of the LG V30. Moreover, the G6 is currently available for $20 upfront along with $20 monthly installment of $20 while the V20 is available for $16 a month without any downpayment. This offer can be combined and the customers can get a free G Pad X or G Pad X2 Plus tablets for free on EIP when activated.

Coming to the specifications of the LG V30, it will come with 6" P-OLED display with 1440 x 2880 pixels resolutions and under the hood, there is a Qualcomm Snapdragon 835 SoC with eight cores coupled with 4GB of RAM. It will be available in 64GB as well as 128GB storage variants with a microSD card slot. There is a dual 16MP + 13MP camera setup on the rear while the front side has a 5MP camera.

It is IP68 certified for dust and waterproof over 1.5 meter and 40 minutes. It will come out of the box with Android 7.1.2 Nougat operating system but will get further updates soon. Well, are you planning to get this device on T-mobile? Or have plans of getting G6 or V20? Do let us know by a comment in the section below and we will get back to you with more news and updates.

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’s “Now Playing” Feature uses AmbientSense to Minimize Battery..."

Post a Comment