LightBlog

jeudi 18 février 2021

Android 12 finally adds scrolling screenshots natively

Scrolling screenshots have long been a landmark feature of Android. Or, at least, of most OEM skins. It may seem like a strange omission and you might not even know this if you haven’t used a Pixel smartphone or a stock Android phone as of recently, but while scrolling screenshots are a standard feature of skins like MIUI, OxygenOS, One UI, ColorOS, and many more Android skins, it’s notably absent as a native feature, and it’s thus omitted on stock Android. But this article is not meant to keep you scratching your head thinking about why that is. This article is to tell you that, with Android 12, Android is finally getting scrolling screenshots natively!

This change was found by our very own Mishaal Rahman, and if you’re an early adopter trying to look for the feature and you haven’t been able to spot it, we don’t blame you. Right now it’s a hidden feature and after using it, we can immediately see why that is: it’s very rough around the edges right now. Of course, we’re on the very first developer preview, so as you might expect, it’s going to take a while before it’s refined and actually works properly.

Having the feature implemented natively into Android, even if it’s not particularly a new idea, is still huge news. Not only will Pixel users be able to finally take advantage of taking scrolling screenshots (which allow you to capture more information into one screenshot without having to take several of them), but those few OEM skins that don’t have this feature will be getting it as well, so widespread adoption of this feature will be in order after the new version of Android is officially out in the wild. The final version of Android 12 should be ready in Q3 2021, but you can grab it right now if you have a supported device. We don’t really recommend installing this in its current state as your daily driver, though.

The post Android 12 finally adds scrolling screenshots natively appeared first on xda-developers.



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

Apple TV app launches for Chromecast with Google TV

Google announced in December that the Apple TV app would one day come to Chromecast with Google TV. That day is today.

The search giant published a blog post on Thursday confirming the news, saying Chromecast with Google TV owners around the world can download the Apple TV app by navigating to the Apps tab or the apps row in the For you tab.

There are so many great streaming services on the market, including HBO Max and Disney Plus, there’s hardly any room for Apple TV Plus. But the service has slowly grown in stature over the past several months, highlighted by shows like For All Mankind and the universally-beloved Ted Lasso.

The service also recently purchased the rights to a film called CODA, which was a hit at Sundance. CODA is a drama about a high school senior named Ruby (Emilia Jones) who is the only person in her family who is not deaf. She must choose between chasing her dreams in the music industry or staying home to help care for her parents.

Google said that Google TV users in the U.S. can browse Apple Originals in their personalized recommendations and search results. Users can also use Google Assistant to open the Apple TV app and play an Apple Original title. These same features are expected to roll out globally in the coming months.

Apple TV+ is one of the more affordable video streaming services on the market at $4.99 per month. Like we said, it doesn’t have the most robust library of content, but it’s slowly evolving into something worth paying attention to. Pair it with Google’s excellent Chromecast with Google TV, and you have a pretty entertaining combo.

Google said that in addition to coming to Chromecast with Google TV, the Apple TV app will also be available on Google TVs from Sony and TCL, with plans to roll out to more Android TV-powered devices later this year.

Apple TV (Free, Google Play) →

The post Apple TV app launches for Chromecast with Google TV appeared first on xda-developers.



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

Save big on Amazon tech today, including the Echo Show, Ring items, Fire tablets, and more!

You know, Amazon tech is honestly pretty good. I wouldn’t say it’s cutting edge or anything, but Amazon’s line of products can get the job done and not break the bank. Also, if you’re invested in the ecosystem, Alexa can be great for making a smart home and one of the cheaper ways to do so. It all depends on what you’re looking for and what your budget is! Right now, though, you can save big on Amazon smart home tech, Fire tablets, and more, so you can stock up on what you want and save!

