WO2018209802A1 - Method for displaying device identifier, mobile terminal, and terminal device - Google Patents

Method for displaying device identifier, mobile terminal, and terminal device Download PDF

Info

Publication number
WO2018209802A1
WO2018209802A1 PCT/CN2017/093889 CN2017093889W WO2018209802A1 WO 2018209802 A1 WO2018209802 A1 WO 2018209802A1 CN 2017093889 W CN2017093889 W CN 2017093889W WO 2018209802 A1 WO2018209802 A1 WO 2018209802A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
device identifier
device
adb
display
Prior art date
Application number
PCT/CN2017/093889
Other languages
French (fr)
Chinese (zh)
Inventor
胡建宾
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to CN201710348363 priority Critical
Priority to CN201710348363.8 priority
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018209802A1 publication Critical patent/WO2018209802A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Abstract

Embodiments of the present application provide a method for displaying a device identifier, a mobile terminal, and a terminal device, for use to display a device identifier according to a received adb command, such that a user can visually see the device identifier, without performing various operating steps to look up and determine an identifier of a mobile terminal. For the user, time is saved and experience is improved. The method may comprise: the mobile terminal establishes a communicative connection with a terminal device; the mobile terminal receives a first adb command sent by the terminal device, the first adb command comprising a device identifier; and the mobile terminal displays the device identifier on a display screen according to the first adb command.

Description

Method for displaying device identification, mobile terminal and terminal device

This application claims the priority of the Chinese Patent Application filed on May 17, 2017, the Chinese Patent Application No. PCT Application No. Combined in this application.

Technical field

The present application relates to the field of terminal applications, and in particular, to a method for displaying device identification, a mobile terminal, and a terminal device.

Background technique

In the daily work or life, the user may encounter a scenario where the computer is connected to multiple mobile terminals at the same time, and the computer may obtain the device identifier of multiple connected mobile terminals, wherein the device identifier may be a serial number (SN). The terminal model and user-defined device name are not specifically limited.

When the user wants to send information to one or more mobile terminals (which may be referred to as a target mobile terminal) connected to the computer, the user does not know the device identifier of the target mobile terminal, and cannot determine the device identifier corresponding to the target mobile terminal on the computer; The user can view the device identifier through a plurality of operation steps on the target mobile terminal, and then send information to the mobile terminal identified for the device on the computer.

Currently, obtaining the device identifier of the mobile terminal includes multiple operation steps. Taking the mobile phone as an example and searching for the device identifier as the SN, the user needs to check the SN in the setting--about the mobile phone--state--or setting--about the mobile phone -- The phone name and other steps to view the device ID. The operation process of viewing the device identifier of the mobile terminal is cumbersome, wastes user time, and the user experience is poor.

Summary of the invention

The embodiment of the present invention provides a method for displaying a device identifier, a mobile terminal, and a terminal device, which are used to display a device identifier according to the received adb command, and the user can visually see the device identifier, and does not require the user to perform various types. The operation steps are performed to determine the identity of the mobile terminal, save user time, and improve user experience.

In view of this, the first aspect of the present application provides a method for displaying a device identifier, which may include: a mobile terminal establishes a communication connection with a terminal device; and the mobile terminal receives a first adb command sent by the terminal device, where the first The adb command includes a device identifier; the mobile terminal displays the device identifier on the display according to the first adb command. It should be understood that the manner in which the mobile terminal establishes a communication connection with the terminal device may be a universal serial bus (USB), a Bluetooth, a wireless fidelity (WIFI), or the like, and is not limited. The mobile terminal can display the device identifier according to the first adb command. Then, the user does not need to perform various operation steps to obtain the device identifier of the mobile terminal, which can save user time and improve the user experience. The cumbersome steps of the user to find the device identifier are effectively avoided, and the device identifier may not be known. It is necessary to make various attempts to find the device identifier of the mobile terminal. Therefore, the embodiment of the present application can effectively improve the user experience.

With reference to the first aspect of the embodiments of the present application, in a first implementation manner of the first aspect of the application, the device identifier includes at least one of a device number and the serial number, where the device number is The serial number has a map The number of the relationship. It should be noted that the device identifier may include, but is not limited to, a device number and a serial number, and may also include a user-defined name, or a factory number, or a unique identifier, etc., which is not limited. As long as different mobile terminals can be distinguished, the user can determine the target mobile terminal according to the device identification.

With reference to the first aspect of the embodiment of the present application, the first implementation manner of the first aspect, in the second implementation manner of the first aspect of the embodiment of the present application, the mobile terminal is displayed on the display screen according to the first adb command. Before the device identifier is displayed, the method may further include: the mobile terminal displays an application icon on the first layer interface of the display screen; the application icon may be an application of setting, WeChat, Weibo, browser, camera, etc. Icon. The mobile terminal displays the device identifier on the display screen according to the first adb command, and the method includes: the mobile terminal displaying the device identifier on the second layer interface of the display screen according to the first adb command, the first The layer interface is placed on the bottom layer of the second layer interface, or the first layer interface is placed on the top layer of the second layer interface. The first layer interface is placed at the bottom of the second layer interface, and it can be understood that the device identifier is displayed above the application icon. The first layer interface is placed on the top layer of the second layer interface, and it can be understood that the device identifier is displayed below the application icon. An implementation manner of the display device identifier is provided in the embodiment of the present application, which increases the feasibility of the solution.

With reference to the first aspect of the embodiment of the present application, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, in the third implementation manner of the first aspect of the embodiment of the present application, the mobile terminal Displaying the device identifier on the display screen according to the first adb command may include: the mobile terminal animating the device identifier in the display screen according to the first adb command; or, the mobile terminal according to the first adb Command, which displays the device ID as a prompt in the display. The embodiment of the present application provides an implementation manner of several other display device identifiers, which increases the feasibility of the solution.

With reference to the third implementation manner of the first aspect of the embodiment of the present application, in a fourth implementation manner of the first aspect of the embodiment of the present application, the mobile terminal is in the second display screen according to the first adb command. The device identifier is displayed on the layer interface, and the first layer interface is placed on the bottom layer of the second layer interface, and may include: if the number of the application icons is greater than a first threshold, or the display screen area occupied by the application icon If the second threshold is greater than the second threshold, the mobile terminal displays the device identifier on the second layer interface of the display screen according to the first adb command, and the first layer interface is placed at the bottom layer of the second layer interface. The embodiment of the present application can further determine the number of application icons on the display screen or the area occupied by the application icons to determine the implementation manner of the display device identifier. If the number of the application icons is greater than the first threshold, or the display area occupied by the application icon is greater than the second threshold, the device identifier may be displayed above the application icon, which is more easily seen by the user; If the device ID is displayed below the application icon, the device ID is likely to be blocked by the application icon, making the device invisible or invisible to the user.

With reference to the third implementation manner of the first aspect of the embodiment of the present application, in a fifth implementation manner of the first aspect of the embodiment of the present application, the mobile terminal is in the second display screen according to the first adb command. The device identifier is displayed on the layer interface, and the first layer interface is placed on the top layer of the second layer interface, and may include: if the number of the application icons is greater than a first threshold, or the display screen area occupied by the application icon If the second threshold is greater than the second threshold, the mobile terminal displays the device identifier on the second layer interface of the display screen according to the first adb command, and the first layer interface is placed at the bottom layer of the second layer interface. The embodiment of the present application can further determine the number of application icons on the display screen or the area occupied by the application icons to determine the implementation manner of the display device identifier. If the number of the application icons is greater than the first threshold, or the display area occupied by the application icon is greater than the second threshold, the device identifier may be displayed in the application. The device icon is located below, but the device identifier needs to be displayed as enlarged as possible, so that the user can see the device identifier. Otherwise, the user may not be able to see the device identifier. This embodiment provides an optional implementation manner.

With reference to the first aspect of the embodiment of the present application, the first to the third implementation manner of the first aspect, in a sixth implementation manner of the first aspect of the embodiment, the mobile terminal is configured according to the first The adb command displays the device identifier on the display, which may include: if the number of application icons displayed on the first layer interface of the display is less than or equal to the first threshold, or the first layer interface of the display If the display area occupied by the application icon displayed is less than or equal to the second threshold, the mobile terminal displays the device in the first layer interface of the display screen except the idle position of the application icon according to the first adb command. Logo. The embodiment of the present application can further determine the number of application icons on the display screen or the area occupied by the application icons to determine the implementation manner of the display device identifier. If the number of application icons displayed on the first layer interface of the display is less than or equal to the first threshold, or the display icon displayed by the application icon displayed on the first layer interface of the display is less than or equal to the first The second threshold, then, the mobile terminal can display the device identifier in the idle position of the application icon, effectively utilize the idle resources of the display, and ensure that the user clearly sees the device identifier. You can also display the device ID above the app icon.

With reference to the first aspect of the embodiment of the present application, or the first implementation manner of the first aspect, in a seventh implementation manner of the first aspect of the embodiment, the mobile terminal is displayed according to the first adb command. Displaying the device identifier on the screen may include: if the mobile terminal is in a black screen state, the mobile terminal displays the device identifier in a target position of the display screen according to the first adb command, except that the other location of the target location is in a black screen state Or, if the mobile terminal is in a black screen state, the mobile terminal illuminates the display screen according to the first adb command, and displays the device identifier on the display screen. In an implementation manner, when the mobile terminal is in a black screen state, the mobile terminal may display the device identifier in a partial position of the black screen according to the first adb command, which may be a principle of using a light emitting diode (LED) or the like. By means of display, it is not necessary to display all the bright screens, and the user can both see the device identification and save the power of the mobile terminal. In another implementation manner, when the mobile terminal is in a black screen state, the mobile terminal can brighten the display screen according to the first adb command and display the device identifier on the display screen to provide an optional implementation.

