CN108536586B - Information acquisition method, equipment and system of Android mobile terminal - Google Patents

Information acquisition method, equipment and system of Android mobile terminal Download PDF

Info

Publication number
CN108536586B
CN108536586B CN201810228234.XA CN201810228234A CN108536586B CN 108536586 B CN108536586 B CN 108536586B CN 201810228234 A CN201810228234 A CN 201810228234A CN 108536586 B CN108536586 B CN 108536586B
Authority
CN
China
Prior art keywords
mobile terminal
information
script
brand
android mobile
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810228234.XA
Other languages
Chinese (zh)
Other versions
CN108536586A (en
Inventor
韩宏宇
胡谦谦
安乐天
韩旭
宁伟
李A
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201810228234.XA priority Critical patent/CN108536586B/en
Publication of CN108536586A publication Critical patent/CN108536586A/en
Application granted granted Critical
Publication of CN108536586B publication Critical patent/CN108536586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an information acquisition method, equipment and system for an Android mobile terminal, and relates to the technical field of mobile terminal information acquisition. The method comprises the steps of obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server; acquiring a target driving mode corresponding to the brand information according to the brand information; and calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal. According to the method and the device, the information of the accessed Android mobile terminal is acquired, the technical requirements of users on the Android mobile terminal bottom layer commands are reduced, the Android mobile terminal information acquisition display efficiency is improved, the time cost for acquiring the Android mobile terminal information is saved, and the reliability and the expandability of information acquisition and management are improved.

Description

Information acquisition method, equipment and system of Android mobile terminal
Technical Field
The invention relates to the technical field of information acquisition of mobile terminals, in particular to an information acquisition method and information acquisition equipment of an Android mobile terminal, an information acquisition system of the Android mobile terminal, computer equipment and a computer-readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Currently, with the popularization of Android mobile terminals, testing of Android mobile applications becomes more and more important. Due to the endless variety of brands, models and the like of Android mobile terminals, the types of Android mobile terminals to be covered by the test become more and more. The collection of various types of information of Android mobile terminals of different brands and different models is becoming more and more complicated. Meanwhile, due to the fact that information provided by manufacturers of various brands is inconsistent, the information display mode is different, and no universal equipment or method is provided, the Android mobile terminal information acquisition can only be manually acquired, input and displayed, and the problems of large workload, low maintenance efficiency, poor reliability and the like exist.
In the information collection process of the Android mobile terminal, the following problems are generally encountered:
1. when the newly-added Android mobile terminal device is tested, technical personnel are required to collect and input device information on site, and after an operating system of the Android mobile terminal device is upgraded, the same actions are required to be repeated for collection, so that unnecessary waste of working hours of the personnel is caused, and the maintenance efficiency is low.
2. When the technical personnel acquire the information of the Android mobile terminal device, the skills of acquiring the information from the bottom layer such as an adb shell command need to be mastered, and the technical personnel have higher requirements on the skills.
3. After information is collected, technicians are required to input each piece of mobile terminal information into a designated mobile terminal information centralized management position, the workload is large, in case of input errors, mismatching of the mobile terminal information can be caused, the true requirements of testers cannot be met, the reliability is poor, and high system risks are achieved.
4. The information collection management of the Android mobile terminal can not be realized on servers with different operating systems by applying the prior art.
5. Aiming at a newly-added Android brand mobile terminal, the existing acquisition method cannot achieve expandability, and technicians need to repeatedly perform acquisition, input and other work.
Therefore, how to provide a new solution, which can solve the above technical problems, is a technical problem to be solved in the art.
Disclosure of Invention
In view of the above, the present invention provides an information acquisition method for an Android mobile terminal, an information acquisition device, an information acquisition system for an Android mobile terminal, a computer device, and a computer-readable storage medium, where information acquisition is performed on the Android mobile terminal by acquiring brand information of the Android mobile terminal and calling different target driving modes and target script information according to the brand information, so as to realize information acquisition on the accessed Android mobile terminal, reduce technical requirements of users on underlying commands of the Android mobile terminal, improve the information acquisition efficiency of the Android mobile terminal, save the time cost required for acquiring the information of the Android mobile terminal, and improve the reliability and expandability of information acquisition and management.
One of the purposes of the present invention is to provide an information obtaining method for an Android mobile terminal, where the method includes:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server;
acquiring a target driving mode corresponding to the brand information according to the brand information;
and calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal.
One of the objects of the present invention is to provide an information acquisition apparatus including an information processing module, a driver module, and a script management module,
the information processing module is used for acquiring brand information of an Android mobile terminal accessed to a mobile terminal access server;
the driving module is used for acquiring a target driving mode corresponding to the brand information according to the brand information;
the script management module is used for calling target script information corresponding to the brand information according to the brand information and driving the target script information according to the target driving mode so as to acquire information of the Android mobile terminal.
One of the objectives of the present invention is to provide an information acquisition system for Android mobile terminals, which includes an information acquisition device, a mobile terminal access server, and an Android mobile terminal connected to the information acquisition device through the mobile terminal access server, wherein the information acquisition device includes an information processing module, a driving module, and a script management module,
the information processing module is used for acquiring brand information of the Android mobile terminal accessed to the mobile terminal access server;
the driving module is used for acquiring a target driving mode corresponding to the brand information according to the brand information;
the script management module is used for calling target script information corresponding to the brand information according to the brand information and driving the target script information according to the target driving mode so as to acquire information of the Android mobile terminal.
One of the objects of the present invention is to provide a computer device, comprising a processor adapted to implement instructions, and a storage device storing a plurality of instructions, the instructions being adapted to be loaded and executed by the processor:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server; acquiring a target driving mode corresponding to the brand information according to the brand information; and calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal.
One of the objects of the present invention is to provide a computer-readable storage medium storing a computer program for executing:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server; acquiring a target driving mode corresponding to the brand information according to the brand information; and calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal.
The Android mobile terminal information acquisition method, the information acquisition equipment, the Android mobile terminal information acquisition system, the computer equipment and the computer readable storage medium have the advantages that information acquisition of the Android mobile terminal is achieved by acquiring brand information of the Android mobile terminal and calling different target driving modes and target script information according to the brand information to acquire information of the Android mobile terminal, technical requirements of users on underlying commands of the Android mobile terminal are reduced, information acquisition efficiency of the Android mobile terminal is improved, time cost required for acquiring information of the Android mobile terminal is saved, and reliability and expandability of information acquisition and management are improved.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an information acquisition system of an Android mobile terminal according to an embodiment of the present invention;
fig. 2 is a block diagram of a first implementation manner of an information acquisition device according to an embodiment of the present invention;
fig. 3 is a block diagram of a second implementation of an information acquisition device according to an embodiment of the present invention;
fig. 4 is a block diagram of an information processing module in an information acquiring device according to an embodiment of the present invention;
fig. 5 is a block diagram of a script management module in an information obtaining device according to an embodiment of the present invention;
fig. 6 is a flowchart of an information obtaining method for an Android mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic flowchart illustrating a process of acquiring information of an Android mobile terminal through an information acquisition device in a specific embodiment provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
In the prior art, with popularization and popularization of Android mobile terminals, testing of Android mobile applications becomes more and more important. Due to the endless variety of brands, models and the like of Android mobile terminals, the types of Android mobile terminals to be covered by the test become more and more. The collection of various types of information of Android mobile terminals of different brands and different models is becoming more and more complicated. Meanwhile, due to the fact that information provided by manufacturers of various brands is inconsistent, the information display mode is different, and no universal equipment or method is provided, the Android mobile terminal information acquisition can only be manually acquired, input and displayed, and the problems of large workload, low maintenance efficiency, poor reliability and the like exist.
In order to solve the above problem, an embodiment of the present invention provides an information obtaining system for an Android mobile terminal, where fig. 1 is a schematic structural diagram of the system, please refer to fig. 1, and the system provided by the present invention includes an information obtaining device 100, a mobile terminal access server 200, and an Android mobile terminal 300.
Referring to fig. 1, the Android mobile terminal 300 is connected to the information obtaining apparatus 100 through the mobile terminal access server 200, and specifically, in an actual use process, a plurality of Android mobile terminals may be simultaneously accessed to the mobile terminal access server in a USB manner.
Fig. 2 is a block diagram of a first embodiment of an information obtaining apparatus according to an embodiment of the present invention, and referring to fig. 2, the information obtaining apparatus 100 includes an information processing module 1, a driving module 2, and a script management module 3 in the first embodiment.
The information processing module 1 is configured to acquire brand information of the Android mobile terminal accessed to the mobile terminal access server. In an embodiment of the invention, after the Android mobile terminal is accessed to the mobile terminal access server in a USB mode, the information processing module selects a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server to acquire the brand information of the Android mobile terminal. For example, by a get Property method in a Java public System, if the operating System type of the mobile terminal accessing the server is judged to be Windows, a written BAT brand information acquisition script is selected for brand information acquisition.
And the driving module 2 is used for acquiring a target driving mode corresponding to the brand information according to the brand information, in the invention, the driving module 2 is used for driving a target information acquisition script, and the type of the operating system of the mobile terminal access server comprises two driving modes, namely a CMD driving mode of a WINDOWS operating system and a KSH driving mode of a LINUX operating system.
And the script management module 3 is configured to call target script information corresponding to the brand information according to the brand information, and drive the target script information according to the target driving mode to acquire information of the Android mobile terminal.
In an embodiment of the present invention, the script management module is further configured to: and formatting the acquired information to obtain the formatted information. In one embodiment of the invention, the collected information includes an Android mobile terminal serial number, an Android mobile terminal brand, an Android mobile terminal model, an Android mobile terminal operating system version, an Android mobile terminal CPU, an Android mobile terminal memory, and an Android mobile terminal resolution. Formatting the collected information generally refers to formatting in a "KEY-VALUE" mode.
That is, the information acquisition device provided by the invention acquires the brand information of the Android mobile terminal through the information processing module 1, and selects different target driving modes in the driving module 2 and different target script information in the script management module 3 according to different brand information to acquire information.
Fig. 3 is a block diagram of a second embodiment of an information obtaining apparatus according to an embodiment of the present invention, and referring to fig. 3, in the second embodiment of the present invention, the information obtaining apparatus further includes a human-computer interaction module 4, configured to display the formatted information. That is, in this embodiment, the information obtaining device obtains the brand information of the Android mobile terminal through the information processing module 1, selects different driving modes in the driving module 2 and different BAT or SHELL acquisition scripts in the script management module 3 of the Android mobile terminal according to different brand information to perform information acquisition, and sends the acquired information to the human-computer interaction module 4 through the information processing module 1 to be displayed, so that the user can check the acquired information in real time.
In an embodiment of the present invention, the human-computer interaction module 4 is further configured to maintain information of the Android mobile terminal, and reprocess error information.
In an embodiment of the present invention, the information processing module is further configured to: and judging whether the brand information is stored on the information acquisition equipment, and outputting brand failure information when the brand information is judged not to be stored on the information acquisition equipment. The brand failure information can be displayed through the man-machine interaction module, the brand failure information is used for displaying the brand information acquisition failure of the Android mobile terminal, namely the brand information which is not newly accessed to the Android mobile terminal is displayed in the information processing module 1, and the user is informed of adding a script in the tool pool through the display, so that the subsequent information acquisition can be carried out. And after the script is newly added to the tool pool, the brand information is collected again.
In an embodiment of the present invention, the script management module is further configured to output script execution result information; the information processing module is further configured to: and judging whether the target script information is driven according to the target driving mode to acquire the information of the Android mobile terminal successfully or not according to the script execution result, and outputting script execution failure information if the judgment is negative. In a specific embodiment, the information processing module determines whether the execution of the information acquisition script of the Android mobile terminal is successful according to an abnormal condition in the script execution result, for example, "$? "is judged, and if the value returns to" 0 ", the result is successful, and if the value returns to non-0, the result is failure. The script execution failure information can be displayed through the man-machine interaction module, so that after the user sees the script execution failure information, the Android mobile terminal can be reconnected, and information can be obtained again.
The information processing module 1 is used for realizing the self-discovery of the brand information of the Android mobile terminal, namely after the Android mobile terminal is accessed to the mobile terminal access server in a USB mode, selecting a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server through a unified scheduling engine to acquire the brand information of the mobile terminal, selecting a specified acquisition information script according to the brand information, and performing the information uploading function after other follow-up modules acquire and process the mobile terminal information. Fig. 4 is a block diagram of an information processing module, please refer to fig. 4, in an embodiment of the present invention, the information processing module includes a mobile terminal self-discovery unit 11, a scheduling execution unit 12, and an information uploading unit 13, where:
the mobile terminal self-discovery unit 11 is used for realizing a self-discovery function of brand information of the Android mobile terminal accessed to the mobile terminal access server, namely after the Android mobile terminal is accessed to the mobile terminal access server in a USB mode, the scheduling execution unit 12 selects a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server to acquire the brand information of the Android mobile terminal, and provides a basis for the scheduling execution unit to select a target acquisition information script. For example, by a getProperty method in a Java public System, if the operating System type of the mobile terminal accessing the server is judged to be Windows, a written BAT brand information acquisition script is selected for brand information acquisition.
The scheduling execution unit 12 is used for judging the type of an operating system of the mobile terminal access server and selecting different driving modes according to different types; selecting an information acquisition script of the Android mobile terminal containing the brand parameters in a script name according to the brand information acquired by the mobile terminal self-discovery unit 11; and calling the selected target driving mode to execute the information acquisition script of the selected target Android mobile terminal. Meanwhile, whether the information acquisition script of the Android mobile terminal is successfully executed is judged according to the captured abnormal condition, for example, "$? "is judged, and if the value returns to" 0 ", the result is successful, and if the value returns to non-0, the result is failure.
And the information uploading unit 13 is used for uploading the information of the Android mobile terminal acquired and processed by the debugging execution unit 12 to the human-computer interaction module 4 for display.
In the invention, the script management module 3 is used for realizing information acquisition of the Android mobile terminal and pooling management of the script, and the script internally carries out flow encapsulation on an open source adb command of the Android operating system through SHELL or BAT language and formatting processing of a 'KEY-VALUE' mode of the information so as to carry out information acquisition and data processing. Specifically, fig. 5 is a structural block diagram of a script management module, and as shown in fig. 5, the script management module 3 includes an Android mobile terminal information acquisition unit 31 and a data processing unit 32, where:
the Android mobile terminal information acquisition unit 31 is configured to acquire specified information of the Android mobile terminal by packaging a flow of a Shell scripting language or a BAT scripting language of an open source adb command of the Android operating system, where the specified information includes a mobile terminal serial number, a mobile terminal brand, a mobile terminal model, a mobile terminal operating system version, a mobile terminal CPU, a mobile terminal memory, and a mobile terminal resolution.
The data processing unit 32 is configured to perform formatting processing in a KEY-VALUE mode on data acquired by the Android mobile terminal information acquisition unit 31, where the formatting data in the KEY-VALUE mode includes a mobile terminal serial number, a mobile terminal brand, a mobile terminal model, a mobile terminal operating system version, a mobile terminal CPU, a mobile terminal memory, and a mobile terminal resolution.
The invention also provides a computer device comprising a processor adapted to implement instructions and a storage device, the storage device storing a plurality of instructions, the instructions being adapted to be loaded and executed by the processor:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server; acquiring a target driving mode corresponding to the brand information according to the brand information; and calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal.
The present invention also provides a computer-readable storage medium storing a computer program for executing:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server; acquiring a target driving mode corresponding to the brand information according to the brand information; and calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal.
As described above, according to the information acquisition system of the Android mobile terminal, the information acquisition device, the computer device and the computer readable storage medium provided by the invention, by acquiring the brand information of the Android mobile terminal and calling different target driving modes and target script information according to the brand information to acquire information of the Android mobile terminal, the information acquisition of the accessed Android mobile terminal is realized, the technical requirements of users on the underlying commands of the Android mobile terminal are reduced, the information acquisition efficiency of the Android mobile terminal is improved, the time cost required for acquiring the Android mobile terminal information is saved, and the reliability and expandability of information acquisition and management are improved.
Furthermore, although in the above detailed description several unit modules of the system are mentioned, this division is not mandatory only. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Also, the features and functions of one unit described above may be further divided into embodiments by a plurality of units. The terms "module" and "unit" used above may be software and/or hardware that realizes a predetermined function. While the modules described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
After the information acquisition system and the information acquisition device of the Android mobile terminal according to the exemplary embodiment of the present invention are introduced, a method according to the exemplary embodiment of the present invention will be described with reference to the accompanying drawings. The implementation of the method can be referred to the above overall implementation, and repeated details are not repeated.
Fig. 6 is a flowchart of an information obtaining method for an Android mobile terminal according to an embodiment of the present invention, please refer to fig. 6, where the method includes:
s101: the method comprises the steps of obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server.
In an embodiment of the invention, after the Android mobile terminal is accessed to the mobile terminal access server in a USB mode, step S101 selects a brand information acquisition script implemented by BAT or SHELL according to an operating system type of the mobile terminal access server to collect the brand information of the Android mobile terminal. For example, by a get Property method in a Java public System, if the operating System type of the mobile terminal accessing the server is judged to be Windows, a written BAT brand information acquisition script is selected for brand information acquisition.
S102: and acquiring a target driving mode corresponding to the brand information according to the brand information.
In the invention, the operating system type of the mobile terminal access server comprises two driving modes, namely a CMD driving mode of a WINDOWS operating system and a KSH driving mode of a LINUX operating system.
S103: and calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal.
In other embodiments of the invention, the method further comprises:
formatting the acquired information to obtain formatted information;
and displaying the formatted information.
In one embodiment of the invention, the collected information includes an Android mobile terminal serial number, an Android mobile terminal brand, an Android mobile terminal model, an Android mobile terminal operating system version, an Android mobile terminal CPU, an Android mobile terminal memory, and an Android mobile terminal resolution. Formatting the collected information generally refers to formatting in a "KEY-VALUE" mode.
That is, the information acquisition method provided by the invention acquires the brand information of the Android mobile terminal, selects different target driving modes and different target script information according to different brand information to acquire information, and transmits the acquired information to the man-machine interaction module to be displayed for a user to check in real time.
In an embodiment of the present invention, the method further includes maintaining information of the Android mobile terminal, and reprocessing the error information.
In one embodiment of the invention, the method further comprises: and judging whether the brand information is stored or not, and outputting brand failure information when the judgment is negative. The brand failure information can be displayed through the man-machine interaction module, the brand failure information is used for displaying the brand information acquisition failure of the Android mobile terminal, namely the brand information which is not newly accessed to the Android mobile terminal is displayed in the information acquisition equipment, and the user is informed of adding a script in the tool pool through the display so as to acquire subsequent information. And after the script is newly added to the tool pool, the brand information is collected again.
In an embodiment of the present invention, the method further includes outputting script execution result information, determining whether the target script information is driven according to the target driving manner to acquire information of the Android mobile terminal successfully according to the script execution result, and outputting script execution failure information when the determination is negative. In a specific embodiment, whether the information acquisition script of the Android mobile terminal is successfully executed is determined according to an abnormal condition in a script execution result, for example, "$? "is judged, and if the value returns to" 0 ", the result is successful, and if the value returns to non-0, the result is failure. The script execution failure information can be displayed through the man-machine interaction module, so that after the user sees the script execution failure information, the Android mobile terminal can be reconnected, and information can be obtained again.
According to the information acquisition method of the Android mobile terminal, the information of the Android mobile terminal is automatically acquired, input and displayed through hierarchical design; the method comprises the steps that an acquisition means is atomized, namely different scripts are adopted for acquiring information of Android mobile terminals of different brands, and the requirement for acquiring the variety of the Android mobile terminals is met; different acquisition scripts are called by using a unified calling mode through the uniform standardization of acquisition interfaces, so that the automatic information acquisition, input and display of all newly added mobile terminals are realized; and an expandable interface mode is adopted to realize an expandable information acquisition tool pool, so that the aims of acquiring information of newly-added brand mobile terminal equipment and running the information acquisition equipment and the information acquisition method on different operating system servers are fulfilled.
The following describes the technical solution of the present invention in detail through specific embodiments provided by the present invention, in conjunction with the accompanying drawings of the present invention. Fig. 7 is a schematic flowchart illustrating a process of acquiring information of an Android mobile terminal through an information acquisition device in a specific embodiment provided by the present invention. Referring to fig. 7, after the Android mobile terminal accesses the mobile terminal access server in a USB manner, the information processing module obtains brand information of the newly added Android mobile terminal. Then, the information processing module performs subsequent operations according to the judgment of the brand information parameters: if the brand information exists in the equipment, selecting a target script in the script management module, transmitting the target script as a parameter to the driving module for the driving module to execute the script, if the script is successfully executed, summarizing information results by the information processing module, uploading the information results to the man-machine interaction module for displaying, and if the script is unsuccessfully executed, displaying failure information to a user and informing the user to plug and unplug the Android mobile terminal again for information acquisition; if the brand information does not exist in the equipment, the brand information is displayed in the man-machine interaction module, the fact that the brand information does not exist is informed to the user, and the user is informed to expand the script in the script management module. And after the expansion, reinserting the Android mobile terminal and continuing the information discovery work. The specific treatment process comprises the following steps:
s1: the Android mobile terminal is accessed to the mobile terminal access server in a USB mode. The method comprises the following steps of primary connection and non-primary connection due to abnormal information acquisition or failure of acquisition scripts, and the subsequent processing steps are the same in the two scenes.
S2: the mobile terminal self-discovery unit 11 of the information processing module 1 automatically calls the adb shell script through a computer language capable of remotely calling a target bottom script, and obtains brand information of an Android mobile terminal accessed to a mobile terminal access server.
S3: the schedule execution unit 12 in the information processing module 1 determines whether the brand information of the Android mobile terminal collected in step S2 is already stored in the schedule execution unit 12, if so, executes step S5, and if not, proceeds to step S4.
S4: the man-machine interaction module 4 displays the brand information of the Android mobile terminal, which is obtained in step S3, and the brand information of the Android mobile terminal that is obtained in step S3 is not newly accessed in the scheduling execution unit 12 of the information processing module 1, and informs the user of adding a new script in the tool pool through the display so as to acquire subsequent information. After the script is added to the tool pool, step S1 is executed again.
S5: the scheduling execution unit 12 in the information processing module 1 selects different driving modes in the collected information script driving unit 21 in the driving module according to the conditions for deployment in different mobile terminal access servers.
S6: the schedule execution unit 12 in the information processing module 1 selects the target mobile terminal information collection script whose name includes the brand information from the script management module 3 according to the brand information acquired in step S2, and executes the script in the driving manner selected in step S5. The Android mobile terminal information collection unit 31 in the script management module 3 collects information, and the data processing unit 32 performs formatting processing of a "KEY-VALUE" mode of data on the collected information, that is, formatting in a form of outputting target information KEY VALUE, for example, "brand sum" and "serial num M960BDQ9223E 5".
S7: the scheduling execution unit 12 in the information processing module 1 determines whether the script is successfully executed, that is, by determining the script execution result, if the KEY-VALUE KEY pairs of the target number are obtained, it is determined that the script is successfully executed, otherwise, it is determined that the script is failed. If the execution is successful, step S9 is executed, and if not, step S8 is executed.
S8: the human-computer interaction module 4 displays the script execution failure condition, informs the user to reconnect the Android mobile terminal, and re-executes the step S1.
S9: the information uploading unit 13 in the information processing module 1 uploads the formatted data of the "KEY-VALUE" mode acquired in step S6 to the human-computer interaction module 4, where the formatted data of the "KEY-VALUE" mode includes a mobile terminal serial number, a mobile terminal brand, a mobile terminal model, a mobile terminal operating system version, a mobile terminal CPU, a mobile terminal memory, and a mobile terminal resolution.
S10: the man-machine interaction module 4 displays the data sent in step S9. If the information is wrong, the error information is reprocessed through the human-computer interaction module 4, namely the error information is displayed after being modified and edited through the information editing function provided by the human-computer interaction module.
In summary, an information acquisition method of an Android mobile terminal, an information acquisition system of an Android mobile terminal, information acquisition equipment, computer equipment, and a computer-readable storage medium are provided, a unified scheduling engine is realized by adopting a computer language capable of remotely calling a target underlying script, different BAT or SHELL scripts are called according to collected brand information to perform information collection of different mobile terminals, information acquisition of an accessed Android mobile terminal is realized, technical requirements of users on underlying commands of the Android mobile terminal can be reduced, the display efficiency of information collection of the Android mobile terminal is improved, time cost required for collecting information of the Android mobile terminal is saved, and reliability and expandability of information collection and management are improved. The invention adopts an intelligent upper-layer logic and an extensible bottom-layer tool pool.
The invention establishes the universal equipment and the method for collecting and intensively displaying the information of the Android mobile terminal, realizes the automatic, standardized collection, input and display of the information of different Android mobile terminals accessed to the equipment and the method, can be accurately and conveniently checked by a user, improves the accuracy and the reliability of the test, and has the advantages that:
1. according to the method and the device, when the newly-added Android mobile terminal device is connected to the mobile terminal access server, the operating system is upgraded or the device configuration information is changed, field processing by technicians is not needed, the technicians are only required to access the mobile terminal access server in a USB mode, the steps of collecting and inputting information on the field by the technicians are omitted, the working efficiency is improved, and the labor cost is saved.
2. The technical personnel only need to access the Android mobile terminal through a USB mode on the mobile terminal access server side, information acquisition is not needed to be carried out on a bottom-layer Android mobile terminal maintenance command such as the conventional manual operation adb shell, and meanwhile unnecessary operation and maintenance actions such as manual information registration are not needed.
3. By adopting the Android mobile terminal information automatic acquisition technology, the relevant information of all the accessed Android mobile terminals can be displayed in real time, the Android mobile terminal information acquisition technology is visual and easy to use, is convenient to maintain, avoids risks caused by manual entry of technicians and improves the reliability of the system.
4. The equipment and the method provided by the invention have stronger flexibility and can be deployed in the mobile terminal access servers of linux and Windows operating systems respectively.
5. The equipment and the method provided by the invention have stronger adaptability, the script in the tool pool can be expanded, when a new brand or model of mobile phone appears, the acquisition of the information of the Android mobile terminal of the new brand can be realized only by adding the script and without using upper-layer logic, and the diversity of system application objects is greatly improved.
Improvements to a technology can clearly be distinguished between hardware improvements (e.g. improvements to the circuit structure of diodes, transistors, switches, etc.) and software improvements (improvements to the process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardbyscript Description Language (vhr Description Language), and the like, which are currently used by Hardware compiler-software (Hardware Description Language-software). It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: the ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of software products, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include instructions for causing a computer system (which may be a personal computer, a server, or a network system, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable systems, tablet-type systems, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics systems, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or systems, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing systems that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage systems.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (10)

1. An information acquisition system of an Android mobile terminal is characterized by comprising an information acquisition device, a mobile terminal access server and the Android mobile terminal connected with the information acquisition device through the mobile terminal access server, wherein the information acquisition device comprises an information processing module, a driving module and a script management module,
the information processing module is used for acquiring brand information of the Android mobile terminal accessed to the mobile terminal access server;
the driving module is used for acquiring a target driving mode corresponding to the brand information according to the brand information; wherein, the target driving mode comprises: driving mode of WINDOWS operating system, and driving mode of LINUX operating system;
the script management module is used for calling target script information corresponding to the brand information according to the brand information and driving the target script information according to the target driving mode so as to acquire information of the Android mobile terminal;
wherein, the information processing module comprises: the mobile terminal self-discovery unit is used for scheduling the execution unit;
the mobile terminal self-discovery unit is used for carrying out self-discovery of brand information on the Android mobile terminal accessed to the mobile terminal access server; after the Android mobile terminal is accessed to the mobile terminal access server, the scheduling execution unit selects a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server to acquire the brand information of the Android mobile terminal, and provides a basis for the scheduling execution unit to select a target acquisition information script;
the scheduling execution unit is used for judging the type of an operating system of the mobile terminal access server and selecting different driving modes according to different types; selecting an information acquisition script of the Android mobile terminal containing the brand parameters in a script name according to the brand information acquired by the mobile terminal self-discovery unit; and calling the selected target driving mode to execute the information acquisition script of the selected target Android mobile terminal.
2. The system of claim 1, wherein the script management module is further configured to: and formatting the acquired information to obtain the formatted information.
3. The system of claim 2, wherein the information obtaining device further comprises a human-computer interaction module for displaying the formatted information.
4. The system of claim 1, wherein the information processing module is further configured to: and judging whether the brand information is stored on the information acquisition equipment, and outputting brand failure information when the brand information is judged not to be stored on the information acquisition equipment.
5. The system of claim 1, wherein the script management module is further configured to output script execution result information; the information processing module is further configured to: and judging whether the target script information is driven according to the target driving mode to acquire the information of the Android mobile terminal successfully or not according to the script execution result, and outputting script execution failure information if the judgment is negative.
6. An information acquisition apparatus characterized by comprising an information processing module, a driver module, and a script management module,
the information processing module is used for acquiring brand information of an Android mobile terminal accessed to a mobile terminal access server;
the driving module is used for acquiring a target driving mode corresponding to the brand information according to the brand information; wherein, the target driving mode comprises: driving mode of WINDOWS operating system, and driving mode of LINUX operating system;
the script management module is used for calling target script information corresponding to the brand information according to the brand information and driving the target script information according to the target driving mode so as to acquire information of the Android mobile terminal;
wherein, the information processing module comprises: the mobile terminal self-discovery unit is used for scheduling the execution unit;
the mobile terminal self-discovery unit is used for carrying out self-discovery of brand information on the Android mobile terminal accessed to the mobile terminal access server; after the Android mobile terminal is accessed to the mobile terminal access server, the scheduling execution unit selects a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server to acquire the brand information of the Android mobile terminal, and provides a basis for the scheduling execution unit to select a target acquisition information script;
the scheduling execution unit is used for judging the type of an operating system of the mobile terminal access server and selecting different driving modes according to different types; selecting an information acquisition script of the Android mobile terminal containing the brand parameters in a script name according to the brand information acquired by the mobile terminal self-discovery unit; and calling the selected target driving mode to execute the information acquisition script of the selected target Android mobile terminal.
7. An information acquisition method of an Android mobile terminal is characterized by comprising the following steps:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server;
acquiring a target driving mode corresponding to the brand information according to the brand information; wherein, the target driving mode comprises: driving mode of WINDOWS operating system, and driving mode of LINUX operating system;
calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal;
wherein the method further comprises: carrying out brand information self-discovery on an Android mobile terminal accessed to a mobile terminal access server; after the Android mobile terminal is accessed to a mobile terminal access server, selecting a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server to acquire the brand information of the Android mobile terminal, and providing a basis for selecting a target acquisition information script;
judging the type of an operating system of a mobile terminal access server, and selecting different driving modes according to different types; selecting an information acquisition script of the Android mobile terminal containing the brand parameters in a script name according to the acquired brand information; and calling the selected target driving mode to execute the information acquisition script of the selected target Android mobile terminal.
8. The method according to claim 7, wherein the information of the Android mobile terminal comprises one or a combination of the following information: the Android mobile terminal comprises a serial number, a brand, a model, an operating system version, a CPU, a memory and resolution.
9. A computing device, wherein the computing device comprises: a processor adapted to implement instructions, and a storage device storing a plurality of instructions, the instructions adapted to be loaded and executed by the processor:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server; acquiring a target driving mode corresponding to the brand information according to the brand information; wherein, the target driving mode comprises: driving mode of WINDOWS operating system, and driving mode of LINUX operating system; calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal; carrying out brand information self-discovery on an Android mobile terminal accessed to a mobile terminal access server; after the Android mobile terminal is accessed to a mobile terminal access server, selecting a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server to acquire the brand information of the Android mobile terminal, and providing a basis for selecting a target acquisition information script; judging the type of an operating system of a mobile terminal access server, and selecting different driving modes according to different types; selecting an information acquisition script of the Android mobile terminal containing the brand parameters in a script name according to the acquired brand information; and calling the selected target driving mode to execute the information acquisition script of the selected target Android mobile terminal.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing:
obtaining brand information of an Android mobile terminal accessed to a mobile terminal access server; acquiring a target driving mode corresponding to the brand information according to the brand information; wherein, the target driving mode comprises: driving mode of WINDOWS operating system, and driving mode of LINUX operating system; calling target script information corresponding to the brand information according to the brand information, and driving the target script information according to the target driving mode to acquire information of the Android mobile terminal; carrying out brand information self-discovery on an Android mobile terminal accessed to a mobile terminal access server; after the Android mobile terminal is accessed to a mobile terminal access server, selecting a brand information acquisition script realized by BAT or SHELL according to the type of an operating system of the mobile terminal access server to acquire the brand information of the Android mobile terminal, and providing a basis for selecting a target acquisition information script; judging the type of an operating system of a mobile terminal access server, and selecting different driving modes according to different types; selecting an information acquisition script of the Android mobile terminal containing the brand parameters in a script name according to the acquired brand information; and calling the selected target driving mode to execute the information acquisition script of the selected target Android mobile terminal.
CN201810228234.XA 2018-03-20 2018-03-20 Information acquisition method, equipment and system of Android mobile terminal Active CN108536586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810228234.XA CN108536586B (en) 2018-03-20 2018-03-20 Information acquisition method, equipment and system of Android mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810228234.XA CN108536586B (en) 2018-03-20 2018-03-20 Information acquisition method, equipment and system of Android mobile terminal

Publications (2)

Publication Number Publication Date
CN108536586A CN108536586A (en) 2018-09-14
CN108536586B true CN108536586B (en) 2021-08-27

Family

ID=63484219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810228234.XA Active CN108536586B (en) 2018-03-20 2018-03-20 Information acquisition method, equipment and system of Android mobile terminal

Country Status (1)

Country Link
CN (1) CN108536586B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433938A (en) * 2020-11-18 2021-03-02 京东数科海益信息科技有限公司 Method and device for testing application of mobile terminal
CN115695405B (en) * 2021-07-28 2024-06-18 中移物联网有限公司 Equipment control method, device, control terminal, execution terminal and service terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model
CN105159806A (en) * 2015-08-25 2015-12-16 盛趣信息技术(上海)有限公司 Terminal compatibility test system and operating method therefor
CN105204996A (en) * 2015-09-24 2015-12-30 努比亚技术有限公司 Memory leak detection device and method and terminal
CN105704253A (en) * 2016-04-26 2016-06-22 Tcl集团股份有限公司 Method for acquiring host resources and device and system thereof
CN106790129A (en) * 2016-12-27 2017-05-31 ***股份有限公司 A kind of identity authentication method and device
DE102016201940A1 (en) * 2016-02-09 2017-08-10 Volkswagen Aktiengesellschaft Method, apparatus and computer program for selecting an application
CN107222361A (en) * 2017-05-24 2017-09-29 深圳市牛鼎丰科技有限公司 Collecting method, system, computer equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424095A (en) * 2013-08-26 2015-03-18 卓望数码技术(深圳)有限公司 Automatic testing method and system of mobile terminal
CN106250307B (en) * 2016-07-20 2019-01-22 福建省农村信用社联合社 A kind of bank's mobile phone application automated testing method and system
CN106407076B (en) * 2016-09-22 2018-11-09 山东浪潮云服务信息科技有限公司 Software and hardware operation information monitoring method based on domestic CPU and operating system environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model
CN105159806A (en) * 2015-08-25 2015-12-16 盛趣信息技术(上海)有限公司 Terminal compatibility test system and operating method therefor
CN105204996A (en) * 2015-09-24 2015-12-30 努比亚技术有限公司 Memory leak detection device and method and terminal
DE102016201940A1 (en) * 2016-02-09 2017-08-10 Volkswagen Aktiengesellschaft Method, apparatus and computer program for selecting an application
CN105704253A (en) * 2016-04-26 2016-06-22 Tcl集团股份有限公司 Method for acquiring host resources and device and system thereof
CN106790129A (en) * 2016-12-27 2017-05-31 ***股份有限公司 A kind of identity authentication method and device
CN107222361A (en) * 2017-05-24 2017-09-29 深圳市牛鼎丰科技有限公司 Collecting method, system, computer equipment and medium

Also Published As

Publication number Publication date
CN108536586A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
JP7209034B2 (en) Edge computing test method, apparatus, equipment and readable storage medium
CN109302522B (en) Test method, test device, computer system, and computer medium
US10360141B2 (en) Automated application test system
CN104281520B (en) Tracking and method, the apparatus and system of debugging
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN108170494B (en) Application program starting method and starting system for intelligent terminal
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
CN108536586B (en) Information acquisition method, equipment and system of Android mobile terminal
Torres-Sánchez et al. Developing an AI IoT application with open software on a RISC-V SoC
CN116820908A (en) Locust-based performance test method, device, equipment and medium
CN116166525A (en) Method and device for generating test script
US20120110383A1 (en) Method and apparatus for off-line analyzing crashed programs
CN112416762B (en) API test method and device, equipment and computer readable storage medium
US9280627B1 (en) GUI based verification at multiple abstraction levels
CN116541270B (en) Method and device for testing adaptation verification of operating system
CN112860587A (en) UI automatic test method and device
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
CN116629173A (en) Verification method and device of network chip, computer equipment and storage medium
US10360052B1 (en) Automatic generation of models from detected hardware
US7415560B2 (en) Method of automatically monitoring computer system debugging routine
CN112506871B (en) Automated task management and log management method, system, electronic device and medium
Jiang et al. To what extent is stress testing of android TV applications automated in industrial environments?
CN114265786A (en) Automatic testing method and device, computer equipment and readable storage medium
US20140245076A1 (en) System and method for preserving critical debug data in a portable computing device
CN111309583B (en) Interface overdrawing detection method, device, medium and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant