Top

Google introduces Android 9 Pie

Android 9 utilises machine learning to make your phone smarter, simpler, and tailored to you.

After more than a year of development and months of testing by early adopters, Google has launched Android 9 Pie, the latest release of Android.

Android 9 utilises machine learning to make your phone smarter, simpler and tailored to you. For developers, Android 9 includes new ways to enhance apps and build new experiences to drive engagement.

Google is pushing the source code to Android Open Source Project (AOSP), and starting the Android 9 rollout to all Pixel users worldwide, with Android 9 coming to many more devices in the coming months.

Google continues to move Android forward as an open platform for developers worldwide to build their businesses. With Android 9, together with the new capabilities in Google Play for apps and games, Google states that they are committed to helping you build great experiences, as well as reach and engage the right users safely and cost-effectively around the world.

Android 9 helps your phone learn as you use it, by picking up on your preferences and adjusting automatically. Everything from helping users get the most out of their battery life to surfacing the best parts of the apps they use all the time, right when they need it most.

Google Android Pie release features

Google has partnered with DeepMind on a feature called Adaptive Battery that uses machine learning to prioritize system resources for the apps the user uses the most. If your app is optimized for Doze, App Standby, and Background Limits, Adaptive Battery should work well right out of the box.

Slices can help users perform tasks faster by enabling engagement outside of the full-screen app experience. It does this by using UI templates that can display rich, dynamic, and interactive content from an app from within the Google Search app and later in other places like the Google Assistant.

Google Android Pie release features

App Actions is a new way to raise the visibility of your app and drive engagement. Actions take advantage of machine learning to surface your app to the user at just the right time, based on your app's semantic intents and the user's context.

Google Android Pie release features

Google has extended the ML models that identify entities in content or text input to support more types like Dates and Flight Numbers through the TextClassifier API. Smart Linkify lets you take advantage of the text classifier models through the Linkify API, including options for quick follow-on user actions. Smart Linkify also delivers improvements in the accuracy of detection as well as performance.

Android 9 adds an updated version of the Neural networks API, to extend Android's support for accelerated on-device machine learning. Neural Networks 1.1 adds support for nine new ops — Pad, BatchToSpaceND, SpaceToBatchND, Transpose, Strided Slice, Mean, Div, Sub, and Squeeze. A typical way to take advantage of the APIs is through TensorFlow Lite.

Google is making your smartphone more intelligent. They state that it's also important that the technology fades to the back for users. In Android 9, Google has evolved Android's UI to be simpler and more approachable -- for developers, these changes help improve the way users find, use, and manage your apps.

Google Android Pie release features

Android 9 introduces a new system of navigation that Google has been working on for more than a year. The new design helps make Android's multitasking more approachable and makes discovering apps much easier. You can swipe up from anywhere to see full-screen previews of recently used apps and simply tap to jump back into one of them.

Google says that now your app can take full advantage of the latest edge-to-edge screens through display cutout support in Android 9. For most apps, supporting display cutout is seamless, with the system managing status bar height to separate your content from the cutout. If you have immersive content, you can use the display cutout APIs to check the position and shape of the cutout and request full-screen layout around it. To help with development and testing, Google has added a Developer Option that simulates several cutout shapes on any device.

Android 9 makes notifications more useful and more actionable. Messaging apps can take advantage of the new MessagingStyle APIs to show conversations, attach photos and stickers, and even suggest smart replies. You'll soon be able to use ML Kit to generate smart reply suggestions for your app.

Google Android Pie release features

In Android 9 Google added a Magnifier widget to improve the user experience of selecting text. The Magnifier widget lets users precisely position the cursor or the text selection handles by viewing zoomed text through a draggable pane. You can attach it to any view that is attached to a window, so you can use it in custom widgets or during custom text-rendering. The Magnifier widget can also provide a zoomed-in version of any view or surface, not just text.

With a range of biometric sensors in use for authentication, Google made the experience more consistent across sensor types and apps. Android 9 introduces a system-managed dialogue to prompt the user for any supported type of biometric authentication. Apps no longer need to build their own dialogue--instead, they use the BiometricPrompt API to show the standard system dialogue. In addition to Fingerprint (including in-display sensors), the API supports Face and Iris authentication.

