CN111399929A - Test application starting method and device - Google Patents

Test application starting method and device Download PDF

Info

Publication number
CN111399929A
CN111399929A CN201811543426.6A CN201811543426A CN111399929A CN 111399929 A CN111399929 A CN 111399929A CN 201811543426 A CN201811543426 A CN 201811543426A CN 111399929 A CN111399929 A CN 111399929A
Authority
CN
China
Prior art keywords
test application
electronic equipment
mobile storage
starting
equipment
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.)
Pending
Application number
CN201811543426.6A
Other languages
Chinese (zh)
Inventor
徐佳宏
伍小勇
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.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
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 Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201811543426.6A priority Critical patent/CN111399929A/en
Publication of CN111399929A publication Critical patent/CN111399929A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The test application starting method and device provided by the invention are applied to electronic equipment, and after the electronic equipment is started, when the fact that the mobile storage equipment is accessed to the electronic equipment is monitored, whether an installation file and a configuration file of a test application are stored in the mobile storage equipment is detected; when detecting that the installation file and the configuration file are stored in the mobile storage device, installing the test application to the electronic device by using the installation file, and acquiring a starting entry parameter of the test application from the configuration file; then, the test application is started according to the start-up entry parameters. According to the invention, by separating the system development from the test application, the flexibility of the test application is improved, the test requirements of different manufacturers can be better adapted, the processes of automatic detection, automatic installation, automatic starting and the like of the test application are realized, manual intervention is not required, convenience and rapidness are realized, the test efficiency of the electronic equipment is improved, and the storage space of the electronic equipment is saved.

Description

