Tuesday, August 16, 2022
HomeMobileAndroid Builders Weblog: Developer-Powered CTS (CTS-D)

Android Builders Weblog: Developer-Powered CTS (CTS-D)

Posted by Sachiyo Sugimoto, Android Accomplice Engineering

A energy of Android is its numerous ecosystem of units, dropped at market by greater than 24K distinct units, and utilized by billions of individuals world wide. For the reason that early releases of Android, we’ve invested in our Android Compatibility Program as a approach to make sure that units proceed to offer a secure, constant surroundings for apps.

The Compatibility Check Suite (CTS) is a key a part of this system – it’s a assortment of greater than two million check instances that examine Android machine implementations to make sure developer functions run on a wide range of units and allow a constant software expertise for customers.

Gadget makers run CTS on their units all through the event course of, and use it to establish and repair bugs early. Through the years now we have always expanded the suite by including new check instances, and at the moment CTS contains greater than 2 million exams. It’s nonetheless rising – as Android evolves, there are new areas to cowl and there are additionally gaps the place we’re always working to create further exams.

Whereas most CTS exams are written by Android engineers, we all know that app builders have a novel perspective on precise machine compatibility points. So to boost CTS with higher enter from app builders, we’re including a brand new check suite known as CTS-D that’s constructed and run by builders such as you.

What’s CTS-D?

CTS-D is a brand new CTS module that’s powered by app builders with a deal with ache factors that they’re seeing within the area. Builders can construct and contribute check instances to CTS-D to assist catch these points, and so they can run the CTS-D suite to confirm compatibility. Long run, our plan is to work carefully with the Android developer neighborhood to develop the CTS-D suite.

We all know that lots of you could have already created your personal exams to confirm compatibility on numerous units. We wish to work with you to deliver these exams into AOSP, and you’ll see the primary exams contributed by the neighborhood within the preliminary CTS-D commit right here.

So with CTS-D, we’re serving to to make these sorts of exams obtainable extensively, to assist machine producers and app builders establish and share points extra successfully.

How is CTS-D used?

CTS-D is open-sourced and obtainable on AOSP, so any app developer can use it as a verification device. Utilizing CTS-D helps to attenuate the communication overhead amongst app builders, machine producers and Google, serving to to resolve points successfully.

If a sure machine doesn’t move a CTS-D check, please report the issue utilizing this situation tracker template. After we confirm the problem on the reported machine, we are going to work with our companions to resolve it. We’re additionally strongly advising machine producers to make use of CTS-D to find and mitigate points.

Get Began with CTS-D!

In case you have an thought for CTS-D, please file a check proposal utilizing this situation tracker template earlier than contributing your check code to AOSP. The Android staff will overview your proposal and confirm your check’s eligibility. We’re at present most concerned about including extra check instances within the space of Energy Administration.

Identical to with CTS, new CTS-D check instances should meet eligibility necessities and might solely implement the next:

  1. All public API behaviors which are described in Android developer documentation.
  2. All MUST necessities which are included in Android Compatibility Definition Doc (CDD).
  3. Check instances that haven’t been lined by present CTS check instances in AOSP

If you’re concerned about studying extra about CTS-D, take a look at tutorials right here on the best way to contribute to and make the most of CTS-D. Observe that the overview course of for brand new CTS-D check instances can take a while, so thanks to your endurance. We hope you’ll give CTS-D a attempt quickly. Let’s collaboratively make the Android expertise even higher!



Please enter your comment!
Please enter your name here

Most Popular