Obtain the corresponding package name of the system application for monkey testing
When doing monkey testing, sometimes you need to set app to run with system applications (such as system applications that access system permissions). You can use Tencent GT. The specific steps are as follows:
Here, take app calling the system camera as an example, list all the package names of the system with adb shell pm list packages, and then copy and paste them to notepad for view, as shown in the figure.
There are two camera, God knows which one. At this time, you can use Tencent GT to distinguish. The steps are as follows:
1. Open GT and click on the debugged application box
two。 After entering, find the camera icon that you are familiar with
3. You'll see the package name at the bottom, com.sec.android.app.camera.