Test application starting method and device
Technical Field
The invention relates to the technical field of equipment testing, in particular to a test application starting method and device.
Background
The Android system market is updated and iterated quickly, and only when the development progress is accelerated, the suitable person can survive. Some Android set-top box equipment manufacturers are separated in software and hardware, factory test applications are most likely written by manufacturers familiar with hardware, and system software is written by software companies familiar with the operating market.
The same operator may purchase the set-top box devices with the same hardware configuration at multiple hardware manufacturers at the same time, so that different factory test application requirements derive, and the operators often require uniform project software versions. In contrast, the existing solution is to fix the factory test application in the system mirror image, determine whether to enter the factory test when the system is started, and if so, start the factory test application for testing, but this method of fixing the factory test application in the system mirror image has poor flexibility of testing, and when factory test applications required by a plurality of hardware manufacturers are different, the software system has to be replaced to adapt to the corresponding hardware manufacturers first, and then the corresponding factory test application is started for testing, thereby seriously affecting the testing efficiency of the device.
Therefore, a practical and effective test application starting scheme is urgently needed at present to improve the flexibility of the test scheme and improve the test efficiency of the equipment.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for starting a test application, so as to solve the technical problem of low device testing efficiency caused by poor flexibility of the current testing scheme.
In order to achieve the purpose, the invention provides the following technical scheme:
a test application starting method is applied to electronic equipment; the method comprises the following steps:
after the electronic equipment is started, monitoring whether a mobile storage device is accessed to the electronic equipment;
when it is monitored that the mobile storage equipment is accessed to the electronic equipment, detecting whether an installation file and a configuration file of a test application are stored in the mobile storage equipment;
when the installation file and the configuration file are detected to be stored in the mobile storage device, the installation file is used for installing the test application to the electronic device, and starting entry parameters of the test application are obtained from the configuration file;
and after the test application is installed to the electronic equipment, starting the test application according to the starting entry parameter.
Preferably, the method further comprises:
after the electronic equipment is started, when the fact that the mobile storage equipment is connected to the electronic equipment is not monitored, whether a history test application is installed in the electronic equipment is detected;
and when detecting that the historical test application is installed in the electronic equipment, clearing the historical test application.
Preferably, after the test application is started according to the start-up entry parameter, the method further includes:
monitoring whether the mobile storage equipment is separated from the electronic equipment;
and when the mobile storage equipment is monitored to be separated from the electronic equipment, clearing the test application.
Preferably, the electronic device is provided with an Android operating system, and the Android operating system supports an application management service (PMS); the installing the test application to the electronic device using the installation file comprises:
silently installing the test application to the electronic device using the installation file with the application management service PMS.
Preferably, the Android operating system supports an activity management service AMS; the starting the test application according to the starting entry parameter comprises:
and starting the test application by utilizing the activity management service AMS according to the starting entry parameter.
A test application starting device is applied to electronic equipment; the device comprises:
the external equipment monitoring unit is used for monitoring whether the mobile storage equipment is accessed to the electronic equipment or not after the electronic equipment is started;
the external equipment detection unit is used for detecting whether an installation file and a configuration file of a test application are stored in the mobile storage equipment when the fact that the mobile storage equipment is connected to the electronic equipment is monitored;
the test application installation unit is used for installing the test application to the electronic equipment by using the installation file and acquiring a starting entry parameter of the test application from the configuration file when the fact that the installation file and the configuration file are stored in the mobile storage equipment is detected;
and the test application starting unit is used for starting the test application according to the starting entry parameter after the test application is installed to the electronic equipment.
Preferably, the apparatus further comprises:
the history application detection unit is used for detecting whether history test application is installed in the electronic equipment or not when the fact that the mobile storage equipment is connected to the electronic equipment is not monitored after the electronic equipment is started;
and the test application clearing unit is used for clearing the historical test application when detecting that the historical test application is installed in the electronic equipment.
Preferably, the external device monitoring unit is further configured to monitor whether the mobile storage device is detached from the electronic device after the test application is started according to the start entry parameter;
the test application clearing unit is further used for clearing the test application when it is monitored that the mobile storage device is separated from the electronic device.
Preferably, the electronic device is provided with an Android operating system, and the Android operating system supports an application management service (PMS);
the test application installing unit is specifically configured to, when it is detected that the installation file and the configuration file are stored in the mobile storage device, utilize the application management service PMS, use the installation file, install the test application to the electronic device in a silent manner, and obtain a start entry parameter of the test application from the configuration file.
Preferably, the Android operating system supports an activity management service AMS;
the test application starting unit is specifically configured to start the test application according to the start entry parameter by using the activity management system AMS after the test application is installed in the electronic device.
The technical scheme shows that the test application starting method and the test application starting device are applied to the electronic equipment, and when the mobile storage equipment is accessed into the electronic equipment, the process of detecting whether the installation file and the configuration file of the test application are stored in the mobile storage equipment is automatically executed; when detecting that the installation file and the configuration file are stored in the mobile storage device, automatically executing the process of using the installation file, installing the test application to the electronic device, and acquiring a starting entry parameter of the test application from the configuration file; after the test application is installed on the electronic equipment, the process of starting the test application according to the starting entry parameters is automatically executed, namely, as long as the mobile storage equipment storing the installation file and the configuration file of the test application is accessed into the electronic equipment, the process of installing the application and starting the application can be automatically executed, manual intervention is not needed, convenience and rapidness are realized, and the test efficiency of the electronic equipment can be improved.
In addition, the method and the device have the advantages that the installation file and the configuration file of the test application are stored in the mobile storage device in a mode of separating the system development from the test application to provide the test application for the electronic equipment, and the test application is not installed in the system of the electronic equipment in a curing mode, so that different test applications can be stored in the mobile storage device according to different test requirements, the flexibility of the test application is improved, and the test requirements of different manufacturers can be better adapted.
Moreover, the installation file and the configuration file of the test application are stored in the mobile storage device, and the test application can be automatically installed in the electronic device when the test is needed, so that the storage space of the electronic device can be saved compared with a mode that the test application is directly installed in a system of the electronic device in a solidified manner, and the method and the device have practical significance particularly for the set top box which is a device with small storage space.
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 embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a test application starting method according to an embodiment of the present invention;
FIG. 2 is another flowchart of a test application starting method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a test application starting method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for starting a test application according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a test application starting apparatus according to an embodiment of the present invention;
fig. 6 is another schematic structural diagram of a test application starting apparatus according to an embodiment of 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.
The test application starting method provided by the embodiment of the invention is applied to electronic equipment and used for starting the test application corresponding to the electronic equipment, and the test of the electronic equipment can be realized through the test application. The test applications may include various types of test applications, such as factory test applications, self-test applications, and the like. The electronic device may include various devices such as a smart phone, a tablet computer, a router, a set-top box, and the like.
Referring to fig. 1, fig. 1 is a flowchart of a test application starting method according to an embodiment of the present invention.
As shown in fig. 1, the test application starting method provided in this embodiment includes:
s110: after the electronic equipment is started, monitoring whether the mobile storage equipment is accessed to the electronic equipment.
The mobile storage device may include a special mobile storage device such as a usb disk and a mobile hard disk, or may be a mobile device with a data storage function such as a smart phone and a smart watch.
Taking the mobile storage device as a USB disk as an example, after the electronic device is started, the USB interface of the electronic device can be monitored to monitor whether the USB disk is connected to the electronic device.
S120: when the fact that the mobile storage device is connected to the electronic device is monitored, whether an installation file and a configuration file of a test application are stored in the mobile storage device is detected.
When the mobile storage device is accessed to the electronic device, file searching can be performed in the mobile storage device to determine whether the installation file and the configuration file of the test application are stored in the mobile storage device.
For example, an Android operating system is adopted by the electronic device, an installation file specification of a test application is named as "fastboot.
The method comprises the steps of detecting whether the installation files and the configuration files of the test application are stored in the mobile storage device, and using 'monitoring that the mobile storage device is connected to the electronic device' as a trigger condition, so that the automatic detection process of the test application is realized, and the mobile storage device does not need to be manually opened to search the installation files and the configuration files of the test application.
S130: when the fact that the installation file and the configuration file are stored in the mobile storage device is detected, the installation file is used for installing the test application to the electronic device, and starting entry parameters of the test application are obtained from the configuration file.
The configuration file records application entry parameters of the test application, and the application entry parameters are parameters for starting the test application through a specific application entry. The test application itself may have multiple application entries, and the configuration file usually records only the parameters of one specific application entry of the test application, and can be adapted to different test requirements through the combination of different configuration files and the same test application.
The process of installing the test application to the electronic equipment by using the installation file is characterized in that the 'detection of the installation file and the configuration file stored in the mobile storage equipment' is used as a trigger condition, so that the automatic installation process of the test application is realized, and the test application does not need to be manually installed.
S140: after the test application is installed to the electronic device, the test application is started according to the start-up entry parameters.
The test application is started according to the starting entry parameter, and the 'after the test application is installed on the electronic equipment' is used as a trigger condition, so that the automatic starting process of the test application is realized, and the test application does not need to be started manually.
The test application starting method provided by the embodiment is applied to electronic equipment, and when the mobile storage equipment is accessed to the electronic equipment, the process of detecting whether the installation file and the configuration file of the test application are stored in the mobile storage equipment is automatically executed; when detecting that the installation file and the configuration file are stored in the mobile storage device, automatically executing the process of using the installation file, installing the test application to the electronic device, and acquiring a starting entry parameter of the test application from the configuration file; after the test application is installed on the electronic equipment, the process of starting the test application according to the starting entry parameters is automatically executed, namely, as long as the mobile storage equipment storing the installation file and the configuration file of the test application is accessed into the electronic equipment, the process of installing the application and starting the application can be automatically executed, manual intervention is not needed, convenience and rapidness are realized, and the test efficiency of the electronic equipment can be improved.
In addition, the method and the device have the advantages that the installation file and the configuration file of the test application are stored in the mobile storage device in a mode of separating the system development from the test application to provide the test application for the electronic equipment, and the test application is not installed in the system of the electronic equipment in a curing mode, so that different test applications can be stored in the mobile storage device according to different test requirements, the flexibility of the test application is improved, and the test requirements of different manufacturers can be better adapted.
Moreover, the installation file and the configuration file of the test application are stored in the mobile storage device, and the test application can be automatically installed in the electronic device when the test is needed, so that the storage space of the electronic device can be saved compared with a mode that the test application is directly installed in a system of the electronic device in a solidified manner, and the method has practical significance particularly for the set top box which is a device with a small storage space.
Referring to fig. 2, fig. 2 is another flowchart of a test application starting method according to an embodiment of the present invention.
As shown in fig. 2, the test application starting method provided in this embodiment includes:
s210: after the electronic equipment is started, monitoring whether the mobile storage equipment is accessed to the electronic equipment; if yes, go to S220; if not, go to S250.
S220: detecting whether an installation file and a configuration file of the test application are stored in the mobile storage device, if so, executing S230; if not, the process returns to the step S210.
S230: and using the installation file to install the test application to the electronic equipment, and acquiring the starting entry parameters of the test application from the configuration file.
S240: after the test application is installed to the electronic device, the test application is started according to the start-up entry parameters.
S250: detecting whether the historical test application is installed in the electronic equipment, if so, executing S260; if not, returning to execute S210;
s260: the history test application is cleared and execution returns to S210.
In an example, after each installation of the test application, the electronic device may record unique identification information of the test application, such as a name of an installation file (i.e., an application package name) of the test application. After the electronic equipment is restarted, under the condition that the access of the mobile storage equipment is not detected, whether the unique identification information of the historical test application is recorded in the electronic equipment is detected, if the unique identification information of the test application is detected, the unique identification information is unloaded from the electronic equipment corresponding to the historical test application, and meanwhile, the unique identification information is removed, so that the storage space of the electronic equipment is saved.
The test application starting method provided by the embodiment is applied to the electronic equipment, after the electronic equipment is started, when the fact that the mobile storage equipment is accessed to the electronic equipment is not monitored, whether the historical test application is installed in the electronic equipment is automatically detected, and when the fact that the historical test application is installed in the electronic equipment is detected, the historical test application is removed, so that the storage space of the electronic equipment can be further saved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a test application starting method according to another embodiment of the present invention.
As shown in fig. 3, the test application starting method provided in this embodiment includes:
s310: after the electronic equipment is started, monitoring whether the mobile storage equipment is accessed to the electronic equipment.
S320: when the fact that the mobile storage device is connected to the electronic device is monitored, whether an installation file and a configuration file of a test application are stored in the mobile storage device is detected.
S330: when the fact that the installation file and the configuration file are stored in the mobile storage device is detected, the installation file is used for installing the test application to the electronic device, and starting entry parameters of the test application are obtained from the configuration file.
S340: after the test application is installed to the electronic device, the test application is started according to the start-up entry parameters.
S350: and monitoring whether the mobile storage equipment is separated from the electronic equipment.
The storage device is separated from the electronic device, which means that the mobile storage device is disconnected from the electronic device, wherein the connection between the mobile storage device and the electronic device may be a wired connection, a wireless connection, or a direct plug-in connection.
When the connection between the mobile storage device and the electronic device means that the mobile storage device is inserted into the electronic device, the detachment of the mobile storage device from the electronic device means event information generated when the mobile storage device is pulled out of the electronic device.
S360: and when the mobile storage equipment is monitored to be separated from the electronic equipment, the test application is cleared.
The test application starting method provided by the embodiment is applied to electronic equipment, and after the electronic equipment is started, whether the mobile storage equipment is accessed to the electronic equipment is monitored; when monitoring that the mobile storage equipment is connected to the electronic equipment, detecting whether an installation file and a configuration file of a test application are stored in the mobile storage equipment; when detecting that the installation file and the configuration file are stored in the mobile storage device, installing the test application to the electronic device by using the installation file, and acquiring a starting entry parameter of the test application from the configuration file; after the test application is installed on the electronic equipment, the test application is started according to the starting entry parameters, so that plug and play and disconnection and deletion of the test application are realized, the effective utilization of the storage space of the electronic equipment is fully ensured, and unnecessary waste of the storage space is avoided.
Referring to fig. 4, fig. 4 is a flowchart illustrating a test application starting method according to another embodiment of the present invention.
In this embodiment, the electronic device is provided with an Android operating system, which is an operating system based on L inux free and open source codes.
As shown in fig. 4, the test application starting method provided in this embodiment includes:
s410: after the electronic equipment is started, monitoring whether the mobile storage equipment is accessed to the electronic equipment.
S420: when the fact that the mobile storage device is connected to the electronic device is monitored, whether an installation file and a configuration file of a test application are stored in the mobile storage device is detected.
S430: when the fact that the installation files and the configuration files are stored in the mobile storage device is detected, the PMS is used for installing the test application to the electronic device in a silent mode through the installation files, and starting entry parameters of the test application are obtained from the configuration files.
The PMS (package manager service) is an application management module of the Android operating system and is responsible for installation and management of applications. And the interface provided by the PackageManagerService is utilized to install a certain application.
S440: and after the test application is installed to the electronic equipment, starting the test application by utilizing the AMS according to the starting entry parameter.
The AMS (Activity manager service) is the most core service in the Android operating system, and is mainly responsible for the operations of starting, switching, scheduling of four major components in the system, and managing and scheduling of application processes, and its responsibilities are similar to those of a process management and scheduling module in the operating system. In the present invention, the AMS acts as a launcher for the test application.
In an example, a background service may be added to the Android operating system to execute the test application starting method provided in this embodiment, and the background service may be implemented in the form of a software module, which may be named as "FastBootModule".
For example, the fastboost module monitors whether a usb disk is inserted into the electronic device, when the usb disk is inserted into the electronic device, it determines whether a fastboost.apk file and a fastboost.config file are stored in a U-packing directory, if the fastboost.apk and the fastboost.config are stored in the U-packing directory, the fastboost module calls the PMS to install the test application in a silent manner using the fastboost.apk, the fastboost module obtains a start entry parameter for starting the test application from the fastboost.config, the fastboost module calls the AMS to start the test application according to the start entry parameter without the user executing or confirming the installation process, or without the user searching for a start icon of the test application.
Specifically, the FastBootModule may be added to a system in an Android operating system to execute the test application starting method provided in this embodiment.
The test application starting method provided by the embodiment is applied to electronic equipment, the electronic equipment is provided with an Android operating system, and after the electronic equipment is started, whether a mobile storage device is accessed to the electronic equipment is monitored; when monitoring that the mobile storage equipment is connected to the electronic equipment, detecting whether an installation file and a configuration file of a test application are stored in the mobile storage equipment; when detecting that the installation file and the configuration file are stored in the mobile storage device, utilizing the PMS to use the installation file, silently installing the test application to the electronic device, and acquiring a starting entry parameter of the test application from the configuration file; after the test application is installed on the electronic equipment, the test application is started by utilizing the AMS according to the starting entry parameters, so that the test application is quickly started based on the Android operating system, manual intervention is not needed, convenience and rapidness are realized, and the test efficiency of the electronic equipment can be improved.
The embodiment of the present invention further provides a test application starting apparatus, where the test application starting apparatus is configured to implement the test application starting method provided by the embodiment of the present invention, and technical contents of the test application starting apparatus described below may be referred to in correspondence with and in correspondence with technical contents of the test application starting method described above.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a test application starting device according to an embodiment of the present invention.
As shown in fig. 5, the test application starting apparatus provided in this embodiment includes:
and the external equipment monitoring unit 10 is used for monitoring whether the mobile storage equipment is accessed to the electronic equipment or not after the electronic equipment is started.
The external device detecting unit 20 is configured to detect whether an installation file and a configuration file of a test application are stored in the mobile storage device when it is monitored that the mobile storage device is connected to the electronic device.
The test application installing unit 30 is configured to, when it is detected that the installation file and the configuration file are stored in the mobile storage device, install the test application to the electronic device using the installation file, and obtain a start entry parameter of the test application from the configuration file.
And the test application starting unit 40 is used for starting the test application according to the starting entrance parameters after the test application is installed on the electronic equipment.
The test application starting device provided by the embodiment is applied to electronic equipment, and when the mobile storage equipment is accessed to the electronic equipment, the process of detecting whether the installation file and the configuration file of the test application are stored in the mobile storage equipment is automatically executed; when detecting that the installation file and the configuration file are stored in the mobile storage device, automatically executing the process of using the installation file, installing the test application to the electronic device, and acquiring a starting entry parameter of the test application from the configuration file; after the test application is installed on the electronic equipment, the process of starting the test application according to the starting entry parameters is automatically executed, namely, as long as the mobile storage equipment storing the installation file and the configuration file of the test application is accessed into the electronic equipment, the process of installing the application and starting the application can be automatically executed, manual intervention is not needed, convenience and rapidness are realized, and the test efficiency of the electronic equipment can be improved.
In addition, the method and the device have the advantages that the installation file and the configuration file of the test application are stored in the mobile storage device in a mode of separating the system development from the test application to provide the test application for the electronic equipment, and the test application is not installed in the system of the electronic equipment in a curing mode, so that different test applications can be stored in the mobile storage device according to different test requirements, the flexibility of the test application is improved, and the test requirements of different manufacturers can be better adapted.
Moreover, the installation file and the configuration file of the test application are stored in the mobile storage device, and the test application can be automatically installed in the electronic device when the test is needed, so that the storage space of the electronic device can be saved compared with a mode that the test application is directly installed in a system of the electronic device in a solidified manner, and the method has practical significance particularly for the set top box which is a device with a small storage space.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a test application starting apparatus according to an embodiment of the present invention.
As shown in fig. 6, the test application starting apparatus provided in this embodiment may further include, in addition to the external device monitoring unit 10, the external device detecting unit 20, the test application installing unit 30, and the test application starting unit 40 in the foregoing embodiment: a history application detecting unit 50 and a test application clearing unit 60.
The history application detection unit 50 is used for detecting whether history test applications are installed in the electronic equipment or not when the fact that the mobile storage equipment is connected to the electronic equipment is not monitored after the electronic equipment is started;
a test application clearing unit 60 for clearing the history test application when it is detected that the history test application is installed in the electronic device.
In an example, the external device monitoring unit 10 is further configured to monitor whether the mobile storage device is detached from the electronic device after the test application is started according to the start entry parameter;
the test application clearing unit 60 is further configured to clear the test application when it is monitored that the mobile storage device is detached from the electronic device.
In one example, the electronic device is installed with an Android operating system, which may support a PMS (package manager service) and may also support an AMS (Activity manager service).
The test application installing unit 30 is specifically configured to, when it is detected that the installation file and the configuration file are stored in the mobile storage device, utilize the application management service PMS, use the installation file, install the test application to the electronic device in a silent manner, and obtain a start entry parameter of the test application from the configuration file.
The test application starting unit 40 is specifically configured to start the test application according to the start entry parameter by using the activity management system AMS after the test application is installed in the electronic device.
In a specific implementation process, a software module may be added in the Android operating system to serve as a test application starting device (virtual device) provided in this embodiment, where the software module may be named as "FastBootModule", and specific functions and implementations of the FastBootModule may refer to the contents in the foregoing embodiments, which are not described herein again.
The test application starting device provided by the embodiment is applied to the electronic equipment, after the electronic equipment is started, when the fact that the mobile storage equipment is accessed to the electronic equipment is not monitored, whether the historical test application is installed in the electronic equipment is automatically detected, and when the fact that the historical test application is installed in the electronic equipment is detected, the historical test application is cleared, so that the storage space of the electronic equipment can be further saved.
Secondly, the test application starting device provided by this embodiment realizes plug and play and disconnection and deletion of the test application, fully ensures effective utilization of the storage space of the electronic device, and avoids unnecessary waste of the storage space.
After the electronic equipment is started, when the fact that the installation file and the configuration file are stored in the mobile storage equipment is detected, the test application starting device utilizes the PMS to install the test application to the electronic equipment in a silent mode; and the test application is started by using the AMS according to the starting entry parameters, so that the test application is quickly started based on the Android operating system, manual intervention is not required, convenience and rapidness are realized, and the test efficiency of the electronic equipment can be improved.
Finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented in the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. With this understanding in mind, the technical solutions of the present application may be embodied in whole or in part in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present application.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific embodiments and the application range may be changed. In view of the above, the description should not be taken as limiting the application.