If your app is drawing its own fingerprint auth dialogues, you should switch to using the BiometricPrompt API as soon as possible.

Android 9 introduces Android Protected Confirmation, which uses the Trusted Execution Environment (TEE) to guarantee that a given prompt string is shown and confirmed by the user. Only after successful user confirmation will the TEE then sign the prompt string, which the app can verify.

Google has added StrongBox as a new KeyStore type, providing API support for devices that provide key storage in tamper-resistant hardware with isolated CPU, RAM, and secure flash. You can set whether your keys should be protected by a StrongBox security chip in your KeyGenParameterSpec.

Android 9 adds built-in support for DNS over TLS, automatically upgrading DNS queries to TLS if a network's DNS server supports it. Users can manage DNS over TLS behaviour in a new Private DNS Mode in Network & internet settings. Apps that perform their own DNS queries can use a new API, LinkProperties.isPrivateDnsActive(), to check the DNS mode.

As part of a larger effort to move all network traffic away from cleartext (unencrypted HTTP) to websites secured with TLS (HTTPS), Google is changing the defaults for Network Security Configuration to block all cleartext traffic. You'll now need to make connections over TLS unless you explicitly opt-in to cleartext for specific domains.

In Android 9 Google has expanded their use of compiler-level mitigations to harden the platform through run-time detection of dangerous behaviour. Control Flow Integrity (CFI) techniques help to prevent code-reuse attacks and arbitrary code execution. In Android 9 we've greatly expanded CFI usage within the media framework and other security-critical components, such as NFC and Bluetooth. Google has also introduced CFI kernel support into the Android common kernel when building with LLVM.

Google has also expanded our use of Integer overflow sanitizers to mitigate memory-corruption and information-disclosure vulnerabilities. Google has prioritized sanitizers in libraries with past vulnerabilities or where a complex untrusted input is processed, such as libui, libnl, libmediaplayerservice and others.

Android 9 safeguards privacy in a number of new ways. The system now restricts access to a mic, camera, and all SensorManager sensors from apps that are idle. While your app's UID is idle, the mic reports empty audio and sensors stop reporting events. Cameras used by your app are disconnected and will generate an error if the app tries to use them. In most cases, these restrictions should not introduce new issues for existing apps, but we recommend removing these requests from your apps.

Android 9 also gives the user control over access to the platform's build.serial identifier by putting it behind the READ_PHONE_STATE permission. To access the build.serial identifier, you should use the Build.getSerial() method.

With Android 9 you can now open streams from two or more physical cameras simultaneously on devices that support the multi-camera API. On devices with either dual-front or dual-back cameras, you can create innovative features not possible with just a single camera, such as seamless zoom, bokeh, and stereo vision. The API also lets you call a logical or fused camera stream that automatically switches between two or more cameras.

Other improvements in camera include new Session parameters that help to reduce delays during initial capture and Surface sharing that lets camera clients handle various use-cases without the need to stop and start camera streaming. Google also added APIs for display-based flash support and access to OIS timestamps for app-level image stabilization and special effects.

Android 9 adds built-in support for HDR VP9 Profile 2, so you can now deliver HDR-enabled movies to your users on HDR-capable devices.

Google has added HEIF (heic) image encoding to the platform. HEIF is a popular format for photos that improves compression to save on storage and network data. With platform support on Android 9 devices, it's easy to send and utilize HEIF images from your backend server. Once you've made sure that your app is compatible with this data format for sharing and display, give HEIF a try as an image storage format in your app. You can do a jpeg-to-heic conversion using ImageDecoder or BitmapFactory to obtain a bitmap from jpeg, and you can use HeifWriter in the AndroidX library to write HEIF still images from YUV byte buffer, Surface, or Bitmap.

The Dynamics Processing API lets you use a new audio effect to isolate specific frequencies and lower loud or increase soft sounds to enhance the acoustic quality of your app. For example, you can improve the sound of someone who speaks quietly in a loud, distant or otherwise acoustically challenging environment. The API gives you access to a multi-stage, multi-band dynamics processing effect that includes a pre-equalizer, a multi-band compressor, a post-equalizer and a linked limiter.

An ImageDecoder API gives you an easier way to decode images to bitmaps or drawables. You can create a bitmap or drawable from a byte buffer, file, or URI. The API offers several advantages over BitmapFactory, including support for exact scaling, single-step decoding to hardware memory, support for post-processing in decode, and decoding of animated images.