First, let’s start with the Fire tablets. A variety of Fire 7, Fire 8, and Fire Kids tablets are on sale! You’ll save anywhere between $10 and $50, depending on the model you go for. The Fire Kids tablets are some of the best tablets for children, so if you need a gift for a little one in your life, it’s the perfect chance to save and get the Fire 7 Kids Edition for just $60. Otherwise, you may want to go with the Fire HD 8 Plus tablet–it’s not the latest model, but it’s still viable and moddable, and you can grab it for $85. You can even use the Fire tablets to control the rest of your smart home!

Now, an Amazon smart home would not be complete without an Echo Show. An Echo Show will allow you to easily video chat with friends and family, see important information at a glance, and with smart cameras, see what’s going on outside your door. As it so happens, you can save on an Echo Show 5 and Blink camera kit combo! The Show 5 and 2-camera combo is $175, which isn’t a bad price at all. If you just need the Echo Show, though, it’s still cheaper to pick up the Echo Show 5 or Echo Show 8. They’re full-price, but it’s never good to buy smart home things you don’t need! If you already have cameras outdoors, then just grab the Show!

We’ve talked about tablets and Amazon smart home tech, but what about smart car tech? Amazon isn’t leaving those that need to smarten up their vehicle out in the cold. A refurbished Echo Auto is at a low price of just $23, which is really impressive! The Echo Auto speaker essentially adds Alexa to your car, so you can easily ask for directions, change the music, and more without touching your phone. You can also get a two-pack of new Echo Auto speakers for just $80 if you use the code AUTO2PK at checkout.

But if you’re not interested in this and want to see what Amazon has in store next, check out the Day 1 Editions project. You can go ahead and pre-order three new Amazon smart home projects–a smart cuckoo clock, a smart nutrition scale, and a smart stick note maker–and if enough people pre-order it, Amazon will make it. If not, they won’t, and they won’t take your money. It’s a bit strange that one of the world’s biggest corporations is essentially trying to crowd-fund unique smart home products, but… well, if one of them interests you, get your order in.

The post Save big on Amazon tech today, including the Echo Show, Ring items, Fire tablets, and more! appeared first on xda-developers.



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

How to install the Android 12 Developer Preview on your Google Pixel smartphone

It’s that time of year again! The first Developer Preview build of Android 12 is now available for supported devices starting today. This won’t give you the full Android 12 experience as it’s still very much a work-in-progress, but for lucky owners of the Google Pixel 3, Pixel 3 XL, Pixel 3a, Pixel 3a XL, Pixel 4, Pixel 4 XL, Pixel 4a, Pixel 4a 5G, or Pixel 5, you’ll be among the first users to see what new OS update has to offer.

If you have any of the aforementioned Pixel smartphone running stable Android 11 and wondering how you can install Android 12, just scroll down as we have a tutorial ready for you. Since Google will not be providing regular OTAs in case of developer previews, the update can only be installed via manually flashing OTA files or factory images. It means you will need a PC/Mac with ADB and Fastboot installed to successfully execute the installation process, once you have downloaded the relevant Android 12 Developer Preview files.

Warning: The updates are intended for developers only, so don’t install them on your daily-driver. These builds are early releases and contain bugs and other system instabilities. Even if the flashing process doesn’t necessarily wipe your device, it is highly recommended that you back up your data before proceeding. Users are advised to exercise caution.


Method 1: Sideload Android 12 Developer Preview 1 via Recovery and ADB

To install the first Developer Preview, you need to sideload the appropriate OTA package for your device from Recovery through ADB. This method will also work for devices with a locked bootloader.

  1. Download the update .zip file on your computer from here. For convenience, you can rename this file to a simpler name and place the file in the directory where ADB is located on your computer.
  2. Optional but recommended: Verify the SHA-256 checksum of the file you have downloaded to ensure that the file has been downloaded completely and correctly.
  3. Enable USB Debugging on your phone — Go to Settings > About Phone > Tap “Build Number” 7 times, (optionally) enter your pattern, PIN or password to enable Developer Options, and then navigate to Settings > Developer Options > Enable “USB Debugging”.
  4. Connect your phone to your computer. Authorize your computer connection on your phone when the prompt comes up on your phone, if this is the first time you are connecting with this ADB computer.
  5. On your computer, run the command:
    adb reboot recovery
  6. Your phone should now be in Recovery mode.
  7. On your phone, select the option “Apply Update from ADB”
  8. On your computer, run the command:
    adb devices

    This should return a device serial with the “sideload” next to its name, indicating that your device is connected to the computer in sideload mode.

  9. On your computer, run the command:
    adb sideload "filename".zip

    Where “filename” is to be replaced with the name of the file downloaded in Step 1

  10. The update should install on your phone. Once the installation is complete, choose “Reboot system now” on your phone to reboot into Android 12.