Claims (10)

1. A test application starting method is characterized by being applied to electronic equipment; the method comprises the following steps:
after the electronic equipment is started, monitoring whether a mobile storage device is accessed to the electronic equipment;
when it is monitored that the mobile storage equipment is accessed to the electronic equipment, detecting whether an installation file and a configuration file of a test application are stored in the mobile storage equipment;
when the installation file and the configuration file are detected to be stored in the mobile storage device, the installation file is used for installing the test application to the electronic device, and starting entry parameters of the test application are obtained from the configuration file;
and after the test application is installed to the electronic equipment, starting the test application according to the starting entry parameter.
2. The method of claim 1, wherein the method further comprises:
after the electronic equipment is started, when the fact that the mobile storage equipment is connected to the electronic equipment is not monitored, whether a history test application is installed in the electronic equipment is detected;
and when detecting that the historical test application is installed in the electronic equipment, clearing the historical test application.
3. The method of claim 1, wherein after said launching the test application according to the launch entry parameter, the method further comprises:
monitoring whether the mobile storage equipment is separated from the electronic equipment;
and when the mobile storage equipment is monitored to be separated from the electronic equipment, clearing the test application.
4. The method of claim 1, wherein the electronic device is installed with an Android operating system that supports an application management service (PMS); the installing the test application to the electronic device using the installation file comprises:
silently installing the test application to the electronic device using the installation file with the application management service PMS.
5. The method of claim 4, wherein the Android operating system supports an Activity Management Service (AMS); the starting the test application according to the starting entry parameter comprises:
and starting the test application by utilizing the activity management service AMS according to the starting entry parameter.
6. A test application starting device is characterized by being applied to electronic equipment; the device comprises:
the external equipment monitoring unit is used for monitoring whether the mobile storage equipment is accessed to the electronic equipment or not after the electronic equipment is started;
the external equipment detection unit is used for detecting whether an installation file and a configuration file of a test application are stored in the mobile storage equipment when the fact that the mobile storage equipment is connected to the electronic equipment is monitored;
the test application installation unit is used for installing the test application to the electronic equipment by using the installation file and acquiring a starting entry parameter of the test application from the configuration file when the fact that the installation file and the configuration file are stored in the mobile storage equipment is detected;
and the test application starting unit is used for starting the test application according to the starting entry parameter after the test application is installed to the electronic equipment.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the history application detection unit is used for detecting whether history test application is installed in the electronic equipment or not when the fact that the mobile storage equipment is connected to the electronic equipment is not monitored after the electronic equipment is started;
and the test application clearing unit is used for clearing the historical test application when detecting that the historical test application is installed in the electronic equipment.
8. The apparatus of claim 7,
the external equipment monitoring unit is further configured to monitor whether the mobile storage equipment is detached from the electronic equipment after the test application is started according to the start entry parameter;
the test application clearing unit is further used for clearing the test application when it is monitored that the mobile storage device is separated from the electronic device.
9. The apparatus of claim 6, wherein the electronic device is installed with an Android operating system that supports an application management service (PMS);
the test application installing unit is specifically configured to, when it is detected that the installation file and the configuration file are stored in the mobile storage device, utilize the application management service PMS, use the installation file, install the test application to the electronic device in a silent manner, and obtain a start entry parameter of the test application from the configuration file.
10. The apparatus of claim 9, wherein the Android operating system supports an Activity Management Service (AMS);
the test application starting unit is specifically configured to start the test application according to the start entry parameter by using the activity management system AMS after the test application is installed in the electronic device.
CN201811543426.6A 2018-12-17 2018-12-17 Test application starting method and device Pending CN111399929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811543426.6A CN111399929A (en) 2018-12-17 2018-12-17 Test application starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811543426.6A CN111399929A (en) 2018-12-17 2018-12-17 Test application starting method and device

