LightBlog

mercredi 18 mars 2020

Android 11 DP2 reveals work on “Quick Control” shortcuts in the Power Menu

When Google released Android 11 Developer Preview 1 last month, we spotted a new feature that we believed would transform the long-press power menu into a control center for home automation shortcuts. Now with the release of Android 11 Developer Preview 2, we managed to get this feature partially working.

Friend of the Portal and Recognized Developer Quinny899 shared the following two screenshots with us after flashing the latest Android 11 preview build on his Pixel 2 XL. After analyzing the framework and SystemUI last month, he developed an application that could hook into the new, in-development API. His app did not work last month, but it is now partially working in this release.

As you can see, he surfaced a new shortcut that appears in a “Quick Controls” section in the power menu. The power menu itself is revamped, with the tiles moving to the top of the screen, leaving a lot of room for quick controls. There’s also a menu button that, when tapped, opens the “add controls” activity that lets you select which apps’ shortcuts you want shown in the power menu. It is unclear where the new “Quick Access Wallet” feature will fit into this new power menu design.

Google hasn’t officially unveiled this new feature yet, but from our previous analysis, we believe that Google will reserve this space for home automation shortcuts. We found a list of “valid device types” in the Controls service in framework.jar that lists devices such as fans, coffee makers, AC units, curtains, and more that might be controllable from this UI. App developers will likely need to add support for this API to surface controls for their smart home appliances. We may hear more about this API during the virtual Google I/O 2020 event, assuming it doesn’t get postponed like Cloud Next 2020.

The post Android 11 DP2 reveals work on “Quick Control” shortcuts in the Power Menu appeared first on xda-developers.



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

Aucun commentaire:

Enregistrer un commentaire