Method 2: Flashing full Factory Image via Fastboot

If you have an unlocked bootloader, you need to flash the full factory image of the Android 12 Developer Preview 1 via Fastboot. Usually, this is done through a flash-all.sh or flash-all.bat script file that is included in the downloaded file, but its default configuration also wipes the device completely. You can, however, retain your data by deleting the “-w” wipe attribute from the command within the script.

  1. Download the factory image .zip file on your computer from here.
  2. Optional but recommended: Verify the SHA-256 checksum of the file you have downloaded to ensure that the file has been downloaded completely and correctly.
  3. Extract the .zip file, and copy and paste the resultant files onto your ADB and fastboot folder on your computer for convenience.
  4. Optional: The resultant files would contain a flash-all.sh or flash-all.bat script file. Using a text editor, open the flash-all.sh if you’re on macOS/Linux or the flash-all.bat script file if you’re on Windows. Find and remove/delete the -w flag in the fastboot update command. This will skip the data wipe for your phone. To avoid compatibility issues, a data wipe is recommended though.
  5. Enable USB Debugging on your phone — Go to Settings > About Phone > Tap “Build Number” 7 times, (optionally) enter your pattern, PIN or password to enable Developer Options, and then navigate to Settings > Developer Options > Enable “USB Debugging”.
  6. Connect your phone to your computer. Authorize your computer connection on your phone when the prompt comes up on your phone, if this is the first time you are connecting with this ADB computer.
  7. On your computer, run:
    adb reboot bootloader

    This will reboot your phone into Fastboot mode.

  8. On your Mac/Linux PC, run:
    flash-all

    This command executes the flash-all.sh script file, which will then install the necessary bootloader, baseband firmware, and operating system. If you are on Windows, you can simply double click the flash-all.bat file.

  9. Once the script finishes, your device will reboot into the new OS.

Be sure to follow our Android 12 tag for all the latest news on the next major Android version!

The post How to install the Android 12 Developer Preview on your Google Pixel smartphone appeared first on xda-developers.



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

How to download Android 12 Developer Preview for Google Pixel devices

The wait is finally over — Android 12 is here as Google has officially kicked off the Android 12 Developer Preview program. If you’re the lucky owner of a Google Pixel 5, Pixel 4a 5G, Pixel 4a, Pixel 4, Pixel 4 XL, Pixel 3a, Pixel 3a XL, Pixel 3, or the Pixel 3 XL, then you have the opportunity to try out the next major Android version right now.

This page will serve as a one-stop download index for all the Android 12 developer preview/beta releases. We will keep the page updated with the latest OTAs and factory images for all the supported devices. You can learn how to install the Android 12 Developer Preview on Google Pixel smartphones by visiting our dedicated guide here.

It is worth mentioning that the preview builds might not have all the new software features you’ll come to associate with Android 12. To be precise, Google gives developers the chance to test their apps against new Android platform APIs months before the next Android version becomes available for the general public. Hence, the builds mentioned on this page are aimed at the developer community only and are not intended to be used by end-users.


Download Android 12 Developer Preview 1

The post How to download Android 12 Developer Preview for Google Pixel devices appeared first on xda-developers.



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

Android 12 is here with its first Developer Preview and a lot of changes for developers

The Android operating system has been around for years now, and it’s become the dominant OS for mobile devices. While Android as a platform has definitely matured over the years, there’s always room for some improvement. And improve it will, as Google is now releasing the first version of its next upgrade, Android 12. Android 12 Developer Preview 1 is here, and it brings along changes that make Android more intuitive, better performing, and more secure.