With reference to the first aspect of the embodiment of the present application, or the first implementation manner of the first aspect, in an eighth implementation manner of the first aspect of the embodiment, the mobile terminal is displayed according to the first adb command. Displaying the device identifier on the screen may include: the mobile terminal displaying the device identifier in a notification column of the display screen according to the first adb command. That is, the mobile terminal can display the device identifier in the message notification column, providing an optional implementation manner, which increases the feasibility of the solution.

With reference to the eighth implementation manner of the first aspect of the embodiments of the present application, in a ninth implementation manner of the first aspect of the application, the method may further include: the mobile terminal receiving the user sliding in the notification bar The device identifies the generated enlargement instruction; the mobile terminal enlarges and displays the device identifier in the display screen according to the amplification instruction. This implementation scheme is further improved on the basis of the previous implementation. The device identification font displayed in the notification bar is usually relatively small, and the notification bar can be pulled down, and the device identifier is enlarged on the display screen, which is more easily recognized by the user.

With reference to the first aspect of the embodiment of the present application, or the first implementation manner of the first aspect, in the tenth implementation manner of the first aspect of the embodiment, the mobile terminal is displayed according to the first adb command. Displaying the device identifier on the screen may include: the mobile terminal displays a target icon according to the first adb command; the mobile terminal receives the user The target icon performs a triggering command by pressing, sliding or double-clicking; the mobile terminal displays the device identifier on the display according to the triggering instruction. This implementation is implemented by an intermediate icon, that is, after the mobile terminal receives the first adb command, an icon is displayed according to the first adb command, and the user can press, slide or double-click the icon to display the device identifier. An alternative implementation is provided that increases the feasibility of the solution.

With reference to the first aspect of the embodiments of the present application, the first to the tenth implementation manners of the first aspect, in the eleventh implementation manner of the first aspect of the embodiments, the method may further include: The mobile terminal plays the device identifier according to the first adb command voice. That is, the mobile terminal can display the device identifier according to the first adb command, and can also play the device identifier by voice, providing an optional implementation manner, which increases the feasibility of the solution.

In a twelfth implementation manner of the first aspect of the embodiment of the present application, the method may further include The mobile terminal receives a second adb command sent by the terminal device, where the second adb command includes the device identifier; and the mobile terminal performs a corresponding operation according to the second adb command. The user can determine the target mobile terminal according to the device identifier displayed by the mobile terminal, and can then send a command to the target mobile terminal.

With reference to the first aspect of the embodiment of the present application, the first to the twelfth implementation of the first aspect, in the thirteenth implementation manner of the first aspect of the embodiment of the present application, the first adb command For the show command or other commands, it may be indicated that the device identifier is displayed on the mobile terminal.

A second aspect of the present application provides a method for displaying a device identifier, which may include: establishing, by a terminal device, a communication connection with at least two mobile terminals; the terminal device acquiring a device identifier of each of the at least two mobile terminals; And receiving, by the terminal device, the first adb command that adds the corresponding device identifier to the at least two mobile terminals, so that the at least two mobile terminals respectively display the corresponding device identifiers. After the terminal device establishes a communication connection with the at least two mobile terminals, the device identifiers of the at least two mobile terminals can be acquired. However, the user does not know which mobile terminal each device identifier corresponds to, and therefore, the terminal device can be further The adb command is input on the device, and the adb command added with the device identifier is sent to the mobile terminal, and the mobile terminal can display the device identifier on the display screen, and the user does not need to perform various operation steps to obtain the device identifier of the mobile terminal, which can save User time to improve the user experience. The cumbersome steps of the user to find the device identifier are effectively avoided, and the device identifier may not be known. It is necessary to make various attempts to find the device identifier of the mobile terminal. Therefore, the embodiment of the present application can effectively improve the user experience.

With reference to the second aspect of the embodiments of the present application, in a first implementation manner of the second aspect of the embodiment, the device identifier includes at least one of a device number and a serial number, where the device number is The serial number has the number of the mapping relationship. It should be noted that the device identifier may include, but is not limited to, a device number and a serial number, and may also include a user-defined name, or a factory number, or a unique identifier, etc., which is not limited. As long as different mobile terminals can be distinguished, the user can determine the target mobile terminal according to the device identification.

With reference to the second aspect of the embodiment of the present application, the first implementation manner of the second aspect, in the second implementation manner of the second aspect of the embodiment of the present application, the method may further include: the terminal device receiving the second adb a command, the second adb command includes a target device identifier, where the target device identifier is an identifier of the target mobile terminal, and the terminal device sends the second adb command to the target mobile terminal, where the second adb command is used by the target mobile terminal to execute Corresponding operation. The user can determine the target mobile terminal according to the device identifier displayed by the mobile terminal, and can then send a command to the target mobile terminal.

With reference to the second aspect of the embodiment of the present application, the first or second implementation manner of the second aspect, in the third implementation manner of the second aspect of the embodiment of the present application, the first adb command is a show command or Other commands may indicate that the device identification is displayed on the mobile terminal.

A third aspect of the present application provides a mobile terminal, which has a function of displaying a device identifier according to the received adb command, and the user can intuitively see the device identifier, save user time, and improve user experience. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.

A fourth aspect of the present application provides a terminal device, which has a function of displaying a device identifier according to the received adb command, and the user can intuitively see the device identifier, save user time, and improve user experience. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.

A fifth aspect of the embodiments of the present application provides a mobile terminal, which may include:

a transceiver, a processor, a memory and a bus, the transceiver, the processor and the memory being connected by the bus;

The memory is configured to store an operation instruction;

The transceiver is configured to receive a first adb command sent by the terminal device, where the first adb command includes a device identifier;

The processor is configured to establish a communication connection with the terminal device, and display the device identifier on the display screen according to the first adb command.

A sixth aspect of the embodiments of the present application provides a terminal device, which may include:

a transceiver, a processor, a memory and a bus, the transceiver, the processor and the memory being connected by the bus;

The memory is configured to store an operation instruction;

The transceiver is configured to receive a first adb command, and send, to the at least two mobile terminals, a first adb command that adds a corresponding device identifier, so that the at least two mobile terminals respectively display respective corresponding device identifiers ;

The processor is configured to establish a communication connection with at least two mobile terminals, and obtain a device identifier of each of the at least two mobile terminals.

A seventh aspect of the present application provides a computer readable storage medium having instructions stored therein that, when run on a computer, cause the computer to perform the methods described in the above aspects. It should be noted that the technical solution of the present application or the part that contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. And a computer software instruction for storing the above device, comprising a program designed to execute the above first aspect, the second aspect is a data node or a management node.

The storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.

An eighth aspect of the present application provides a computer program product comprising instructions, when executed on a computer, causing the computer to perform any of the optional implementations of the first aspect or the first aspect of the present application, or The method of any of the alternative implementations of the second aspect or the second aspect.

In the technical solution provided by the embodiment of the present application, the following beneficial effects are obtained:

When the computer establishes a communication connection with the plurality of mobile terminals, the device identifier of each mobile terminal is obtained, and the computer obtains the first adb command, where the first adb command is used to instruct the mobile terminal to display the corresponding device identifier, and the mobile terminal sends the added The first adb command of the device identifier; the online mobile terminal may display the device identifier according to the first adb command to which the device identifier is added, whether it is a bright screen or a black screen. Therefore, the user can visually see the device identification, and does not need to perform various operation steps on the mobile phone, and then finds and determines the serial number of the target mobile terminal. Thereby improving user work efficiency, saving time and improving user experience. Further, the user may determine the target mobile terminal according to the device identifier displayed by the mobile terminal, and send information to the target mobile terminal.

DRAWINGS

FIG. 1 is a schematic diagram of a scenario applied to an embodiment of the present application;

2 is a schematic diagram of the working principle of the ADB in the embodiment of the present application;

3 is a schematic diagram of a computer acquiring a serial number of a plurality of mobile terminals according to an embodiment of the present application;

4 is a schematic diagram of an embodiment of a method for displaying device identifiers in an embodiment of the present application;

FIG. 5A is a schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application; FIG.

FIG. 5B is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 5C is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

5D is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

5E is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

5F is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

5G is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

5H is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 5I is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application; FIG.

FIG. 5 is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

5K is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

5L is another schematic diagram of a display device identifier of a mobile terminal in an embodiment of the present application;

5M is another schematic diagram of a display device identifier of a mobile terminal in an embodiment of the present application;

FIG. 5 is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 5 is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6A is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6B is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6C is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6D is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6E is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6F is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6G is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6H is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 6I is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application; FIG.

6J is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6K is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6L is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

6M is another schematic diagram of a display device identifier of a mobile terminal in an embodiment of the present application;

6N is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 6 is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 7 is a schematic diagram of another embodiment of a method for displaying device identifiers according to an embodiment of the present application;

FIG. 8A is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application; FIG.

FIG. 8B is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

8C is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

8D is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

8E is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 8F is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

8G is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

8H is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 8I is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application; FIG.

FIG. 8 is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 8K is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

8L is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

8M is another schematic diagram of a display device identifier of a mobile terminal in an embodiment of the present application;

FIG. 8 is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

FIG. 8 is another schematic diagram of a display device identifier of a mobile terminal according to an embodiment of the present application;

9A is a schematic diagram of an embodiment of a mobile terminal according to an embodiment of the present application;

9B is a schematic diagram of another embodiment of a mobile terminal according to an embodiment of the present application;

9C is a schematic diagram of another embodiment of a mobile terminal according to an embodiment of the present application;

FIG. 10 is a schematic diagram of an embodiment of a terminal device according to an embodiment of the present application;

FIG. 11 is a schematic diagram of another embodiment of a mobile terminal according to an embodiment of the present application;