Google Android Pie release features

Android 9 lets you build indoor positioning features into your apps through platform support for the IEEE 802.11mc Wi-Fi protocol -- also known as Wi-Fi Round-Trip-Time (RTT). On Android 9 devices with hardware support, location permission, and location enabled, your apps can use RTT APIs to measure the distance to nearby Wi-Fi Access Points (APs). The device doesn't need to connect to the APs to use RTT, and to maintain privacy, only the phone is able to determine the distance, not the APs.

Knowing the distance to 3 or more APs, you can calculate the device position with an accuracy of 1 to 2 metres. With this accuracy you can support use-cases like in-building navigation; fine-grained location-based services such as disambiguated voice control (e.g. 'Turn on this light'); and location-based information (e.g. 'Are there special offers for this product?').

JobScheduler is Android's central service to help you manage scheduled tasks or work across Doze, App Standby, and Background Limits. In Android 9, JobScheduler handles network-related jobs better for the user, coordinating with network status signals provided separately by carriers. Jobs can now declare their estimated data size, signal prefetching, and specify detailed network requirements—carriers can report networks as being congested or unmetered. JobScheduler then manages work according to the network status. For example, when a network is congested, JobScheduler might defer large network requests. When unmetered, it can run prefetch jobs to improve the user experience, such as prefetching headlines.

Android 9 adds an implementation of the GlobalPlatform Open Mobile API to Android. On supported devices, apps can use the OMAPI API to access secure elements (SE) to enable smart-card payments and other secure services. A hardware abstraction layer (HAL) provides the underlying API for enumerating the variety of Secure Elements (eSE, UICC, and others) available.

Android 9 brings performance and efficiency improvements to all apps through the ART runtime. Google has expanded ART's use of execution profiles to optimize apps and reduce the in-memory footprint of compiled app code. ART now uses profile information for an on-device rewriting of DEX files, with reductions up to 11% across a range of popular apps. Google expects these to correlate closely with reductions in system DEX memory usage and faster startup times for your apps.

Kotlin is a first-class language on Android. Google has made a commitment to Kotlin in Android and continues to expand support including optimizing the performance of Kotlin code. In Android 9, you'll see the first results of this work--we've improved several compiler optimizations, especially those that target loops, to extract better performance. Google is also continuing to work in partnership with JetBrains to optimize Kotlin's generated code. You can get all of the latest Kotlin performance improvements just by keeping Android Studio's Kotlin plugin up-to-date.

Google Android Pie release features

Google is also releasing an update to the Android 9 - API 28 SDK, which contains nullability annotations in some of the most frequently used APIs.

As part of Android 9 Google is modernizing the foundations of Android and the apps that run on it, as part of Google’s deep, sustained investments in security, performance, and stability.

Google Play will require all app updates to target Android Oreo (targetSdkVersion 26 or higher) by November 2018. In line with that, if your app targets a platform earlier than Android 4.2 (API level 17), users installing it will see a warning dialogue after that day.

With Android 9 coming to Pixel users, and to other devices in the months ahead, it's important to test your app for compatibility as soon as possible. Just install your current app from Google Play on a device or emulator running Android 9. As you work through the flows, make sure your app runs and looks great, and that it handles the Android 9 behaviour changes properly.

Google also says to watch for uses of non-SDK interfaces in your app. Android 9 restricts access to selected non-SDK interfaces, so you should reduce your reliance on them.

After you've made any necessary updates, Google recommends publishing to Google Play right away, without changing the app's platform targeting. This lets you ensure a great experience for Android 9 users while you work on enhancing your app with Android 9 APIs and targeting.

Starting today, an over-the-air update to Android 9 will begin rolling out to Pixel phones. And devices that participated in the Beta program from Sony Mobile, Xiaomi, HMD Global, Oppo, Vivo, OnePlus, and Essential, as well as all qualifying Android One devices, will receive this update by the end of this fall. Google is also working with a number of other partners to launch or upgrade devices to Android 9 this year.

Click on Deccan Chronicle Technology and Science for the latest news and reviews. Follow us on Facebook, Twitter.

( Source : Deccan Chronicle. )
Next Story