Publications (1)

Publication Number Publication Date
CN111399929A true CN111399929A (en) 2020-07-10

Family

ID=71432018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811543426.6A Pending CN111399929A (en) 2018-12-17 2018-12-17 Test application starting method and device

Country Status (1)

Country Link
CN (1) CN111399929A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000382A (en) * 2020-08-26 2020-11-27 绿盟科技集团股份有限公司 Linux system starting method and device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050172279A1 (en) * 2003-06-11 2005-08-04 Cook Randall R. Portable memory storage devices with application layers
US20110225324A1 (en) * 2008-11-28 2011-09-15 Shenzhen Tcl New Technology Ltd. Apparatus and method for storing context information on an electronic device
CN102665092A (en) * 2012-03-06 2012-09-12 四川金网通电子科技有限公司 Test method for hardware of set top box
EP2790361A1 (en) * 2012-03-21 2014-10-15 Huawei Device Co., Ltd. Usb device communication method, device and system
CN104410910A (en) * 2014-12-10 2015-03-11 乐视致新电子科技(天津)有限公司 Controlling method and device installing application of storage device in intelligent television
CN104780360A (en) * 2015-03-18 2015-07-15 福建新大陆通信科技股份有限公司 Set top box debugging method and set top box debugging system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050172279A1 (en) * 2003-06-11 2005-08-04 Cook Randall R. Portable memory storage devices with application layers
US20110225324A1 (en) * 2008-11-28 2011-09-15 Shenzhen Tcl New Technology Ltd. Apparatus and method for storing context information on an electronic device
CN102665092A (en) * 2012-03-06 2012-09-12 四川金网通电子科技有限公司 Test method for hardware of set top box
EP2790361A1 (en) * 2012-03-21 2014-10-15 Huawei Device Co., Ltd. Usb device communication method, device and system
CN104410910A (en) * 2014-12-10 2015-03-11 乐视致新电子科技(天津)有限公司 Controlling method and device installing application of storage device in intelligent television
CN104780360A (en) * 2015-03-18 2015-07-15 福建新大陆通信科技股份有限公司 Set top box debugging method and set top box debugging system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000382A (en) * 2020-08-26 2020-11-27 绿盟科技集团股份有限公司 Linux system starting method and device and readable storage medium
CN112000382B (en) * 2020-08-26 2023-10-13 绿盟科技集团股份有限公司 Linux system starting method and device and readable storage medium