Before we move on, here’s something that needs repetition: This Developer Preview, as the name implies, is intended for developers only so they can try out the upcoming OS and test their apps to adapt to the changes that are introduced. That means this is a very rough OS release, as is intended, but Google will be polishing it with developer feedback over the next few months. If you’re an average user, the Android 12 update for you will arrive not before the second half of the year. Until then, we recommend you stay away from flashing the builds onto your phone and just read our coverage to stay updated on all the changes coming to Android!

Android 12 is being built with the tenants of privacy, better user experience, and better performance, with its Developer Preview 1 introducing:

  • Trust and Safety
    • Modern SameSite cookie behaviors in WebView
    • Restricted Netlink MAC
    • Safer exporting of components
    • Safer handling of intents
  • Better User Experience Tools
    • Compatible media transcoding
    • AVIF image support
    • Foreground service optimizations
    • Rich content insertion
    • Haptic-coupled audio effect
    • Multi-channel audio
    • Immersive mode improvements for gesture navigation
    • Notification UI updates
    • Faster and more responsive notifications
    • Improved Binder IPC calls
  • App Compatibility
    • Project Mainline / Google Play System Updates:  ART and more
    • Optimizing for tablets, foldables, TVs
    • Updated lists of non-SDK interfaces
    • Easier testing and debugging changes
    • Platform stability milestone
  • How to Download and How to Install Android 12 Developer Preview 1

Trust and Safety related changes in Android 12

Google hopes to give users more transparency and control while keeping Android devices secure. Android 12 brings along new controls over identifiers that can be used for tracking, safer defaults for app components, and more.

Modern SameSite cookie behaviors in WebView

WebView is being updated to bring it in line with changes to Google Chrome and other browsers, with respect to SameSite cookie behaviors. This will provide additional security and privacy, and give users more transparency and control over how cookies can be used across sites.

Restricted Netlink MAC

Google wants developers to migrate to privacy-protecting resettable identifiers. To that end, it has adopted a multi-release effort to ease migration of device-scoped Netlink MAC. Android 11 restricted access to device-scoped Netlink MAC to API level 30, and in Android 12, the restriction is being applied for all apps, regardless of targetSDK level.

Safer exporting of components

Apps on previous Android releases can inadvertently export activities, services, and receivers. Google is changing the default handling of the android;exported attribute to be more explicit in Android 12. With Android 12, components that declare one or more intent filters must now explicitly declare an android;exported attribute. Google is advising developers to inspect their components in the manifest in order to avoid installation errors related to the change.

Safer handling of Intents

Android 12 requires apps to explicitly declare a mutability flag, either FLAG_MUTABLE or the new FLAG_IMMUTABLE, for each PendingIntent. This should make handling PendingIntents more secure.


Better User Experience Tools in Android 12

No update is complete without some more polish towards the user experience, and Android 12 is no different.

Compatible media transcoding

Most mobile devices these days come with H.265 / HEVC hardware encoding, allowing camera apps to capture in the HEVC format as it offers significant improvements in quality and compression over older codecs. Most apps support HEVC, but there are still a few that do not support it. For these apps, Google is introducing compatible media transcoding with Android 12.

With this feature, an app that does not support HEVC can have the platform automatically transcode the file into H.264 / AVC, a format that sees much wider compatibility. As one would expect, the transcoding process will take some time depending on the video and the hardware properties of the smartphone. Google provides the example of the Pixel 4 (Snapdragon 855) that takes around 9 seconds to transcode a 1-minute 1080p 30fps video.

Developers can opt-in to use the transcoding service by simply declaring the media formats that their app does not support. Google strongly recommends that apps support HEVC in the first place, but if that is not possible, then the developer should enable compatible media transcoding. The feature will be active on all devices using HEVC format for video capture.

AVIF Image Support