FIG. 12 is a schematic diagram of another embodiment of a terminal device according to an embodiment of the present application.

detailed description

The technical solutions in the embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present application without creative efforts are within the scope of the present application.

The scenario applied by the embodiment of the present application may be a scenario in which a computer simultaneously connects multiple mobile terminals, as shown in FIG. 1 . In the present application, the mobile terminal can be described by taking a mobile phone as an example, and the computer can also be called a personal computer (PC). The mobile terminal may include a mobile phone, a tablet computer, and a personal digital assistant (Personal Digital) Assistant, PDA), Point of Sales (POS), on-board computer, wearable device, and other terminal devices.

In the scenario shown in Figure 1, when a user (such as a developer or tester) uses a computer to connect multiple mobile terminals at the same time, the Android Debug Bridge (ADB) may be involved. ADB is a general command. A line tool, the developer's debugging tool, that allows a computer to communicate with multiple connected mobile terminals. ADB facilitates the operation of a variety of devices, such as installing and debugging applications, and provides access to a Unix shell that can be used to run various commands on multiple mobile terminals connected to a computer. The tool can include three components:

ADB client (ADB Client), this component is used to send commands to the service program. The client is running on the computer.

ADB server (ADB Server), which manages communication between the client and the daemon. The service program runs as a background process on the computer to detect when the mobile terminal is connected or removed on the computer.

ADB daemon (ADB Deamon), which runs commands on the mobile terminal and connects to the ADB Server. The daemon runs as a background process on each mobile terminal.

As shown in Figure 2, it is a schematic diagram of the working principle of ADB Client, ADB Server and ADB Deamon. Among them, ADB Client and ADB Server are running on the computer, and ADB Deamon is running on the mobile terminal.

In the existing debugging process, if the computer only connects one mobile phone for debugging, when the computer receives the adb command input by the user, the computer directly sends an adb command to the mobile phone, and the mobile phone performs the operation corresponding to the command. For example, the adb command input by the user is: adb remount, which is used to complete the remounting operation of the mobile phone; or, adb logcat, used to obtain the running log information of the mobile phone.

It should be understood that in the Windows operating system, mounting usually refers to assigning a drive letter to a disk partition (including a virtual disk partition). In the Linux operating system, mounting refers to attaching a device (usually a storage device) to an existing directory. To access a file on a storage device, the computer must mount the partition where the file resides to an existing directory and then access the storage device by accessing the directory.

If the computer is connected to multiple mobile phones at the same time, the usual method of the computer is to obtain a serial number (SN) list through the adb devices command. It should be understood that the serial number list is a list of SNs of each mobile phone obtained when a computer establishes a communication connection with a plurality of mobile phones, and the serial number list is saved locally on the computer, and the adb devices command is for local adjustment from the computer. The list of serial numbers is displayed and displayed. As shown in FIG. 3, a schematic diagram of obtaining a serial number list of a plurality of mobile phones for a computer. However, when a user wants to send information to a target mobile phone in a plurality of mobile phones, it is necessary to first find the serial number on the target mobile phone, and then know on the computer that the information is to be sent to the target mobile phone for the serial number.

When the user searches for the SN on the target mobile phone, it needs to perform multiple steps, and the operation process is cumbersome. For example, the method of viewing the SN can be: setting - about the phone - status - serial number, to view the SN of the mobile phone. If the phone is in a black screen, you need to press the Power button to light up the screen, unlock, and find the application icon, before you can enter the Settings search. The process of viewing the SN is cumbersome. In addition, SN is a number of unordered strings, and the string is relatively long, such as (WTKDU16A22026236), when the user enters the adb command, the input efficiency is low, and it is easy to make mistakes. When the developer debugs, debug the target phone by commanding the adb-s SN[cmd] command on the computer, for example: adb-s WTKDU16A22026236 remount.

In the embodiment of the present application, in the ADB component of the computer and the mobile terminal, a processing branch is added in the code, such as a show command, or other display commands; when the computer receives the show command, the entire serial number can be traversed. In the list, add the device identifier of the online mobile terminal in the show command, and send a show command with the device identifier added to the online mobile terminal. When the mobile terminal receives the show command with the device identifier added, the mobile terminal may display the device identifier on the display according to the show command with the device identifier added. The user can intuitively determine the device identifier of the mobile terminal, and does not require the user to find the SN on the target mobile terminal layer by layer to determine the device identifier of the target mobile terminal; thereby saving user time and improving the user experience. It is also possible to determine to which mobile terminal the second adb command is sent by the device identifier, and the device identifier displayed by the plurality of mobile terminals facilitates the user to specify the target mobile terminal among the plurality of mobile terminals connected to the computer, thereby saving user time. When the user is convenient to connect multiple mobile terminals on the computer, the target mobile terminal is determined to send information to the target mobile terminal. Specifically, it may be convenient for the developer or the tester to specify the target mobile terminal in the process of multi-machine debugging, thereby improving production efficiency and improving the user experience.

In the embodiment of the present application, the device identifier is used as an example for the device number and/or the serial number, where the device number is a number that has a mapping relationship with the serial number. In the first embodiment described below, the device identifier is a device number, or the device identifier is a device number and a serial number; in the second embodiment described below, the device identifier is a serial number.

The following is a schematic diagram of the technical solution of the present application in the embodiment, as shown in FIG. 4 , which is a schematic diagram of an embodiment of a method for displaying device identification in the embodiment of the present application, including:

401. The computer establishes a communication connection with at least two mobile terminals, and obtains a mapping relationship table between the device serial number list and the device number.

In the embodiment of the present application, the computer currently establishes a communication connection with at least two mobile terminals, and the mobile terminal may be described by using a mobile phone as an example, and the mobile phone system may include an Android system. The mobile phone can be connected to the computer through Universal Serial Bus (USB), Bluetooth, Wireless Fidelity (WIFI), etc., and the ADB Server in the computer is a daemon that monitors whether there is mobile access. After detecting the access of the mobile phone, the computer establishes a Socket connection with the mobile phone, acquires and serially saves the serial number of each mobile phone establishing the communication connection, and forms a device serial number list (Device SN List); then the user can be at the computer Open cmd, enter adb devices, you can call and display the device serial number list locally.

The computer can then generate a device number with a mapping relationship based on the device serial number list. In addition, if there is already a generated device number, the device number of the newly accessed mobile phone can be calculated according to the currently generated device number; if the device number is not currently generated, it is in the initial state, and can be determined according to the device numbering rule. The device number of the newly accessed mobile phone; and the SN of the newly accessed mobile phone and the calculated device number are stored in the mapping relationship table between the device serial number list and the device number. It should be noted that the device numbering rule may be an incrementing, decrementing, or equal ratio rule, and is not limited. It should also be noted that the device number may also be an out-of-order number, that is, there is no rule, but it is necessary to ensure that the device numbers corresponding to different mobile phones are different.

Exemplarily, the ADB Server in the computer stores a Device SN List, that is, the computer saves the serial number of all the currently connected mobile phones, as shown in Table 1 below:

Device Serial Number List (Device SN List) WTKDU16A22026236 9YJ7N17313000086 9YJ0117220000132 QDY0116C31002371

Table 1

Or, the ADB Server in the computer stores a list of device serial numbers, that is, the computer saves the serial number of all the mobile phones connected from the start to the current connection, and can also save the currently connected mobile phone and the previously connected mobile phone that is currently disconnected. Different instructions are shown in Table 2 below:

Device Serial Number List (Device SN List) Currently online 74H0117308000324 no QDY0116C31001618 no WTKDU16A22026236 Yes 9YJ7N17313000086 Yes 9YJ0117220000132 Yes QDY0116C31002371 Yes

Table 2

In the embodiment of the present application, the ADB Server may newly generate a map of Device SN List and Device Code, or a mapping relationship table, or a mapping relationship table according to the device serial number list, or Add a device number with a mapping relationship to the original device serial number list to form a mapping relationship table. If the device serial number list is exemplified in Table 1, the mapping relationship between the device serial number list and the device number is as follows:

Device Serial Number List (Device SN List) Device Code WTKDU16A22026236 1 9YJ7N17313000086 2 9YJ0117220000132 3 QDY0116C31002371 4

table 3

It should be noted that the device number can be indicated by Arabic numerals, English letters (large/lowercase), English and Arabic data, or other strings, such as dog, pig, etc., or icons to indicate, or directly The first few digits or the last few digits of the serial number are indicated. The specifics are not limited, the purpose is simple, clear, easy to remember, and easy to input.

For example, as shown below, the device number in the map of Device SN List and Device Code may include, but is not limited to, the following forms.

Device Serial Number List (Device SN List) Device Code WTKDU16A22026236 A 9YJ7N17313000086 B 9YJ0117220000132 C QDY0116C31002371 D

Table 4

Device Serial Number List (Device SN List) Device Code WTKDU16A22026236 a 9YJ7N17313000086 b 9YJ0117220000132 c QDY0116C31002371 d

table 5

Device Serial Number List (Device SN List) Device Code WTKDU16A22026236 1a 9YJ7N17313000086 1b 9YJ0117220000132 1c QDY0116C31002371 1d

Table 6

Device Serial Number List (Device SN List) Device Code WTKDU16A22026236 A1 9YJ7N17313000086 B1 9YJ0117220000132 C1 QDY0116C31002371 D1

Table 7

It should be understood that Table 3 - Table 7 above is a mapping relationship table determined by taking Table 1 as an example. If Table 2 is taken as an example, the similar reason is as shown in Table 8 below:

Device Serial Number List (Device SN List) Currently online Device Code 74H0117308000324 no 11 QDY0116C31001618 no 12 WTKDU16A22026236 Yes 1 9YJ7N17313000086 Yes 2 9YJ0117220000132 Yes 3 QDY0116C31002371 Yes 4

