Google GMS certification test related

GMS (Google Mobile Service)

Preface

Why do GMS certification test? According to my own understanding, Google provides the Google GMS package, we call it GMS package. Generally, our overseas orders to meet the needs of the market require a built-in google package and some necessary google If you want to sell these packages on the market, you must pass Google’s certification.
On the one hand, Google’s tests can prevent manufacturers from making random modifications to Rom without measuring the consequences, and it can also allow Google to obtain the equipment itself. Information such as possession amount, of course, also involves more stakes.

Test suite

According to the requirements on android P, we need to go through the GMS certification completely. The test we need to involve
CTS test
CTS is the abbreviation of Compatibility Test Suite, that is, compatibility test, which is a compatibility test suite provided by Google for Android device manufacturers for free . CTS defines the technical indicators that many Android devices must meet to ensure that every CTS-certified device can smoothly run the software sold in Google Play. (Not every software can run on all Android devices. Google Play only displays applications that can run on that Android device, and it is also restricted by local laws and regulations.) It is
used to test the compatibility of App and framework. The CTS documentation and test suite can be obtained here: http://source.android.com/compatibility/downloads.html.

GTS Test (Google Mobile Services Test Suite)
Google Mobile Services Test Suite (GMS Test Suite) is an automated test suite for testing GMS applications, including test content of video with resolution and bit rate supported by Google Play Video, GTS The test requires a system above Android 4.0. The main content is the test of the widevine (digital copyright related) function.

CTS-on-GSI test
GSI refers to the system image that has been adjusted and configured for Android devices. Used to run VTS and CTS-on-GSI tests

The VTS test (Vendor Test Suite)
is used to test the compatibility with the framework upwards and to test the compatibility with the OS kernel downwards.

STS test (Security Test Suite) is
mainly used to test whether Android Security Pacth is effective.

CTS Verifier
manual test software, a series of software tests provided by google to check the stability of the system. CTSVerifier is a part of CTS and needs to be performed manually. It is mainly used to test functions that cannot be tested by automatic test systems, such as camera quality and sensor Perceived results, etc. CTSVerifier will test many hardwares, and the test items will vary depending on the type of hardware supported by the device. It will automatically detect which hardware the device supports to generate test items. If a device hardware supports NFC, there will be NFC-related test items, otherwise, there will be no such test items. Therefore, the equipment must pass all the tests in CTSVerifier.

At present, CTSVerifier can be put in the last stage in the company, that is, after all the CTS automatic tests are passed, the CTSVerifier test can be carried out.

The BTS test (Build Test Suite)
provides software to Google, which will scan the software for pre-installed malware or potentially harmful applications (PHA). The test is usually started after submitting 3PL, and the early stage of development can be put later.

Performance test For
low-end models, it seems that 1G of running memory still needs performance testing . Because this one has not been done, it is only heard and not operated.

Part2. Test environment setup

Ubuntu14.04 Of course, ubuntu version can be configured with other versions
jdk1.8
. Aapt and adb
adb ensure that the version is
above 1.0.39. The above configuration can ensure that CTS can be tested normally.

GTS needs to import 3PL's API_APE_KEY

VTS test needs to install dependencies
1) Install python development package
$ sudo apt-get install python-dev
2) Install Protocol Buffer tool
$ sudo apt-get install python-protobuf
$ sudo apt-get install protobuf-compiler
3) Install Python virtual environment Related tools
$ sudo apt-get install python-virtualenv
$ sudo apt-get install python-pip

Relevant test instruction set, refer to the
Insert picture description here
CTS on andriod P. Note that the media package is copied to the test PC in advance to prevent the time wasted by downloading the media package when testing media-related test items. After downloading the media package, keep the following directory Structure/
tmp/android-cts-media/android-cts-media-1.4

After restarting the host, remember to copy it once, because the files in the tmp directory will be cleared after restarting.

The settings on the mobile phone are quite conventional, so I won’t list them one by one here. There are other items of attention. I will update them in this article or write other examples separately. Anything wrong, welcome to correct me.

Guess you like

Origin blog.csdn.net/jeephao/article/details/103440420