Android 12 is introducing platform support for AV1 Image File Format, allowing for higher image quality with more efficient compression. AVIF is a container format for images and sequences of images encoded using AV1. AVIF takes advantage of the intra-frame encoded content from video compression, dramatically improving image quality for the same file size when compared to older image formats such as JPEG.

Left: AVIF (18.2kB). Right: JPEG (20.7kB). Credits: Image comparison from AVIF has landed by Jake Archibald

Foreground Service Optimizations

A foreground service is a service that performs some operation that is noticeable to the user, like an audio app playing an audio track and thus using a foreground service. These services are an important way for apps to manage certain types of user-facing tasks. But when they are overused, it can affect performance and even lead to app kills.

Citing user experience improvements, Google will be blocking foreground service starts from the background for apps that are targeting the new platform. And to make it easier for developers to transition away from this start pattern, Android 12 introduces a new expedited job in JobScheduler that gets elevated process priority, network access, and runs immediately regardless of power constraints like Battery Saver or Doze. For back-compatibility, Google has also built expedited jobs into the latest release of Jetpack WorkManager library. Further, Google is also delaying the display of some foreground service notifications by up to 10 seconds. This gives short-lived tasks a chance to complete before their notifications are shown, reducing distraction for users.

Rich Content Insertion

We’ve long crossed the point where our communication on phones relied only on simple voice and text. Most communication these days is incomplete without accompanying images (read: memes), videos, and other expressive content (read: reaction gifs). However, inserting and moving these rich types of content within and across apps is not easy.

To make it easier for apps to receive rich content, Google is introducing a new unified API that lets them accept content from any source: clipboard, keyboard, or drag and drop. Developers can attach a new interface called OnReceiveContentListener to UI components and get a callback when content is inserted through any mechanism. This callback consequently becomes the single place for the app code to handle the insertion of all types of content, whether it be plain text, styled text, markup, images, video, or audio files, and beyond.

For back-compatibility, Google has added the unified API to Androidx.

Haptic-coupled audio effect

In Android 12, apps can provide audio-coupled haptic feedback through the phone’s vibrator. Further, the vibration strength and frequency are derived from an audio session, allowing developers to create a more immersive game and audio experience. For instance, calling apps can perhaps use custom ringtones to identify callers through haptic feedback, and games could simulate rough terrain in a racing game. There are a fair few possibilities to explore here.

Multi-Channel Audio

Android 12 includes several enhancements for audio with spatial information. It adds support for MPEG-H playback in passthrough and offload mode. The audio mixers, resamplers, and effects have been optimized for up to 24 channels (the previous maximum was 8 on Android 11).

Immersive mode improvements for gesture navigation

Android 12 brings along a change that sounds very important on the surface. In full-screen or immersive app experiences, Android 12 will allow users to navigate their phones with one swipe as a default. The OS will still protect apps from accidental gestures in these full-screen experiences. We’ll be getting our hands on the Developer Preview to figure out exactly what has changed as the wording does not do complete justice to the change.

Notification UI updates

As you may have already spotted in the leaked Android 12 screenshots, notifications will be receiving a bit of a touch-up to make them more modern, easier to use, and more functional. Google mentions that there are changes from the drawer and controls to the templates themselves. Transitions and animations are also being optimized to make them smoother. Apps that target Android 12 will also have access to notifications with custom content with icon and other changes to match all other notifications. We’ll be taking a closer look at the changes in our hands-on.

Faster and more responsive notifications

Notifications should offer a clear and quick path to reach a certain section within an app. For that cause, developers need to ensure that notification taps trigger Activity starts directly, rather than using an intermediary broadcast receiver or service to start the Activity (an approach that Google is referring to as Notification Trampoline). Notification Trampolines can cause significant delays and affect user experience, and so, Android 12 will block these notification trampolines by preventing them from launching their target Activities. Google is asking developers to migrate away from such a practice. This change applies only to apps targeting the new platform, but for all apps, Google will display a toast to make trampolines visible to the developer and to users.

Improved Binder IPC calls