Table 8

It should be noted that, in the relationship mapping table shown in Table 8, the information of "currently online" may not be included, and the device number may also be a combination of English letters (large/lowercase), English, and Arabic numerals. , or other strings to indicate, such as dog, pig, etc., or icons to indicate, or, directly based on the first or last number of the serial number For details, refer to any of the above Tables 4-7, and details are not described here.

402. The computer receives the first adb command.

In the embodiment of the present application, the first adb command received by the computer may be an adb show command or other display command, which is used to indicate that the mobile phone connected to the computer displays the corresponding device identifier on the display screen, so that the user can quickly identify the target mobile phone. .

Exemplarily, the user inputs the adb show command, the ADB Client in the computer receives the adb show command, and forwards the show command to the ADB Server for processing, and the ADB Client does not process; the ADB Server in the computer traverses the device serial number list and the device number. The mapping relationship table (as shown in any of the above Table 3 - Table 8) obtains the SN of the online mobile phone and the corresponding device number, and adds the device ID to the show command, that is, the show command with the device identifier added.

403. The computer sends a first adb command with the device identifier added to the online mobile terminal.

In the embodiment of the present application, the ADB Server in the computer separately sends the processed first adb command to the connected multiple mobile phones, that is, respectively sends a show command to the online mobile phone, and uses the device identifier as a parameter (may be a show command) Carry the device identification). It should be understood that the online mobile phone herein refers to a mobile phone that currently establishes a communication connection with a computer. The device identifier may be a device number, or the device identifier may also be a device number and a serial number. Taking the above Table 3 as an example, if the device numbers corresponding to the online mobile phones are 1, 2, 3, and 4, the ADB Server sends a show command with the device identifier to each corresponding online mobile phone through each Socket.

It should be understood that the computer and each mobile phone send information through a specific Socket channel. Exemplarily, when the PC sends a show command to the mobile phone with the serial number of WTKDU16A22026236, the show command carries the device number 1; when the PC sends the show command to the mobile phone with the serial number 9YJ7N17313000086, the show command carries the device number 2; the PC to the serial number When the show command is sent to the mobile phone of the 9YJ0117220000132, the show command carries the device number 3. When the PC sends the show command to the mobile phone with the serial number QDY0116C31002371, the show command carries the device number 4.

Or, when the PC sends a show command to the mobile phone with the serial number of WTKDU16A22026236, the show command carries the device number 1 and the serial number WTKDU16A22026236; when the PC sends the show command to the mobile phone with the serial number 9YJ7N17313000086, the show command carries the device number 2 and the serial number. 9YJ7N17313000086; When the PC sends a show command to the mobile phone with the serial number 9YJ0117220000132, the show command carries the device number 3 and the serial number 9YJ0117220000132; when the PC sends the show command to the mobile phone with the serial number QDY0116C31002371, the show command carries the device number 4 and the serial number. QDY0116C31002371.

404. The mobile terminal displays the device identifier according to the first adb command added with the device identifier.

In the embodiment of the present application, the daemon process of each mobile terminal (ADB Deamon) receives the show command with the device identifier sent by the ADB Server in the computer, that is, the parameter carried in the show command: device identifier. The mobile phone can display the corresponding device identification on the display according to the show command with the device identification added. However, in the internal implementation, since ADB Deamon is a native program, it is not possible to draw graphics directly on the screen. You can use the am command provided by the Android system to send a broadcast (eg android.intent.action.ADB_SHOW) and carry the parameter: device identifier in the broadcast. In the System User Interface (SystemUI) component (which can also be implemented in other components), add processing to the broadcast android.intent.action.ADB_SHOW. In this way, SystemUI can receive the ADB_SHOW broadcast sent by ADB Deamon and obtain the device identifier. In The device identifier can be drawn on the display of the line mobile phone. If the device identifier is the device number, as shown in FIG. 5A, a schematic diagram of the device identifier is displayed for multiple mobile phones connected to the computer; if the device identifier is the device number and serial number, Then, as shown in FIG. 6A, a schematic diagram of device identification is displayed for a plurality of mobile phones connected to the computer. If the mobile phone is in the state of being turned off, the device identification may be displayed in a part of the off-screen position, and other parts are still in the off-screen state, or the display screen is directly awake to display the device identification.

It should be noted that the manner of displaying the device identifier on the display screen of the online mobile phone may include, but is not limited to, the following methods. One of the mobile phones is taken as an example for description:

(1) The mobile phone displays the application icon on the first layer interface of the display screen; the mobile phone displays the device identification on the second layer interface of the display screen according to the show command with the device identification added, and the first layer interface is placed on the second layer. The bottom layer of the interface, as shown in FIG. 5B or FIG. 6B (the device identifier is displayed above the application icon in the display screen), or the first layer interface is placed on the top layer of the second layer interface, as shown in FIG. 5C or FIG. 6C. (The device ID is displayed below the application icon in the display).

It should be noted that, in the embodiment of the present application, the top-level interface refers to an interface displayed on the outer side of the current display interface (the first layer interface), and if there are interface elements (such as application icons, controls, etc.) on the current display interface, From the perspective of the user's perspective, these interface elements will be blocked by the information displayed by the top-level interface to block the display of the current display interface, that is, the user can completely see the content displayed on the top-level interface, as shown in FIG. 5B or FIG. 6B. The bottom layer interface refers to the interface displayed on the inner side of the current display interface (the first layer interface). If the current display interface has interface elements (such as application icons, controls, etc.), from the user's visual point of view, these interface elements will The display of the bottom layer interface is blocked, that is, the user cannot completely see the content displayed on the bottom layer interface, as shown in FIG. 5C or FIG. 6C.

(2) The mobile phone displays the device identification in the display screen according to the show command with the device identification added, as shown in FIG. 5D or FIG. 6D.

(3) The mobile phone displays the device identification in the display box according to the show command with the device identification added. That is, a prompt box may be popped up on the display screen and the device identifier may be displayed in the prompt box, as shown in FIG. 5E or FIG. 6E, FIG. 5F or FIG. 6F.

(4) The mobile phone displays an application icon on the first layer interface of the display; if the number of application icons is greater than the first threshold, or the display area occupied by the application icon is greater than the second threshold, the mobile phone adds The show command of the device identifier displays the device identifier on the second layer of the display screen, and the first layer interface is placed on the bottom layer of the second layer interface. That is, it can be understood that the application icon on the display screen fills the screen, and the device identification can be displayed above the application icon in the display, as shown in FIG. 5G or FIG. 6G.

(5) The mobile phone displays an application icon on the first layer interface of the display; if the number of application icons is greater than the first threshold, or the display area occupied by the application icon is greater than the second threshold, the mobile phone adds The show command of the device identifier enlarges the device identifier on the second layer of the display screen, and the first layer interface is placed on the bottom layer of the second layer interface. That is, it can be understood that the device identification is enlarged under the application icon in the display screen, and the device identification can be enlarged to be smaller than or equal to the size of the display screen, as shown in FIG. 5H or FIG. 6H.

(6) The mobile phone displays the application icon on the first layer interface of the display; if the number of application icons displayed on the first layer interface of the display is less than or equal to the first threshold, or on the first floor of the display The display area of the application icon displayed on the interface is less than or equal to the second threshold, and the mobile phone is based on the show command with the device identifier added. The device identification is displayed in the first level interface of the display in addition to the idle location of the application icon. That is, it can be understood that the application icon on the display screen only occupies a part of the display screen, and the mobile phone can display the device identification in other idle positions other than the application icon, as shown in FIG. 5I or FIG. 6I.

(7) If the mobile phone is in a black screen state, the mobile phone displays the device identification at the target position of the display screen according to the show command with the device identification added, except that the other positions of the target location are in a black screen state. That is to say, if the mobile phone is in the off-screen state, the device identification can be displayed in a part of the screen-off position, and the other position portions are still in the off-screen state, as shown in FIG. 5J or FIG. 6J.

(8) If the mobile phone is in a black screen state, the mobile phone is illuminated according to the show command with the device identification added, and the device identification is displayed on the display screen. That is to say, the mobile phone is in the off-screen state, and the display screen can be directly awake and the device identification is displayed, as shown in FIG. 5K or FIG. 6K.

(9) The mobile phone displays the device identification in the notification column of the display screen according to the show command with the device identification added. This is shown in Figure 5L or Figure 6L.

(10) The mobile phone displays the device identifier in the notification column of the display screen according to the show command with the device identifier added; the mobile phone receives the zoom instruction generated by the user sliding the device identifier in the notification bar; the mobile phone enlarges the display according to the enlarged instruction in the display screen. Equipment Identity. As shown in Figure 5M or Figure 6M.

(11) The mobile phone displays the target icon according to the show command with the device identifier added; the mobile phone receives the trigger command generated by the user pressing, sliding or double-clicking the target icon; the mobile phone displays the device identifier on the display according to the trigger instruction.

That is, it can be understood that an icon is displayed according to the show command with the device identifier added. When the show command with the device identifier is not received, the icon on the mobile phone may be hidden or not hidden, but is unavailable. (When receiving the show command with the device ID added, it is available.) This icon can be a drop-down arrow or other icon, which is not limited. The user can display the device identification by sliding the drop-down arrow down, clicking, double-clicking, or pressing the preset duration on the display. Further, if the user specifies the target mobile phone and feels that the device identification is displayed on the display to affect other operations, the user may also slide the drop-down arrow, click, double-click or press the preset duration to hide the device identifier, as shown in Figure 5N. Or as shown in Figure 6N.

