CN112269582A - Electronic device, control method thereof, and computer-readable storage medium - Google Patents

Electronic device, control method thereof, and computer-readable storage medium Download PDF

Info

Publication number
CN112269582A
CN112269582A CN202011251825.2A CN202011251825A CN112269582A CN 112269582 A CN112269582 A CN 112269582A CN 202011251825 A CN202011251825 A CN 202011251825A CN 112269582 A CN112269582 A CN 112269582A
Authority
CN
China
Prior art keywords
installation
application program
electronic device
identification information
storage path
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
CN202011251825.2A
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 Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
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 Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202011251825.2A priority Critical patent/CN112269582A/en
Publication of CN112269582A publication Critical patent/CN112269582A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Abstract

The invention discloses a control method of electronic equipment, which comprises the following steps: when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path; executing installation operation on the application program to be installed according to the quantity information of the installation packages; monitoring the installation result of the application program, and controlling the electronic equipment to output identification information corresponding to the installation result, so that a user can confirm whether the application program is successfully installed according to the identification information. The invention also discloses an electronic device and a computer readable storage medium. By automatically pre-installing the application program for the electronic equipment and outputting the identification information corresponding to different installation results, the production efficiency of the electronic equipment is improved.

Description

Electronic device, control method thereof, and computer-readable storage medium
Technical Field
The present invention relates to the field of device control technologies, and in particular, to an electronic device, a control method thereof, and a computer-readable storage medium.
Background
At present, with the wide application of electronic devices and the continuous enrichment of application program types, it has become a mainstream trend in the market to pre-install a part of application programs for electronic devices (such as mobile phones, computers or televisions, etc.) before the electronic devices leave the factory. However, for an electronic device with a requirement of pre-installing an application program, in the production process thereof, the installation modes generally adopted are: the application programs to be installed are manually selected by production line workers to finish the installation of the preset application programs one by one, and the self-checking is also manually carried out after the installation. The installation and verification method has the advantages of complex operation and low efficiency, and the production efficiency is influenced for some electronic equipment without visual interfaces due to the fact that the self-checking can not be manually completed. Therefore, when the application program is installed on the electronic equipment on the production line, the production efficiency is low.
Disclosure of Invention
The present invention mainly aims to provide a control method for an electronic device, and a computer-readable storage medium, and aims to solve the problem that the electronic device in the prior art needs to be preloaded with an application program, and the production efficiency is low when the application program is preloaded at a production line end.
In order to achieve the above object, the present invention provides a method for controlling an electronic device, the method comprising:
when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path;
executing installation operation on the application program to be installed according to the quantity information of the installation packages;
monitoring the installation result of the application program, and controlling the electronic equipment to output identification information corresponding to the installation result, so that a user can confirm whether the application program is successfully installed according to the identification information.
Optionally, the step of performing an installation operation on the application program to be installed according to the number information of the installation packages includes:
if the installation packages are determined to exist according to the quantity information, the installation packages are used for sequentially executing installation operation on the application programs according to a preset sequence;
when the installation operation is executed on the plurality of application programs, if the current application program is successfully installed, the installation operation is executed on the next application program according to a preset sequence until the last application program is installed.
Optionally, when it is determined that there are multiple installation packages according to the quantity information, the step of monitoring the installation result of the application program includes:
judging whether application program installation failure exists in the plurality of application programs;
if the application program exists, determining that the monitored installation result of the application program is installation failure;
and if the application program does not exist, determining that the installation result of the monitored application program is successful in installation.
Optionally, after the step of determining that the installation result of the intercepted application program is an installation failure, the method further includes:
and if the one-key installation operation is received, responding to the one-key installation operation to install the plurality of application programs, and enabling the plurality of application programs to be installed successfully.
Optionally, before the step of executing the installation operation on the plurality of application programs in response to the one-key installation operation if the one-key installation operation is received, the method includes:
and determining a failure reason of the application program installation failure, outputting the failure reason for the user to perform corresponding failure processing according to the output failure reason, and triggering one-key installation operation after the failure processing.
Optionally, the step of controlling the electronic device to output the identification information corresponding to the installation result includes:
if the monitored installation result is successful, controlling the electronic equipment to output first identification information so that a user can confirm that the application program is successfully installed according to the first identification information;
and if the monitored installation result is that the installation fails, controlling the electronic equipment to output second identification information so that a user can confirm that the installation of the application program fails according to the second identification information.
Optionally, before the step of controlling the electronic device to output the second identification information, the method includes:
counting the number information of the mounting failure of the monitored mounting result, and judging whether the number information is less than the preset number;
if the current time is less than the preset time, acquiring an installation package of the application program to be installed from a preset storage path;
and if the second identification information is larger than or equal to the first identification information, controlling the electronic equipment to output the second identification information.
Optionally, before the step of obtaining the installation package from the preset storage path, the method includes:
taking a first storage path of the electronic equipment and a second storage path of an external storage device of the electronic equipment as preset storage paths;
if the installation package of the application program to be installed exists in the first storage path and/or the installation package of the application program to be installed exists in the second storage path, determining that the installation package of the application program to be installed exists in a preset storage path, and executing the step of obtaining the installation package from the preset storage path.
In addition, in order to achieve the above object, the present invention further provides an electronic device, which includes a memory, a processor, and a control program of the electronic device stored on the processor and operable on the processor, wherein the processor implements the steps of the control method of the electronic device when executing the control program of the electronic device.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a control program of an electronic device, which when executed by a processor, implements the steps of the control method of the electronic device as described above.
In the embodiment of the invention, when the installation package of the application program to be installed exists in the preset storage path, the installation package is obtained from the preset storage path, and the installation operation is executed on the application program to be installed according to the quantity information of the installation package, so that the low installation efficiency caused by the fact that the application program is manually selected for installation is avoided; by monitoring the installation result of the application program and controlling the electronic equipment to output the identification information corresponding to the installation result, the user can confirm whether the application program is successfully installed according to the identification information, and the low installation result confirmation efficiency caused by the fact that the user can confirm whether the application program is successfully installed only by staring at a display screen of the electronic equipment or searching an application program list is avoided. By automatically installing a single or a plurality of application programs and outputting identification information corresponding to different installation results, the production efficiency of the electronic equipment is improved.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a control method of an electronic device according to a first embodiment of the present invention;
FIG. 3 is a block diagram of an electronic device according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a control method of an electronic device according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a control method of an electronic device according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the invention is: when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path; executing installation operation on the application program to be installed according to the quantity information of the installation packages; monitoring the installation result of the application program, and controlling the electronic equipment to output identification information corresponding to the installation result, so that a user can confirm whether the application program is successfully installed according to the identification information.
At present, the scheme of pre-installing the application program for the electronic equipment at the production end is mainly that the application program is manually selected for installation, and the installation result of the application program is manually confirmed, so that a large amount of manpower is consumed, and the production efficiency is low. Therefore, the invention provides an electronic device, a control method thereof and a computer-readable storage medium, wherein when an installation package of an application program to be installed exists in a preset storage path, the installation package is acquired from the preset storage path, and installation operation is performed on the application program to be installed according to the quantity information of the installation package, so that the application programs to be installed are not required to be manually clicked in an application mall of the electronic device to select the application programs one by one, and low installation efficiency during manual installation is avoided; and then, monitoring the installation result of the application program, and controlling the electronic equipment to output identification information corresponding to the installation result, so that a user can confirm whether the application program is successfully installed according to the identification information, without staring at a display screen of the electronic equipment or searching an application program list from the electronic equipment, and the problem that the production efficiency of the electronic equipment is influenced because the user is difficult to confirm the installation result due to too limited and single identification information can be avoided. Namely, the production efficiency of the electronic equipment is improved by automatically installing the application and outputting the identification information corresponding to the installation result.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a communication bus 1002, a processor 1001, such as a CPU, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the electronic device configuration shown in fig. 1 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In the electronic device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a control program of the electronic device stored in the memory 1005 and perform the following operations:
when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path;
executing installation operation on the application program to be installed according to the quantity information of the installation packages;
monitoring an installation result of an application program, and controlling the electronic equipment to output identification information corresponding to the installation result so that a user can confirm whether the application program is successfully installed according to the identification information.
Alternatively, the processor 1001 may call a control program of the electronic device stored in the memory 1005, and further perform the following operations:
if the installation packages are determined to exist according to the quantity information, the installation packages are used for sequentially executing installation operation on the application programs according to a preset sequence;
when the installation operation is executed on the plurality of application programs, if the current application program is successfully installed, the installation operation is executed on the next application program according to a preset sequence until the last application program is installed.
Alternatively, the processor 1001 may call a control program of the electronic device stored in the memory 1005, and further perform the following operations:
judging whether application program installation failure exists in the plurality of application programs;
if the application program exists, determining that the monitored installation result of the application program is installation failure;
and if the application program does not exist, determining that the installation result of the monitored application program is successful in installation.
Alternatively, after the step of determining that the installation result of the intercepted application program is an installation failure, the processor 1001 calls the control program of the electronic device stored in the memory 1005, and performs the following operations:
and if the one-key installation operation is received, responding to the one-key installation operation to install the plurality of application programs, and enabling the plurality of application programs to be installed successfully.
Alternatively, before the step of executing the installation operation on the plurality of application programs in response to the one-key installation operation if the one-key installation operation is received, the processor 1001 may call the control program of the electronic device stored in the memory 1005, and further execute the following operations:
and determining a failure reason of the application program installation failure, outputting the failure reason for the user to perform corresponding failure processing according to the output failure reason, and triggering one-key installation operation after the failure processing.
Alternatively, the processor 1001 may call a control program of the electronic device stored in the memory 1005, and further perform the following operations:
if the monitored installation result is successful, controlling the electronic equipment to output first identification information so that a user can confirm that the application program is successfully installed according to the first identification information;
and if the monitored installation result is that the installation fails, controlling the electronic equipment to output second identification information so that a user can confirm that the installation of the application program fails according to the second identification information.
Alternatively, before the step of controlling the electronic device to output the second identification information, the processor 1001 may call a control program of the electronic device stored in the memory 1005, and further perform the following operations:
counting the number information of the mounting failure of the monitored mounting result, and judging whether the number information is less than the preset number;
if the current time is less than the preset time, acquiring an installation package of the application program to be installed from a preset storage path;
and if the second identification information is larger than or equal to the first identification information, controlling the electronic equipment to output the second identification information.
Optionally, before the step of obtaining the installation package from the preset storage path, the processor 1001 may call a control program of the electronic device stored in the memory 1005, and further perform the following operations:
taking a first storage path of the electronic equipment and a second storage path of an external storage device of the electronic equipment as preset storage paths;
if the installation package of the application program to be installed exists in the first storage path and/or the installation package of the application program to be installed exists in the second storage path, determining that the installation package of the application program to be installed exists in a preset storage path, and executing the step of obtaining the installation package from the preset storage path.
Referring to fig. 2, fig. 2 is a flowchart of a control method of an electronic device according to a first embodiment of the present invention, where in this embodiment, the control method of the electronic device includes the following steps:
step S10: when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path;
because many electronic devices can have a requirement for installing application programs for the electronic devices before leaving the factory, for example, the mobile phone can install some conventional application programs such as shopping software, a video player and a chat tool for a user before leaving the factory, so that the user can conveniently experience the performance of the mobile phone when selling the mobile phone on the one hand, and the user can conveniently and directly use the mobile phone after purchasing the mobile phone on the other hand, thereby improving the experience of the user. Therefore, for such electronic devices with the requirement of pre-installing the application program, the application program required to be installed needs to be pre-installed for different electronic devices on the production line. However, in the current mode of installing an application program to be installed for different electronic devices on a production line, the installation is usually performed manually, and after the installation, whether the application program is installed successfully is also confirmed manually by manually observing an installation result displayed on a visual interface of the electronic device, so that not only is the installation process complicated, but also each application program needs to manually stare at installation information output by the visual interface of the electronic device to judge whether the installation is completed, or whether the application program can be normally opened when entering an application list page of the electronic device to determine whether an icon of the application program exists and the icon of the application program exists, and the checking process of the installation result is also quite complicated. Such a complicated installation process and inspection process inevitably leads to the reduction of the overall production efficiency of the production line.
Therefore, in order to improve the production efficiency of the electronic device, the embodiment provides a control method of the electronic device, which can automatically install the application program without requiring a user to look at a display interface of the electronic device to confirm the installation result of the application program, can automatically detect the application program installation requirement of the electronic device, implement the installation of a single or multiple application programs, and can automatically detect the final installation state of the application program, and feed back the installation state to the user with a clear return flag, so that the user can directly judge whether the installation is successful, and smoothly enter the next production link after the installation is successful. It should be noted that the electronic device in this embodiment may be a terminal device supporting application installation, such as a mobile phone, a computer, a television, a tablet, or an intelligent screen. In a specific application example, as shown in fig. 3, the electronic device includes: (1) APP installation demand automatic checkout module: the method comprises the steps of automatically detecting whether the electronic equipment in a certain batch of orders has the requirement of installing an application program; (2) full-automatic installation module of APP: the intelligent control system is a core module for realizing the automatic installation of APP functions and is used for fully automatically installing one or more APPs and feeding back the installation result to the intelligent control system of the electronic equipment; (3) an intelligent control system: the intelligent reinstallation control method is mainly used for receiving installation result feedback, automatically starting intelligent reinstallation of installation failure according to requirements, and controlling the electronic equipment to output a set clear return mark of installation success or installation failure.
Specifically, before automatically installing an application program for an electronic device, it is required to detect whether the electronic device has an installation requirement for installing the application program. And the basis for judging whether the electronic equipment has the installation requirement can be to detect whether an installation package of the application program needing to be installed exists in the specified storage path. The storage path specified here may be a storage path inside the electronic device or a storage path of a storage device externally connected to the electronic device. That is, the first storage path of the electronic device and the second storage path of the external storage device of the electronic device may be used as the designated preset storage paths. The first storage path is a storage path which is specified in the electronic device and is used exclusively for storing an installation package of an application program to be installed, the second storage path is a storage path which is specified in an external storage device of the electronic device and is used exclusively for storing an installation package of an application program to be installed, and the second storage paths corresponding to different external storage devices may be the same or different. Therefore, whether the installation package of the application program needing to be installed exists in the first storage path of the electronic equipment and whether the installation package of the application program needing to be installed exists in the second storage path of the external storage equipment can be detected simultaneously. If the installation package of the application program to be installed exists in the first storage path, the installation package of the application program to be installed exists in the second storage path, or the installation package of the application program to be installed exists in the first storage path and the installation package of the application program to be installed exists in the second storage path, the installation package of the application program to be installed exists in the preset storage path. At this time, the intelligent control system of the electronic device obtains an installation package of the application program to be installed from the preset storage path.
Step S20: executing installation operation on the application program to be installed according to the quantity information of the installation packages;
after the installation package is obtained from the preset storage path, only one installation package may be obtained, or multiple installation packages may be obtained, and one or multiple application programs to be installed may correspond. Thus, the installation operation can be performed on the application program to be installed according to the number information of the installation packages. For example, when only one installation package is acquired, the acquired installation package is directly used to execute installation operation on an application program to be installed. When a plurality of installation packages (such as two installation packages) within a preset number range are obtained, synchronous installation can be considered; when the number of the acquired installation packages exceeds the preset number range, the problems of repeated installation and overhigh system occupancy rate need to be avoided so as to improve the installation efficiency. To avoid the problem of repeated installation, the number of installation packages may be counted first, and then the counted number of installation packages is used as a threshold value of a variable i in the installation program, where the variable i corresponds to the installation sequence of the current installation package, that is, the current installation package is the ith installation package. Meanwhile, identification information (such as file names) of the installation packages needs to be correspondingly associated with the variables i, so that the possibility of repeated installation still exists when the quantities are consistent. In this way, repeated installation of installation packages can be avoided during the installation cycle based on the variable i.
Of course, in other embodiments, different installation packages may be associated with different variables, and multiple application programs may be installed simultaneously by using multiple installation packages. Because the occupancy rate of the CPU is greatly increased when the plurality of applications are installed synchronously, and the system is likely to be jammed or crashed, in this embodiment, it is preferable to install the plurality of applications one by one according to a preset sequence.
Step S30: monitoring an installation result of an application program, and controlling the electronic equipment to output identification information corresponding to the installation result so that a user can confirm whether the application program is successfully installed according to the identification information;
when only one application program needing to be installed exists, directly taking the installation result of the application program as the installation result of the finally monitored application program; when a plurality of application programs to be installed exist, if the plurality of application programs are installed one by one according to a preset sequence, the installation result of the last application program can be used as the installation result of the application program which is finally monitored; the installation results of the plurality of application programs may be considered comprehensively, and if the installation results of the plurality of application programs are all installation success, the installation result of the application program finally detected and monitored is considered as installation success.
When the monitored installation result of the application program is successful installation, the identification information corresponding to the successful installation can be determined, and then the electronic equipment is controlled to output the identification information corresponding to the successful installation (for example, preset music with successful installation is output), so that a user can confirm that the application program is successfully installed according to the identification information; when the monitored installation result of the application program is that the installation fails, the identification information corresponding to the installation failure can be determined first, and then the electronic device is controlled to output the identification information corresponding to the installation success (for example, preset music with the installation failure is output), so that a user can confirm the installation failure of the application program according to the identification information, the reason of the installation failure can be searched in time, and a corresponding solution is provided. Of course, when the installation result of the monitored application program is successful, the next production link can be directly entered without reminding; and when the monitored installation result of the application program is that the installation fails, warning prompt is carried out by using identification information such as prompt tone and the like so as to transmit the information of the installation failure to the user in time. The identification information includes, but is not limited to, a voice prompt, a vibration prompt, a buzzer alarm prompt, an image display prompt and the like, and can be specifically set according to the application environment and requirements of a production line and the like following the production convenience principle, so as to support user-defined. Therefore, when the electronic equipment does not have a visual interface, the identification information can be output in modes of voice and the like, and personalized setting can be carried out according to the actual condition of the electronic equipment.
In addition, in some other application scenarios, if there is a need for installing an application program in the electronic device, the control method of the electronic device provided by the present embodiment may also be used to implement automatic installation of the application program and automatic detection and personalized feedback of the installation state.
In this embodiment, when an installation package of an application program to be installed exists in a preset storage path, the installation package is acquired from the preset storage path, an installation operation is performed on the application program to be installed according to the quantity information of the installation package, then, an installation result of the application program is monitored, and the electronic device is controlled to output identification information corresponding to the installation result, so that a user can confirm whether the application program is installed successfully according to the identification information. That is, by acquiring the installation package from the preset storage path, the installation of a single or multiple application programs can be realized, and the problem that the installation efficiency of the application programs is influenced because a production line worker manually selects the installation is avoided; and the electronic equipment enables a user to quickly confirm the installation state of the application program according to the mark information by outputting the mark information corresponding to the installation result without staring at a display interface of the electronic equipment and searching an application program list, so that the inspection efficiency of the installation result is prevented from being influenced, and the overall production efficiency of the electronic equipment is improved by improving the installation efficiency of the application program and the inspection efficiency of the installation result of the application program.
Based on the above embodiments, a second embodiment of the control method of an electronic apparatus of the present invention is proposed. Referring to fig. 4, fig. 4 is a flowchart of a control method of an electronic device according to a second embodiment of the present invention, where in this embodiment, the control method of the electronic device includes the following steps:
step S11: when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path;
step S12: if the installation packages are determined to exist according to the quantity information, the installation packages are used for sequentially executing installation operation on the application programs according to a preset sequence;
step S13: monitoring the installation result of the application program, and controlling the electronic equipment to output identification information corresponding to the installation result, so that a user can confirm whether the application program is successfully installed according to the identification information.
In this embodiment, when a plurality of installation packages are acquired from a preset storage path, the plurality of installation packages need to be installed in batch. In this case, in order to avoid mutual interference between different applications and influence on installation efficiency, the installation order of the plurality of installation packages may be preset, and installation may be performed in order according to the set installation order. Specifically, when a plurality of installation packages are used to sequentially execute installation operations on a plurality of application programs according to a preset sequence, one installation package corresponds to one application program, and the following steps may be performed: firstly, executing the installation operation of a first application program by using a first installation package according to a preset sequence, and when executing the installation operation of the first application program, firstly, making a delay, and then judging whether the first application program is successfully installed; and only when the first application program is successfully installed, executing the installation operation of the second application program by using the second installation package, and so on until the last application program is installed, and taking the installation result of the last application program as the installation result of the monitored application program. If there is an application installation failure in the plurality of applications, the installation is terminated directly, and the installation result that is monitored is regarded as the application installation failure. Therefore, the criterion for determining whether the application program installation failure exists in the plurality of application programs may be: if the application program installation fails in the plurality of application programs, judging that the monitored installation result of the application program is installation failure; and if the application program installation failure does not exist in the plurality of application programs, namely all the application programs are installed successfully, judging that the installation result of the monitored application program is installation success.
In an embodiment, when the monitored installation result of the application program is an installation failure, the identification information corresponding to the installation failure is output, and the electronic equipment of the current batch can be directly reworked and reinstalled manually through one-key installation operation, so that the method is simple and convenient, and the installation efficiency of the electronic equipment with the installation failure can be improved. At this time, the reason why the electronic devices in the batch failed to be installed needs to be checked first. Specifically, the failure reason for the failed installation of the batch of electronic devices may be determined first, and the failure reason may be: the installation package has problems, the external storage equipment cannot identify or the system operation itself has unexpected abnormality in the installation process, and the like. And outputting the failure reason after determining the failure reason so that the user can perform corresponding failure processing in time according to the output failure reason, such as replacing an external storage device, replacing a mainboard of the electronic device, reacquiring an installation package, and the like. After a series of failure processing, the user may trigger a one-key installation operation through a remote controller or other control device, so that the electronic device may install a plurality of application programs in response to the one-key installation operation. At this time, because the reason of the failure of the troubleshooting is checked, a plurality of application programs can be successfully installed. That is, through a one-key installation operation, the problem that the electronic equipment is reworked and reinstalled after the installation failure can be quickly solved.
In this embodiment, when an installation package of an application program to be installed exists in a preset storage path, the installation package is acquired from the preset storage path, and when it is determined that a plurality of installation packages exist according to the quantity information, the installation packages are used to sequentially execute installation operations on the application programs according to a preset sequence, and then the installation result of the application program is monitored, and the electronic device is controlled to output identification information corresponding to the installation result, so that a user can confirm whether the application program is successfully installed according to the identification information. That is, when a plurality of application programs needing to be installed exist, batch installation operation can be sequentially executed on the plurality of application programs according to a preset sequence, and in the installation process, as long as one application program fails to be installed, the electronic equipment is considered to fail to be installed, so that the phenomenon that the residence time on a production line is too long, the application program installation of other electronic equipment is influenced, and the production efficiency is reduced is avoided. And the batch installation operation is sequentially executed on the plurality of application programs according to the preset sequence, so that the production efficiency of the electronic equipment is improved.
Based on the above embodiments, a third embodiment of the control method of an electronic apparatus of the present invention is proposed. Referring to fig. 5, fig. 5 is a flowchart of a control method of an electronic device according to a third embodiment of the present invention, where in this embodiment, the control method of the electronic device includes the following steps:
step S21: when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path;
step S22: executing installation operation on the application program to be installed according to the quantity information of the installation packages;
step S23: monitoring an installation result of the application program;
step S24: if the monitored installation result is successful, controlling the electronic equipment to output first identification information so that a user can confirm that the application program is successfully installed according to the first identification information;
step S25: and if the monitored installation result is that the installation fails, controlling the electronic equipment to output second identification information in a preset mode so that a user can confirm that the installation of the application program fails according to the second identification information.
In this embodiment, in order to facilitate a user to quickly distinguish different installation results of the electronic device, different identification information is used to mark the different installation results. That is, when it is monitored that the application program is successfully installed, the electronic device may be controlled to output first identification information, so that the user can confirm that the application program is successfully installed according to the first identification information, and when it is monitored that the application program is unsuccessfully installed, the electronic device may be controlled to output second identification information, so that the user can confirm that the application program is unsuccessfully installed according to the second identification information. The first identification information and the second identification information are different marking information, for example, the marking can be distinguished through the color of a prompting lamp, for example, the first identification information can be used for lighting a green indicating lamp, and the second identification information can be used for lighting an infrared indicating lamp; the marking can also be performed through voice, for example, the first identification information can be voice output 'installation success', the second identification information can be voice output 'installation failure', and the marking can also be performed through a prompt tone, for example, the first identification information can be no prompt tone output, the second identification information can be a prompt tone output three times continuously, and the like, that is, the first identification information and the second identification information can output different identification information in the same way, or different identification information in different ways, and the marking can be specifically set according to production line requirements.
Of course, the first identification information and the second identification information may be directly output to the installation confirming device of the production line end, so that the installation confirming device can confirm the installation result. When the installation confirming device confirms that the installation result is successful, the application program can be automatically installed on the next electronic equipment without confirming the installation result according to the first identification or the second identification information by the user; when the installation confirming device confirms that the installation result is the installation failure, the current electronic equipment can be automatically conveyed to another channel for the user to confirm whether the one-key installation operation is triggered or not, and at the moment, the user does not need to confirm the installation result.
In an embodiment, before controlling the electronic device to output the second identification information, the monitored number information of the application program installation failures is counted, and then the number information is compared with a preset number, and only when the number of the installation failures reaches the preset number, the electronic device is controlled to output the second identification information to prompt the user that the application program of the electronic device is failed to be installed. And when the times of installation failure do not reach the preset times, restarting the installation program, acquiring the installation package of the application program required to be installed from the preset storage path again, executing installation operation on the application program required to be installed according to the quantity information of the installation package, and controlling the electronic equipment to output second identification information until the times of installation failure reach the preset times. The preset times correspond to the reinstallation times of the application program of the electronic device, and may be set according to the production line progress, the device operation speed, and the like, which is not specifically limited herein.
In this embodiment, the installation result of the application program is monitored, and when the monitored installation result of the application program is successful installation, the electronic device is controlled to output the first identification information, so that the user can confirm that the application program of the electronic device is successfully installed according to the first identification information, and when the monitored installation result of the application program is failed installation, the electronic device is controlled to output the second identification information in a preset manner, so that the user can confirm that the application program of the electronic device is failed installation according to the second identification information. The different installation results are identified by different identification information, so that a user can quickly distinguish the different installation results, and the production efficiency of a production line is improved.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device includes a memory, a processor, and a control program of the electronic device that is stored on the processor and is executable on the processor, and when the processor executes the control program of the electronic device, the steps of the control method of the electronic device are implemented.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a control program of an electronic device is stored, and when the control program of the electronic device is executed by a processor, the steps of the control method of the electronic device are implemented as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a television, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A control method of an electronic device, the control method of the electronic device comprising:
when an installation package of an application program to be installed exists in a preset storage path, acquiring the installation package from the preset storage path;
executing installation operation on the application program to be installed according to the quantity information of the installation packages;
monitoring the installation result of the application program, and controlling the electronic equipment to output identification information corresponding to the installation result, so that a user can confirm whether the application program is successfully installed according to the identification information.
2. The method for controlling an electronic device according to claim 1, wherein the step of performing an installation operation on an application program to be installed based on the number information of the installation packages comprises:
if the installation packages are determined to exist according to the quantity information, the installation packages are used for sequentially executing installation operation on the application programs according to a preset sequence;
when the installation operation is executed on the plurality of application programs, if the current application program is successfully installed, the installation operation is executed on the next application program according to a preset sequence until the last application program is installed.
3. The method of controlling an electronic device according to claim 2, wherein the step of listening for the installation result of the application when it is determined from the quantity information that a plurality of installation packages exist comprises:
judging whether application program installation failure exists in the plurality of application programs;
if the application program exists, determining that the monitored installation result of the application program is installation failure;
and if the application program does not exist, determining that the installation result of the monitored application program is successful in installation.
4. The method of controlling an electronic device according to claim 3, wherein after the step of determining that the installation result of the intercepted application program is an installation failure, the method further comprises:
and if the one-key installation operation is received, responding to the one-key installation operation to install the plurality of application programs, and enabling the plurality of application programs to be installed successfully.
5. The method according to claim 4, wherein, before the step of performing the installation operation on the plurality of application programs in response to the one-key installation operation if the one-key installation operation is received, the method comprises:
and determining a failure reason of the application program installation failure, outputting the failure reason for the user to perform corresponding failure processing according to the output failure reason, and triggering one-key installation operation after the failure processing.
6. The method for controlling an electronic device according to claim 1, wherein the step of controlling the electronic device to output identification information corresponding to the installation result includes:
if the monitored installation result is successful, controlling the electronic equipment to output first identification information so that a user can confirm that the application program is successfully installed according to the first identification information;
and if the monitored installation result is that the installation fails, controlling the electronic equipment to output second identification information so that a user can confirm that the installation of the application program fails according to the second identification information.
7. The method of controlling an electronic device according to claim 6, wherein the step of controlling the electronic device to output the second identification information is preceded by:
counting the number information of the mounting failure of the monitored mounting result, and judging whether the number information is less than the preset number;
if the current time is less than the preset time, acquiring an installation package of the application program to be installed from a preset storage path;
and if the second identification information is larger than or equal to the first identification information, controlling the electronic equipment to output the second identification information.
8. The method for controlling an electronic device according to claim 1, wherein the step of obtaining the installation package from the preset storage path is preceded by:
taking a first storage path of the electronic equipment and a second storage path of an external storage device of the electronic equipment as preset storage paths;
if the installation package of the application program to be installed exists in the first storage path and/or the installation package of the application program to be installed exists in the second storage path, determining that the installation package of the application program to be installed exists in a preset storage path, and executing the step of obtaining the installation package from the preset storage path.
9. An electronic device, characterized in that the electronic device comprises a memory, a processor, and a control program of the electronic device stored on the memory and executable on the processor, and the processor implements the steps of the control method of the electronic device according to any one of claims 1 to 8 when executing the control program of the electronic device.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a control program of an electronic device, which when executed by a processor implements the steps of the control method of the electronic device according to any one of claims 1-8.
CN202011251825.2A 2020-11-10 2020-11-10 Electronic device, control method thereof, and computer-readable storage medium Pending CN112269582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011251825.2A CN112269582A (en) 2020-11-10 2020-11-10 Electronic device, control method thereof, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011251825.2A CN112269582A (en) 2020-11-10 2020-11-10 Electronic device, control method thereof, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN112269582A true CN112269582A (en) 2021-01-26