Similar Documents

Publication Publication Date Title
US10235149B2 (en) Preinstalled application management method for mobile terminal and mobile terminal
KR101578832B1 (en) Method for storing application data and terminal device
CN109522147A (en) A kind of method, apparatus, storage medium and the terminal of record booting exception information
CN103577567A (en) Method for uninstalling application and deleting garbage file in Android system
KR101533283B1 (en) Method and apparatus for managing binding information on bundles installed into OSGi Service Platform remotely
CN103164247B (en) The method and device that system application is repaired automatically
CN111258921B (en) Garbage memory recycling method and device, electronic equipment and storage medium
CN105786519B (en) Android device program management method and android device
CN107645546B (en) File monitoring method based on android system, intelligent device and storage medium
CN105786539B (en) File downloading method and device
CN109117153B (en) Application processing method, device, terminal and storage medium
CN111026581A (en) Application program repairing method, device, system, storage medium and electronic device
CN112099757A (en) Application keep-alive method and device
CN105426544B (en) Method and device for monitoring database state
CN111399929A (en) Test application starting method and device
CN112286559A (en) Upgrading method and device for vehicle-mounted intelligent terminal
CN111198703A (en) Version upgrading method, system, equipment and medium
CN107783837B (en) Method and device for performing storage expansion and electronic equipment
CN106294576B (en) Method and system for cleaning storage space of android system
CN114238021A (en) SDK interface positioning method, device, equipment and computer storage medium
CN112685094A (en) Service unloading method, device, equipment and computer readable storage medium
CN103473081A (en) Operant method after system updating of terminal and terminal
CN112685102A (en) Gateway plug-in hot loading method, device, equipment and medium
KR100498771B1 (en) Method and system for managing applications for a mobile terminal
CN111176959A (en) Early warning method, system and storage medium for cross-domain application server

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200710

RJ01 Rejection of invention patent application after publication