It should be noted that if the mobile phone is not in a black screen state before, other display information can be masked, and only the device identifier is displayed, so that it is not easily interfered by other information. Further, when the online mobile phone displays the device identification, it can also be accompanied by a voice prompt. That is, if the device identification on the display of the mobile phone is the device number "3", the speaker can play "3" correspondingly, as shown in FIG. 5O. If the device identification is displayed as device number "3" and serial number "9YJ0117220000132" on the display of the mobile phone, the speaker can play "3" and "9YJ0117220000132" correspondingly, as shown in Fig. 6O.

405. The computer receives a second adb command, where the second adb command includes a target device identifier.

In the embodiment of the present application, after the corresponding device identifier is displayed on the online mobile phone, the user can visually see the device identifier, and then the user can determine the device identifier of the target mobile phone according to the needs of the user, thereby inputting the The second adb command, the computer receives the second adb command, and the second adb command includes the device identifier of the target mobile phone.

The device ID of the target mobile phone is the device number, and the second adb command can be: adb–s@n remount, or adb–s n@remount, or adb–s#n remount, or adb–s n #remount,adb–s*n remount, or, adb–s n*remount, etc.; where n indicates the device number, @,#, * is a special symbol, which can indicate that the device number is followed by @,#,* or that the device number is preceded by @,#,*. The ADB Client on the computer hands the command line to the ADB Server for processing.

Illustratively, the user intends to send an adb command to a handset with device number "3". Then the command line that the user enters on the computer can be: adb–s@3remount, or adb–s 3@remount, or adb–s#3remount, or adb–s 3#remount, adb–s*3remount, Or, adb–s 3*remount, etc.

406. The computer sends a second adb command to the first mobile terminal.

In the embodiment of the present application, after the ADB Server in the computer detects the -s parameter, the SN is parsed. If the SN is found to start with "@", it means that the device number is followed: n, or if the SN is found. End with "@", which means that the device number: n follows immediately or immediately before it. Among them, @ here can also be other symbols such as #, *, etc., specifically not limited. The ADB Server searches for the SN corresponding to the device number n from the mapping table of the device serial number list and the device number. The port between the computer and the first mobile phone (target mobile phone) is determined by the real SN, and then the second adb command is sent to the first mobile phone through the port. The second adb command can carry text files, pictures, video files, audio files, etc., without specific limitation. After receiving the second adb command, the first mobile phone may perform an operation corresponding to the second adb command.

407. The computer is disconnected from the second mobile terminal.

In this embodiment of the present application, the computer may be disconnected from one or more mobile terminals in the current connection, possibly disconnected from the PC because the test is completed (man-made disconnection), fault, network disconnection, or other reasons. connection. When the serial number of the disconnected mobile phone is WTKDU16A22026236, the ADB Server in the computer detects that the mobile phone is offline, and may update the device serial number list or not update the device serial number list. Correspondingly, the mapping relationship table may also be updated, or the mapping relationship table may not be updated.

If the above Table 1 is taken as an example and updated, the updated device serial number list is as shown in Table 9:

Device Serial Number List (Device SN List) 9YJ7N17313000086 9YJ0117220000132 QDY0116C31002371

Table 9

If the above table 3 is used as an example to update, the mapping table between the updated device serial number list and the device number is as shown in Table 10:

Device Serial Number List (Device SN List) Device Code 9YJ7N17313000086 2 9YJ0117220000132 3 QDY0116C31002371 4

Table 10

It should be understood that steps 405-407 are optional steps in embodiments of the present application. In the embodiment of the present application, a plurality of mobile terminals are connected to each other on a computer as an example. In addition, when multiple mobile terminals are connected by a wireless fidelity (WIFI) hotspot, Bluetooth, or the like on one mobile terminal, When the terminal is used, it can also be the above implementation. A similar processing method of the example will not be described in detail here.

In the embodiment of the present application, when the computer establishes a communication connection with multiple mobile terminals, the serial number of each mobile terminal may be acquired, and the device number, device number, or device number and serial number having a mapping relationship with the serial number may also be generated. The device can be used as the device identifier, and the computer obtains the first adb command, where the first adb command is used to instruct the mobile terminal to display the corresponding device identifier, and the first mobile command is added to the online mobile terminal, and the online mobile terminal can be added according to the The first adb command with device identification can display the device identification whether it is a bright screen or a black screen. Therefore, the user can visually see the device identification, and does not need to perform various operation steps on the mobile phone, and then finds and determines the serial number of the target mobile terminal. Thereby improving user work efficiency, saving time and improving user experience. Further, the user may determine the target mobile terminal according to the device identifier displayed by the mobile terminal, and send information to the target mobile terminal. Specifically, when the second adb command is input on the computer, the SN that should be input to the target mobile terminal can be replaced by the device number, and the SN itself is a long string of unordered substrings, which are relatively long, and are implemented in the present application. In the example, the device number is input in the second adb command, which reduces the workload input by the user and can improve work efficiency.

FIG. 7 is a schematic diagram of an embodiment of a method for displaying device identifiers in an embodiment of the present application, including:

701. The computer establishes a communication connection with at least two mobile terminals, and obtains a list of device serial numbers.

In the embodiment of the present application, the computer currently establishes a communication connection with at least two mobile terminals, and the mobile terminal may be described by using a mobile phone as an example, and the mobile phone system may include an Android system. The mobile phone can be connected to the computer through USB, Bluetooth, WIFI, etc., and the ADB Server in the computer is a daemon process, which monitors whether there is a mobile phone access; when the mobile phone access is detected, the computer establishes a Socket connection with the mobile phone. Obtain and serially save the serial number of each mobile phone that establishes the communication connection to form a device serial number list (Device SN List); then the user can open cmd on the computer, input adb devices, and can locally call and display the device serial number. List.

Exemplarily, the ADB Server in the computer stores a Device SN List, that is, the computer saves the serial numbers of all the currently connected mobile phones, as shown in Table 11 below:

Device Serial Number List (Device SN List) TKDU16A22026445 YJ97N17313000092

Table 11

Or, the ADB Server in the computer stores a list of device serial numbers, that is, the computer saves the serial number of all the mobile phones connected from the start to the current connection, and can also save the currently connected mobile phone and the previously connected mobile phone that is currently disconnected. Different instructions are shown in Table 12 below:

Device Serial Number List (Device SN List) Currently online 74H0117308000324 no TKDU16A22026445 Yes YJ97N17313000092 Yes

Table 12

702. The computer receives the first adb command.

In the embodiment of the present application, the first adb command received by the computer may be an adb show command or other display. The command is used to indicate that the mobile phone connected to the computer displays the corresponding device identifier on the display, so that the user can quickly identify the target mobile phone.

Exemplarily, the user inputs the adb show command, the ADB Client in the computer receives the adb show command, and forwards the show command to the ADB Server for processing, and the ADB Client does not process; the ADB Server in the computer traverses the device serial number list (such as the above table) 11 or Table 12), get the SN of all online mobile phones.

703. The computer sends a first adb command to which the device identifier is added to the online mobile terminal.

In the embodiment of the present application, the ADB Server in the computer sends the first adb command with the device identifier to the connected multiple mobile phones, that is, respectively sends a show command to the online mobile phone, and uses the device identifier as a parameter (may be a show) The device carries the device ID). It should be understood that the online mobile phone herein refers to a mobile phone currently connected to a computer. The device identification here refers to the SN. Taking the above Table 11 as an example, the SN corresponding to the online mobile phone is TKDU16A22026445 and YJ97N17313000092, then the ADB Server sends a show command with the SN added to each corresponding online mobile phone through each Socket.

It should be understood that the computer and each mobile phone send information through a specific Socket channel. For example, when the PC sends a show command to the mobile phone with the serial number TKDU16A22026445, the SN carried in the show command is TKDU16A22026445; when the PC sends the show command to the mobile phone with the serial number YJ97N17313000092, the SN carried in the show command is YJ97N17313000092.

704. The mobile terminal displays the device identifier according to the first adb command that adds the device identifier.

In the embodiment of the present application, the daemon process of each mobile terminal (ADB Deamon) receives the show command with the SN sent by the ADB Server in the computer, that is, the parameter carried by the show command: SN. The corresponding SN can be displayed according to the show command to which the SN is added. However, in the internal implementation, since ADB Deamon is a native program, it is not possible to draw graphics directly on the screen. You can use the am command provided by the Android system to send a broadcast (eg android.intent.action.ADB_SHOW) and carry the parameter: SN in the broadcast. In the SystemUI component (which can also be implemented in other components), add processing to the broadcast android.intent.action.ADB_SHOW. In this way, SystemUI can receive the ADB_SHOW broadcast sent by ADB Deamon and get the SN. The SN can be drawn on the display of the online mobile phone, as shown in FIG. 8A, which shows a schematic diagram of the SN for a plurality of mobile phones connected to the computer. If the mobile phone is in the state of being off the screen, the SN can be displayed in the part of the off-screen, and the other parts are still in the off-screen state, or the display is directly awake to display the SN.

It should be noted that the manner of displaying the SN on the display screen of the online mobile phone may include, but is not limited to, the following methods.

(1) The mobile phone displays the application icon on the first layer interface of the display screen; the mobile phone displays the SN on the second layer interface of the display screen according to the show command with the SN added, and the first layer interface is placed on the second layer interface. The bottom layer, as shown in Figure 8B (the SN is displayed above the application icon in the display), or the first layer interface is placed on the top layer of the second layer interface, as shown in Figure 8C (the application icon in the display) SN) is shown below.

It should be noted that, in the embodiment of the present application, the top-level interface refers to an interface displayed on the outer side of the current display interface (the first layer interface), and if there are interface elements (such as application icons, controls, etc.) on the current display interface, From the perspective of the user's perspective, these interface elements will be blocked by the information displayed by the top-level interface to block the display of the current display interface, that is, the user can completely see the content displayed on the top-level interface, as shown in FIG. 8B. The underlying interface refers to the current display interface (the first The interface displayed on the inner side of the first layer interface. If there are interface elements (such as application icons, controls, etc.) on the current display interface, from the perspective of the user, these interface elements will block the display of the underlying interface, that is, the user cannot completely See the content displayed on the underlying interface, as shown in Figure 8C.

(2) The mobile phone displays the SN in the display according to the show command with the SN added, as shown in Fig. 8D.

(3) The mobile phone displays the SN in a prompt box according to the show command with the SN added. That is, a prompt box may be popped up on the display screen and the SN may be displayed in the prompt box, as shown in FIG. 8E or FIG. 8F.

(4) The mobile phone displays an application icon on the first layer interface of the display; if the number of application icons is greater than the first threshold, or the display area occupied by the application icon is greater than the second threshold, the mobile phone adds The show command of the SN displays the SN on the second layer of the display screen, and the first layer interface is placed on the bottom layer of the second layer interface. That is, it can be understood that the application icon on the display screen fills the screen, and the SN can be displayed above the application icon in the display screen, as shown in FIG. 8G.

(5) The mobile phone displays an application icon on the first layer interface of the display; if the number of application icons is greater than the first threshold, or the display area occupied by the application icon is greater than the second threshold, the mobile phone adds The show command of the SN enlarges the SN on the second layer of the display screen, and the first layer interface is placed on the bottom layer of the second layer interface. That is, it can be understood that the SN is enlarged and displayed under the application icon in the display screen, and the SN can be enlarged to be smaller than or equal to the size of the display screen, as shown in FIG. 8H.

(6) The mobile phone displays the application icon on the first layer interface of the display; if the number of application icons displayed on the first layer interface of the display is less than or equal to the first threshold, or on the first floor of the display If the display area occupied by the application icon displayed on the interface is less than or equal to the second threshold, the mobile phone displays the SN in the first layer interface of the display screen except the idle position of the application icon according to the show command with the SN added. That is, it can be understood that the application icon on the display screen only occupies a part of the display screen, and the mobile phone can display the SN in other idle positions except the application icon, as shown in FIG. 8I.

(7) If the mobile phone is in a black screen state, the mobile phone displays the SN at the target position of the display screen according to the show command with the SN added, except that the other positions of the target position are in a black screen state. That is to say, if the mobile phone is in the off-screen state, the SN can be displayed in a part of the screen that is off, and the other positions are still in the off-screen state, as shown in FIG. 8J.

(8) If the mobile phone is in a black screen state, the mobile phone displays a bright screen according to the show command with the SN added, and displays the SN on the display screen. That is to say, the mobile phone is in the off state, and the display can be directly awake and the SN is displayed, as shown in FIG. 8K.

(9) The mobile phone displays the SN in the notification column of the display screen according to the show command with the SN added. As shown in Figure 8L.

(10) The mobile phone displays the SN in the notification column of the display screen according to the show command with the SN added; the mobile phone receives the zoom instruction generated by the user sliding the SN in the notification bar; the mobile phone enlarges the SN in the display screen according to the enlarged instruction. As shown in Figure 8M.

(11) The mobile phone displays the target icon according to the show command with the SN added; the mobile phone receives the trigger command generated by the user pressing, sliding or double-clicking the target icon; the mobile phone displays the SN on the display according to the trigger instruction.

That is to say, according to the show command with the added SN, an icon is displayed. When the show command with the added SN is not received, the icon on the mobile phone may be hidden or not hidden, but is in an unavailable state (when When receiving the show command with SN added, it is available.) This icon can be a drop-down arrow or it can be Other icons are not limited. The user can display the SN by sliding the drop-down arrow down, clicking, double-clicking, or pressing the preset duration on the display. Further, if the user specifies the target mobile phone and feels that the SN display affects other operations on the display screen, the user can also slide the drop-down arrow up, click, double-click or press the preset duration to hide the SN, as shown in FIG. 8N. .

It should be noted that if the mobile phone is not in a black screen state before, other display information can be shielded and only the SN is displayed, so that it is not easily interfered by other information. Further, when the online mobile phone displays the SN, it can also be accompanied by a voice prompt. The serial number "9YJ0117220000132", the speaker can play "9YJ0117220000132" correspondingly, as shown in Figure 8O.

705. The computer receives the second adb command, and the second adb command includes the SN.

In the embodiment of the present application, after the corresponding SN is displayed on the online mobile phone, the user can visually see the SNs, and then the user can determine the device number of the target mobile phone according to his own needs, thereby inputting the second adb on the computer. Command, the computer receives the second adb command, and the second adb command includes the SN. For example: adb–s SN remount, or adb–s SN remount, or adb–s SN remount, or adb–s SN remount, adb–s SN remount, or adb–s SN remount, etc.; The ADB Client hands the command line to the ADB Server for processing.

Illustratively, the user intends to send an adb command to the handset of the SN for "TKDU16A22026445". Then the command line entered by the user on the computer can be: adb–s TKDU16A22026445remount.

706. The computer sends a second adb command to the first mobile terminal.

In the embodiment of the present application, after detecting the -s parameter, the ADB Server in the computer parses the SN and sends a second adb command to the first mobile phone. The second adb command can carry text files, pictures, video files, audio files, etc., without specific limitation. After receiving the second adb command, the first mobile phone may perform an operation corresponding to the second adb command.

707. The computer is disconnected from the second mobile terminal.

In this embodiment of the present application, the computer may be disconnected from one or more mobile terminals in the current connection, possibly disconnected from the PC because the test is completed (man-made disconnection), fault, network disconnection, or other reasons. connection. When the serial number of the disconnected mobile phone is TKDU16A22026445, the ADB Server in the computer detects that the mobile phone is offline, and may update the device serial number list or not update the device serial number list. Correspondingly, the mapping relationship table may also be updated, or the mapping relationship table may not be updated.

If the above table 11 is taken as an example to update, the updated device serial number list is as shown in Table 13:

Device Serial Number List (Device SN List) YJ97N17313000092

Table 13

If the above table 12 is taken as an example to update, the updated device serial number list is as shown in Table 14:

Device Serial Number List (Device SN List) Currently online 74H0117308000324 no TKDU16A22026445 no YJ97N17313000092 Yes

Table 14

It should be understood that steps 705-707 are optional steps in embodiments of the present application. In the embodiment of the present application, a plurality of mobile terminals are connected to each other on a computer as an example. In addition, when multiple mobile terminals are connected by a wireless fidelity (WIFI) hotspot, Bluetooth, or the like on one mobile terminal, The terminal is also a similar processing manner in the foregoing embodiment, and details are not described herein again.

In the embodiment of the present application, when the computer establishes a communication connection with a plurality of mobile terminals, the serial number of each mobile terminal may be acquired, and the computer obtains the first adb command, where the first adb command is used to instruct the mobile terminal to display the corresponding SN. The online mobile terminal transmits a first adb command added with an SN; the online mobile terminal can display the SN according to the first adb command to which the SN is added, whether it is a bright screen or a black screen. Therefore, the user can visually see the SN, and does not need to perform various operation steps to perform a search to determine the serial number of the target mobile terminal, thereby improving the user's work efficiency, saving time, and improving the user experience.

The method for the display device identification in the embodiment of the present application is described above. The following describes the mobile terminal and the terminal device in the embodiment of the present application, as shown in FIG. 9A, which is an embodiment of the mobile terminal in the embodiment of the present application. Schematic diagram, including:

Establishing a connection module 901, configured to establish a communication connection with the terminal device;

The transceiver module 902 is configured to receive a first adb command sent by the terminal device, where the first adb command includes a device identifier.

The display module 903 is configured to display the device identifier on the display screen according to the first adb command.

Optionally, in some embodiments of the present application, the device identifier includes at least one of a device number and a serial number, where the device number is a number that has a mapping relationship with the serial number.

Optionally, in some embodiments of the present application,

The display module 903 is further configured to display an application icon on the first layer interface of the display screen; specifically, display the device identifier on the second layer interface of the display screen according to the first adb command, where the first layer interface is placed The bottom layer of the second layer interface, or the first layer interface is placed on the top layer of the second layer interface.

Optionally, in some embodiments of the present application,

The display module 903 is specifically configured to animate the device identifier in the display screen according to the first adb command; or display the device identifier in a prompt box according to the first adb command.

Optionally, in some embodiments of the present application,

The display module 903 is specifically configured to: if the number of the application icons is greater than the first threshold, or the display screen area occupied by the application icon is greater than the second threshold, the display module is in the second layer of the display according to the first adb command The interface displays the device identification, and the first layer interface is placed on the bottom layer of the second layer interface.

Optionally, in some embodiments of the present application,

The display module 903 is specifically configured to: if the number of the application icons is greater than the first threshold, or the display screen area occupied by the application icon is greater than the second threshold, the display module is in the second layer of the display according to the first adb command The interface magnifies the device identification, and the first layer interface is placed on the bottom layer of the second layer interface.

Optionally, in some embodiments of the present application,

The display module 903 is specifically configured to: if the number of application icons displayed on the first layer interface of the display screen is less than or equal to the first threshold, or the display of the application icon displayed on the first layer interface of the display screen If the screen area is less than or equal to the second threshold, the display module divides the application diagram in the first layer interface of the display according to the first adb command. The target free location displays the device identification.

Optionally, in some embodiments of the present application,

The display module 903 is specifically configured to: if the mobile terminal is in a black screen state, the display module displays the device identifier in the target position of the display screen according to the first adb command, except that the other location of the target location is in a black screen state; or, if the mobile terminal is in a black screen state Then, the display module is illuminated according to the first adb command display screen, and the device identifier is displayed on the display screen.

Optionally, in some embodiments of the present application,

The display module 903 is specifically configured to display the device identifier in the notification column of the display screen according to the first adb command.

Optionally, in some embodiments of the present application,