Google has focused on reducing system variability by making optimizations to latency and workload distribution that reduce the median experience for 99% percentile use cases. This has resulted in improvements to system binder calls, adding lightweight caching strategies and focusing on removing lock contention to improve latency distribution. Google claims that this has yielded about 2x performance increase on Binder calls overall, with significant improvements in specific calls such as refContentProvider() (47x improvement), releaseWakeLock() (15x improvement), and JobScheduler.schedule() (7.9x improvement).


App Compatibility in Android 12

In this section, Google talks about making updates faster and smoother for both developers and users. App-facing changes are being made opt-in to give developers more time to adapt to the new platform.

Project Mainline / Google Play System Updates:  ART and more

As we figured out last year itself, Google is transitioning ART into a Project Mainline module. This will allow Google to improve runtime performance and correctness, manage memory core more efficiently, and make Kotlin operations faster — all without requiring a full system update.

Further, some of the functions mentioned in this very news piece are also being delivered through Project Mainline. For instance, the seamless transcoding feature is being delivered through an updatable module, indicating that this could very well be the future for Android.

Optimizing for tablets, foldables, and TVs

Google is also releasing the first Android 12 preview for Android TV. With this, you not only get the latest Android features on the TV, but also get to test against the new Google TV experience.

Updated lists of non-SDK interfaces

With this release, Google has restricted additional non-SDK interfaces.

Easier testing and debugging changes

Introduced with Android 11, Google allows for easier testing and debugging of changes through opt-in toggles for changes presented individually from Developer Options or through ADB.

Platform stability milestone

Just like last year, Google is planning to reach the Platform Stability milestone for this release, to let developers have concrete knowledge about the final SDK/NDK APIs and all the final internal APIs and app-facing system behaviors that they need to prepare their app for. Google is expecting to reach Android 12 Platform Stability by August 2021.


Download and Install Android 12 Developer Preview 1

You can easily download the latest Android 12 Developer Preview from the links present in our dedicated article, which shall be updated with download links for future releases as well.

Google is officially releasing this developer preview update for:

Further, we have installation instructions available for Android 12 Developer Preview 1 for common installation routes such as Recovery, ADB, and Fastboot for the aforementioned Pixel devices, and through a GSI for all other Project Treble-compatible devices.

The post Android 12 is here with its first Developer Preview and a lot of changes for developers appeared first on xda-developers.



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

ASUS is launching the ROG Phone 5 on March 10

ASUS is preparing to unleash its next gaming smartphone on the market, which is set to follow in the powerful footsteps of the ROG Phone 3. But what we get won’t be the ROG Phone 4; ASUS is skipping right to the ROG Phone 5.

Apparently, the number 4 is considered unlucky in East Asian, which is why the ROG Phone 5 will be the next ASUS smartphone. And the device will launch on March 5, as confirmed by this landing page, which features a countdown clock and what time the unveiling will take place. If you’re in Taipei, the device will launch at 7:00 p.m. local time.

We’re expecting big things from the ROG Phone 5, including the latest Snapdragon 888 processor, plus the same 6,000mAh battery as its predecessor, 6.78-inch OLED display, and triple-camera setup. The device will also likely feature up to 16GB RAM and a fingerprint sensor that sits under the display. This is just speculation on our part based on what we’ve seen from ASUS in the past.

One of the most exciting new things about the ROG Phone 5 might be its dot matrix on the back for Aura Lighting. ASUS actually published a teaser for the ROG Phone 5 earlier this year, which was then followed by a leaked image and video giving us a look at the phone’s tiny secondary display on the back. The display appears to be used for showing things like alerts for games and other notifications.

Other than that, the ROG Phone 5’s design might not be too different compared to the previous version. That includes the dual front-facing speaker, and the lack of a notch or hole-punch. When the device launches, it’s expected to feature Android 11 out of the box.

The ROG Phone 3 was one of our favorite phones of 2020, so we’re looking forward to what’s next. Luckily, we don’t have to wait too much longer before the ROG Phone 5 is announced.

The post ASUS is launching the ROG Phone 5 on March 10 appeared first on xda-developers.



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