Family

ID=74339156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011251825.2A Pending CN112269582A (en) 2020-11-10 2020-11-10 Electronic device, control method thereof, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112269582A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853296A (en) * 2010-05-28 2010-10-06 华为终端有限公司 Method and device for managing application program
CN103186394A (en) * 2011-12-30 2013-07-03 腾讯科技(深圳)有限公司 Method and device for installing software
CN105893081A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Application software installation device and method
CN106201484A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 The collocation method of application program, device and terminal unit
CN106406952A (en) * 2016-09-21 2017-02-15 广州爱九游信息技术有限公司 An electronic terminal and an application program management device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853296A (en) * 2010-05-28 2010-10-06 华为终端有限公司 Method and device for managing application program
CN103186394A (en) * 2011-12-30 2013-07-03 腾讯科技(深圳)有限公司 Method and device for installing software
CN105893081A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Application software installation device and method
CN106201484A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 The collocation method of application program, device and terminal unit
CN106406952A (en) * 2016-09-21 2017-02-15 广州爱九游信息技术有限公司 An electronic terminal and an application program management device and method

Similar Documents

Publication Publication Date Title
CN105302722B (en) CTS automatic testing method and device
CN104809045B (en) Running method and device of monitoring script
CN110830966B (en) Binding method of Internet of things equipment and Internet of things system
CN106126414B (en) Application software testing method and system
CN110943894A (en) Message testing method and device
CN110267215B (en) Data detection method, equipment and storage medium
CN107861765B (en) Product configuration method, apparatus, and computer-readable storage medium
CN111896884A (en) Charging detection method and device
CN115686963A (en) Server compatibility testing method and device
CN113347618B (en) Bluetooth pairing method, device and system, bluetooth intelligent terminal and storage medium
CN114760466A (en) Display device testing method and device and storage medium
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN112269582A (en) Electronic device, control method thereof, and computer-readable storage medium
CN112583617B (en) Fault determination method, server, control terminal and storage medium
CN112333798A (en) Control method and device of intelligent equipment
CN108647149B (en) Method, device and system for testing electronic equipment and storage medium
CN111277438A (en) Fault processing method, device and system
CN107807885B (en) Task information display method and device
CN115098116A (en) Simulation operation method and device of application program, terminal and storage medium
CN113794602A (en) Equipment testing method and device, terminal equipment and storage medium
WO2019000608A1 (en) Network parameter matching method, device and system technology field therefor
CN106713058B (en) Test method, device and system based on cloud card resources
CN111638888B (en) Android application package APK installation method and first terminal
CN110688126A (en) Big data platform deployment method and device
JP7334611B2 (en) telephone controller

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