The transceiver module 902 is further configured to receive an amplification instruction generated by the user sliding the device identifier in the notification column;

The display module 903 is further configured to enlarge the display device identifier in the display screen according to the enlargement instruction.

Optionally, in some embodiments of the present application,

The display module 903 is further configured to display the target icon according to the first adb command;

The transceiver module 902 is further configured to receive a trigger instruction generated by the user pressing, sliding, or double-clicking on the target icon;

The display module 903 is further configured to display the device identifier on the display according to the trigger instruction.

Optionally, in some embodiments of the present application, on the basis of the foregoing FIG. 9A, as shown in FIG. 9B, it is a schematic diagram of another embodiment of the mobile terminal in the embodiment of the present application. The mobile terminal further includes: a voice module 904, configured to play a device identifier according to the first adb command.

Optionally, in some embodiments of the present application, on the basis of the foregoing FIG. 9A, as shown in FIG. 9C, it is a schematic diagram of another embodiment of the mobile terminal in the embodiment of the present application. The mobile terminal also includes:

The transceiver module 902 is further configured to receive a second adb command sent by the terminal device, where the second adb command includes a device identifier.

The executing module 905 is configured to perform a corresponding operation according to the second adb command.

Optionally, in some embodiments of the present application, the first adb command is a show command.

As shown in FIG. 10, it is a schematic diagram of an embodiment of a terminal device in the embodiment of the present application, including:

Establishing a connection module 1001, configured to establish a communication connection with at least two mobile terminals;

The obtaining module 1002 is configured to acquire a device identifier of each of the at least two mobile terminals;

The transceiver module 1003 is configured to receive the first adb command, and send the first adb command that adds the corresponding device identifier to the at least two mobile terminals, so that the at least two mobile terminals respectively display the corresponding device identifiers.

Optionally, in some embodiments of the present application, the device identifier includes at least one of a device number and a serial number, where the device number is a number that has a mapping relationship with the serial number.

Optionally, in some embodiments of the present application,

The transceiver module 1003 is further configured to receive a second adb command, where the second adb command includes a target device identifier, the target device identifier is an identifier of the target mobile terminal, and send a second adb command to the target mobile terminal, where the second adb command is used for the target mobile The terminal performs the corresponding operation.

Optionally, in some embodiments of the present application, the first adb command is a show command.

FIG. 11 is a schematic diagram of an embodiment of a mobile terminal in an embodiment of the present application. For the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application. The mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the mobile terminal is used as a mobile phone as an example:

FIG. 11 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present application. Referring to FIG. 11 , the mobile phone includes: a radio frequency (RF) circuit 1110 , a memory 1120 , an input unit 1130 , a display unit 1140 , a sensor 1150 , an audio circuit 1160 , a wireless fidelity (WiFi) module 1170 , and a processor 1110 . And power supply 1190 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 11 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.

The following describes the components of the mobile phone in detail with reference to FIG. 11:

The RF circuit 1110 can be used for receiving and transmitting signals during the transmission and reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processor 1110 processes the data. In addition, the uplink data is designed to be sent to the base station. In the embodiment of the present application, the RF circuit 1110 may establish a communication connection with the terminal device, and may also receive a first adb command sent by the terminal device, where the first adb command includes a device identifier. Generally, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1110 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.

The memory 1120 can be used to store software programs and modules, and the processor 1110 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

The input unit 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1131 or near the touch panel 1131. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 1131 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1110 is provided and can receive commands from the processor 1110 and execute them. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.

The display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. In the embodiment of the present application, the display unit 1140 may display the device identifier on the display screen according to the first adb command (as shown in any of FIG. 5A- FIG. 5O, FIG. 6A-FIG. 6O, and FIG. 8A- FIG. No longer). The display unit 1140 may include a display panel 1141. Alternatively, the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141. When the touch panel 1131 detects a touch operation on or near the touch panel 1131, the touch panel 1131 transmits to the processor 1110 to determine the type of the touch event, and then the processor 1110 according to the touch event. The type provides a corresponding visual output on the display panel 1141. Although in FIG. 11 , the touch panel 1131 and the display panel 1141 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. Realize the input and output functions of the phone.

The handset may also include at least one type of sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.

An audio circuit 1160, a speaker 1161, and a microphone 1162 can provide an audio interface between the user and the handset. The audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1110, transmitted to the other mobile phone via the RF circuit 1110, or outputted to the memory 1120 for further processing.

WiFi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access. Although FIG. 11 shows the WiFi module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.

The processor 1110 is a control center for the handset that connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 1110.

The mobile phone also includes a power supply 1190 (such as a battery) that supplies power to various components. Preferably, the power supply can pass through the power supply tube. The system is logically coupled to the processor 1110 to manage functions such as charging, discharging, and power management through the power management system.

Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.

The structure of the mobile terminal in the foregoing embodiment may be based on the structure shown in FIG. 11. The mobile terminal structure shown in FIG. 11 may perform the steps in the foregoing method embodiments, and details are not described herein again.

FIG. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 1200 may generate a large difference due to different configurations or performances, and may include one or more central processing units (central processing). Units, CPU) 1222 (eg, one or more processors) and memory 1232, one or more storage media 1230 that store application 1242 or data 1244 (eg, one or one storage device in Shanghai). Among them, the memory 1232 and the storage medium 1230 may be short-term storage or persistent storage. The program stored on storage medium 1230 may include one or more modules (not shown), each of which may include a series of instruction operations in the terminal device. Still further, the central processor 1222 can be configured to communicate with the storage medium 1230 to perform a series of instruction operations in the storage medium 1230 on the terminal device 1200.

Terminal device 1200 can also include one or more power sources 1226, one or more wired or wireless network interfaces 1250, one or more input and output interfaces 1258, and/or one or more operating systems 1241, such as Windows ServerTM, Mac. OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.

The structure of the terminal device in the above embodiment may be based on the structure shown in FIG. 12, and the steps performed by the terminal device may be based on the terminal device structure shown in FIG.

In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product.

The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present application and the above figures are used to distinguish similar objects without having to use To describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.

Claims (40)

  1. A method for displaying device identification, comprising:
    The mobile terminal establishes a communication connection with the terminal device;
    Receiving, by the mobile terminal, a first adb command sent by the terminal device, where the first adb command includes a device identifier;
    The mobile terminal displays the device identifier on a display screen according to the first adb command.
  2. The method according to claim 1, wherein the device identifier comprises at least one of a device number and the serial number, wherein the device number is a number having a mapping relationship with the serial number.
  3. The method according to claim 1 or 2, wherein before the displaying, by the mobile terminal, the device identifier on the display screen according to the first adb command, the method further comprises:
    The mobile terminal displays an application icon on a first layer interface of the display screen;
    Displaying, by the mobile terminal, the device identifier on a display screen according to the first adb command, including:
    The mobile terminal displays the device identifier on a second layer interface of the display screen according to the first adb command, where the first layer interface is placed at an bottom layer of the second layer interface, or A first layer interface is placed on top of the second layer interface.
  4. The method according to any one of claims 1-3, wherein the mobile terminal displays the device identifier on a display screen according to the first adb command, including:
    The mobile terminal animates the device identifier in the display screen according to the first adb command; or
    The mobile terminal displays the device identifier in a prompt box in the display screen according to the first adb command.
  5. The method according to claim 3, wherein the mobile terminal displays the device identifier on a second layer interface of the display screen according to the first adb command, and the first layer interface is placed The bottom layer of the second layer interface includes:
    If the number of the application icons is greater than the first threshold, or the display screen area occupied by the application icon is greater than the second threshold, the mobile terminal is in the display screen according to the first adb command. The second layer interface displays the device identifier, and the first layer interface is placed at the bottom layer of the second layer interface.
  6. The method according to claim 3, wherein the mobile terminal displays the device identifier on a second layer interface of the display screen according to the first adb command, and the first layer interface is placed The top layer of the second layer interface includes:
    If the number of the application icons is greater than the first threshold, or the display screen area occupied by the application icon is greater than the second threshold, the mobile terminal is in the display screen according to the first adb command. The second layer interface enlarges the device identifier, and the first layer interface is placed at the bottom layer of the second layer interface.
  7. The method according to claim 1 or 2, wherein the mobile terminal displays the device identifier on a display screen according to the first adb command, including:
    If the number of application icons displayed on the first layer interface of the display screen is less than or equal to the first threshold, or the application icon displayed on the first layer interface of the display screen occupies less than the display area Equal to the second threshold, the mobile terminal deletes the application program in the first layer interface of the display screen according to the first adb command. The target free location displays the device identification.
  8. The method according to claim 1 or 2, wherein the mobile terminal displays the device identifier on a display screen according to the first adb command, including:
    If the mobile terminal is in a black screen state, the mobile terminal displays the device identifier at a target location of the display screen according to the first adb command, except that other locations of the target location are in a black screen state; or
    If the mobile terminal is in a black screen state, the mobile terminal illuminates the display screen according to the first adb command, and displays the device identifier on the display screen.
  9. The method according to claim 1 or 2, wherein the mobile terminal displays the device identifier on a display screen according to the first adb command, including:
    The mobile terminal displays the device identifier in a notification column of the display screen according to the first adb command.
  10. The method of claim 9 wherein the method further comprises:
    Receiving, by the mobile terminal, an enlarged instruction generated by a user sliding the device identifier in the notification column;
    The mobile terminal displays the device identifier in an enlarged manner in the display screen according to the zoom-in instruction.
  11. The method according to claim 1 or 2, wherein the mobile terminal displays the device identifier on a display screen according to the first adb command, including:
    The mobile terminal displays a target icon according to the first adb command;
    The mobile terminal receives a trigger instruction generated by a user pressing, sliding, or double-clicking on the target icon;
    The mobile terminal displays the device identifier on the display screen according to the triggering instruction.
  12. The method of any of claims 1-11, wherein the method further comprises:
    The mobile terminal plays the device identifier according to the first adb command voice.
  13. The method according to any one of claims 1 to 12, wherein the method further comprises:
    Receiving, by the mobile terminal, a second adb command sent by the terminal device, where the second adb command includes the device identifier;
    The mobile terminal performs a corresponding operation according to the second adb command.
  14. The method of any of claims 1-13, wherein the first adb command is a show command.
  15. A method for displaying device identification, comprising:
    The terminal device establishes a communication connection with at least two mobile terminals;
    Obtaining, by the terminal device, a device identifier of each of the at least two mobile terminals;
    Receiving, by the terminal device, a first adb command;
    The terminal device sends a first adb command to add the corresponding device identifier to the at least two mobile terminals, so that the at least two mobile terminals respectively display respective corresponding device identifiers.
  16. The method according to claim 15, wherein the device identifier comprises at least one of a device number and a serial number, wherein the device number is a number having a mapping relationship with the serial number.
  17. The method according to claim 15 or 16, wherein the method further comprises:
    Receiving, by the terminal device, a second adb command, where the second adb command includes a target device identifier, where the target device identifier is an identifier of the target mobile terminal;
    The terminal device sends the second adb command to the target mobile terminal, where the second adb command is used by the target mobile terminal to perform a corresponding operation.
  18. The method according to any one of claims 15-17, wherein the first adb command is a show command.
  19. A mobile terminal, comprising:
    Establishing a connection module for establishing a communication connection with the terminal device;
    a transceiver module, configured to receive a first adb command sent by the terminal device, where the first adb command includes a device identifier;
    And a display module, configured to display the device identifier on a display screen according to the first adb command.
  20. The mobile terminal according to claim 19, wherein the device identifier comprises at least one of a device number and the serial number, wherein the device number is a number having a mapping relationship with the serial number.
  21. A mobile terminal according to claim 19 or 20, characterized in that
    The display module is further configured to display an application icon on the first layer interface of the display screen;
    Specifically, the device identifier is displayed on the second layer interface of the display screen according to the first adb command, where the first layer interface is placed on the bottom layer of the second layer interface, or A layer of interface is placed on top of the second layer interface.
  22. A mobile terminal according to any of claims 19-21, characterized in that
    The display module is specifically configured to animately display the device identifier in the display screen according to the first adb command; or, according to the first adb command, in a manner of a prompt box in the display screen The device identification is displayed.
  23. The mobile terminal of claim 21, wherein
    The display module is specifically configured to: if the number of the application icons is greater than a first threshold, or the display screen area occupied by the application icon is greater than a second threshold, the display module is configured according to the first adb Commanding, displaying the device identifier on a second layer interface of the display screen, the first layer interface being placed at an bottom layer of the second layer interface.
  24. The mobile terminal of claim 21, wherein
    The display module is specifically configured to: if the number of the application icons is greater than a first threshold, or the display screen area occupied by the application icon is greater than a second threshold, the display module is configured according to the first adb Commanding, the device identifier is displayed in an enlarged manner on a second layer interface of the display screen, and the first layer interface is placed at an bottom layer of the second layer interface.
  25. A mobile terminal according to claim 19 or 20, characterized in that
    The display module is specifically configured to: if the number of application icons displayed on the first layer interface of the display screen is less than or equal to a first threshold, or an application displayed on the first layer interface of the display screen If the display screen area occupied by the icon is less than or equal to the second threshold, the display module displays the device in the first layer interface of the display screen except the idle position of the application icon according to the first adb command. Logo.
  26. A mobile terminal according to claim 19 or 20, characterized in that
    The display module is specifically configured to: if the mobile terminal is in a black screen state, the display module displays the device identifier at a target position of the display screen according to the first adb command, except for the target location The location is in a black screen state; or, if the mobile terminal is in a black screen state, the shift display module is in accordance with the first adb command The display is illuminated and the device identification is displayed on the display.
  27. A mobile terminal according to claim 19 or 20, characterized in that
    The display module is specifically configured to display the device identifier in a notification column of the display screen according to the first adb command.
  28. The mobile terminal of claim 27, wherein
    The transceiver module is further configured to receive an enlarged instruction generated by the user sliding the device identifier in the notification column;
    The display module is further configured to display the device identifier in an enlarged manner in the display screen according to the zooming instruction.
  29. A mobile terminal according to claim 19 or 20, characterized in that
    The display module is further configured to display a target icon according to the first adb command;
    The transceiver module is further configured to receive a trigger instruction generated by a user pressing, sliding, or double-clicking on the target icon;
    The display module is further configured to display the device identifier on the display screen according to the triggering instruction.
  30. The mobile terminal according to any one of claims 19 to 29, wherein the mobile terminal further comprises:
    a voice module, configured to play the device identifier according to the first adb command voice.
  31. The mobile terminal according to any one of claims 19-30, wherein the mobile terminal further comprises:
    The transceiver module is further configured to receive a second adb command sent by the terminal device, where the second adb command includes the device identifier;
    And an execution module, configured to perform a corresponding operation according to the second adb command.
  32. The mobile terminal according to any one of claims 19 to 31, wherein the first adb command is a show command.
  33. A terminal device, comprising:
    Establishing a connection module, configured to establish a communication connection with at least two mobile terminals;
    An acquiring module, configured to acquire a device identifier of each of the at least two mobile terminals;
    The transceiver module is configured to receive the first adb command, and send the first adb command to add the corresponding device identifier to the at least two mobile terminals, so that the at least two mobile terminals respectively display the corresponding device identifiers.
  34. The terminal device according to claim 33, wherein the device identifier comprises at least one of a device number and a serial number, wherein the device number is a number having a mapping relationship with the serial number.
  35. A terminal device according to claim 33 or 34, characterized in that
    The transceiver module is further configured to receive a second adb command, where the second adb command includes a target device identifier, the target device identifier is an identifier of the target mobile terminal, and the second adb command is sent to the target mobile terminal. The second adb command is used by the target mobile terminal to perform a corresponding operation.
  36. The terminal device according to any one of claims 33 to 35, wherein the first adb command is a show command.
  37. A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 1-14.
  38. A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 15-18.
  39. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-14.
  40. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 15-18.
PCT/CN2017/093889 2017-05-17 2017-07-21 Method for displaying device identifier, mobile terminal, and terminal device WO2018209802A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710348363 2017-05-17
CN201710348363.8 2017-05-17

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201780030248.4A CN109196480A (en) 2017-05-17 2017-07-21 A kind of method, mobile terminal and terminal device showing device identification

Publications (1)

Publication Number Publication Date
WO2018209802A1 true WO2018209802A1 (en) 2018-11-22

Family

ID=64273250

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/093889 WO2018209802A1 (en) 2017-05-17 2017-07-21 Method for displaying device identifier, mobile terminal, and terminal device

Country Status (2)

Country Link
CN (1) CN109196480A (en)
WO (1) WO2018209802A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133794A (en) * 2014-07-16 2014-11-05 深圳创维数字技术股份有限公司 Mobile terminal and set top box pairing method and mobile terminal
CN105022476A (en) * 2014-04-15 2015-11-04 三星显示有限公司 Wearable device
CN106201798A (en) * 2016-07-14 2016-12-07 努比亚技术有限公司 Product ID processing means and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9013729B2 (en) * 2011-12-06 2015-04-21 Ricoh Company, Ltd. Mobile terminal apparatus and mobile print application
KR101543578B1 (en) * 2014-02-07 2015-08-11 현대자동차주식회사 A terminal certification system for vehicle network connection and certification method thereof
CN104468260A (en) * 2014-11-13 2015-03-25 百度在线网络技术(北京)有限公司 Recognition method, device and system for mobile terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022476A (en) * 2014-04-15 2015-11-04 三星显示有限公司 Wearable device
CN104133794A (en) * 2014-07-16 2014-11-05 深圳创维数字技术股份有限公司 Mobile terminal and set top box pairing method and mobile terminal
CN106201798A (en) * 2016-07-14 2016-12-07 努比亚技术有限公司 Product ID processing means and method

Also Published As

Publication number Publication date
CN109196480A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US10057627B2 (en) Method, apparatus and system for displaying bullet screen information
RU2621012C2 (en) Method, device and terminal equipment for processing gesture-based communication session
WO2016107505A1 (en) Method for displaying graphical user interface, and mobile terminal
JP2015534693A (en) Desktop display method, apparatus, terminal, program, and recording medium
US10528012B2 (en) Method and device for sending communication message
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN104518953B (en) Method for deleting message, instant communication terminal and system
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
US20180308182A1 (en) Information processing method and apparatus
WO2014026612A1 (en) Data transmission method, data transmission device and terminal provided with touch screen
TWI597964B (en) Message storing method and device, and communication terminal
CN102845127B (en) Mobile computing device sensor is initiated call or changes the use of phone operation
WO2017008551A1 (en) Bullet screen display method and apparatus
WO2015043189A1 (en) Message display method and apparatus, and terminal device
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
US9489469B2 (en) Page display method, apparatus and terminal
US10055220B2 (en) Method, apparatus, and system for processing desktop data of mobile terminal
TWI520043B (en) Method, device and moving terminal for examining messages
EP2851779A1 (en) Method, device, storage medium and terminal for displaying a virtual keyboard
CN104238918B (en) List View component slippage display methods and device
CN103279288A (en) Method, device and terminal units for transmitting data
CN103455582A (en) Display method of navigation page of browser and mobile terminal
CN106303070B (en) notification message prompting method and device and mobile terminal
CN106406892A (en) A shortcut function display method and device for applications and a terminal apparatus
CN104571787B (en) A kind of message display method and communication terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17910260

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE