CN106775712B - Response method and device for android system starting process - Google Patents

Response method and device for android system starting process Download PDF

Info

Publication number
CN106775712B
CN106775712B CN201611155863.1A CN201611155863A CN106775712B CN 106775712 B CN106775712 B CN 106775712B CN 201611155863 A CN201611155863 A CN 201611155863A CN 106775712 B CN106775712 B CN 106775712B
Authority
CN
China
Prior art keywords
android system
starting
key
key information
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611155863.1A
Other languages
Chinese (zh)
Other versions
CN106775712A (en
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 TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology 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 TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201611155863.1A priority Critical patent/CN106775712B/en
Publication of CN106775712A publication Critical patent/CN106775712A/en
Application granted granted Critical
Publication of CN106775712B publication Critical patent/CN106775712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4401Bootstrapping
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Selective Calling Equipment (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a response method for an android system starting process, which comprises the following steps: when the android system is started, activating a preset key response process in the android system; when the key information is detected, judging whether the key information is matched with a preset key response process; and if so, controlling the key response process to respond to the key information. The invention also discloses a response device for the android system starting process. The technical scheme provided by the invention solves the technical problem that the conventional android system cannot respond to user operation in the starting process.

Description

Response method and device for android system starting process
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a response method and a response device for an android system starting process.
Background
With the wide popularization and application of intelligent equipment, the intelligent equipment carrying the android system also increasingly enters the lives of people. The startup of the android system needs a certain time, but most of the conventional intelligent devices based on the android system cannot perform operations on the devices in the startup process, so that the user experience is poor.
Disclosure of Invention
The invention mainly aims to provide a response method and a response device for an android system starting process, and aims to solve the technical problem that the existing android system starting process cannot respond to user operation.
In order to achieve the above object, the response method for the android system starting process provided by the invention comprises the following steps:
when the android system is started, activating a preset key response process in the android system;
when the key information is detected, judging whether the key information is matched with a preset key response process;
and if so, controlling the key response process to respond to the key information.
Preferably, when the android system is started, the step of activating a preset key response process in the android system includes:
when the android system is started, starting a system monitoring process, and activating a preset key response process in the android system;
and acquiring the current starting process of the android system according to the preset monitoring points in the system monitoring process.
Preferably, when the key information is detected, the step of determining whether the key information matches a preset key response process includes:
when the key information is detected, acquiring preset key information of a current starting process;
and judging whether the key information is matched with preset key information or not, and if so, judging that the key information is matched with a preset key response process.
Preferably, when the android system is started, the step of activating a preset key response process in the android system further includes:
starting a system timer, and acquiring the starting time of the current starting process of the android system;
and judging whether the starting time length is greater than the preset time length, if so, recording the starting time length of the current starting process and uploading the starting time length to a server preset by the system.
Preferably, the response method of the android system starting process further includes the following steps:
and when the android system is started, terminating the key response process and the system monitoring process.
In addition, to achieve the above object, the present invention further provides a response device for an android system startup process, including:
the activation module is used for activating a preset key response process in the android system when the android system is started;
the judging module is used for judging whether the key information is matched with a preset key response process or not when the key information is detected;
and the control module is used for controlling the key response process to respond to the key information when the key information is judged to be matched with a preset key response process.
Preferably, the activation module comprises:
the starting unit is used for starting a system monitoring process and activating a preset key response process in the android system when the android system is started;
and the starting process obtaining unit is used for obtaining the current starting process of the android system according to the monitoring points preset in the system monitoring process.
Preferably, the judging module includes:
the key information acquisition unit is used for acquiring preset key information of the current starting process when the key information is detected;
and the judging unit is used for judging whether the key information is matched with preset key information or not, and if so, judging that the key information is matched with a preset key response process.
Preferably, the activation module further comprises:
the starting duration obtaining unit is used for starting a system timer and obtaining the starting duration of the current starting process of the android system;
and the uploading unit is used for judging whether the starting time length is greater than the preset time length, and if so, recording the starting time length of the current starting process and uploading the starting time length to a server preset by the system.
Preferably, the response device of the android system startup process further includes:
and the termination module is used for terminating the key response process and the system monitoring process when the android system is started.
According to the technical scheme provided by the invention, when the android system is started, a preset key response process in the android system is activated; and when the key information input by the user is judged to be matched with the preset key response process, controlling the key response process to respond to the key information. The android system can also realize the response to the key operation of the user in the starting process, the technical problem that the user cannot operate due to abnormal starting of the android system is solved, the intelligence and the operational convenience of the android system are improved, and the user experience is further improved.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a response method in the android system startup process of the present invention;
FIG. 2 is a detailed flowchart of a step of activating a preset key response process in an android system in a second embodiment of a response method in an android system startup process according to the present invention;
FIG. 3 is a detailed flowchart of the step of determining whether the key information matches a preset key response process in the third embodiment of the response method in the android system startup process of the present invention;
FIG. 4 is a detailed flowchart of a step of activating a preset key response process in the android system in a fourth embodiment of the response method in the android system startup process of the present invention;
FIG. 5 is a flowchart illustrating a fifth embodiment of a response method in the android system startup process;
fig. 6 is a functional module schematic diagram of a first embodiment of a response apparatus in an android system startup process according to the present invention;
FIG. 7 is a detailed functional module diagram of an activation module in a second embodiment of a response apparatus in an android system startup process according to the present invention;
FIG. 8 is a schematic diagram of a detailed functional module of a determination module in a third embodiment of a response apparatus for an android system startup process according to the present invention;
fig. 9 is a detailed functional module diagram of an activation module in a fourth embodiment of a response apparatus in an android system startup process according to the present invention;
fig. 10 is a functional module schematic diagram of a fifth embodiment of a response apparatus in the android system startup process.
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 invention provides a response method of an android system starting process, and referring to fig. 1, in an embodiment, the response method of the android system starting process includes:
step S10, when the android system is started, activating a preset key response process in the android system;
it should be noted that the android system is widely applied to mobile phones, tablet computers, smart televisions and the like; in the technical scheme provided by the invention, the application of the android system to an intelligent television is taken as an example for specific explanation.
It is understood that the activation of the android system may be the triggering of a specific key of the system, or the system may be powered on, i.e., activated.
It should be noted that each time the android system is started, the update state recording program is performed again, so as to better record the starting process of the android system. The starting process of the android system comprises the starting of each application program in the system, namely, the starting of the android system comprises a plurality of starting processes, so that the state recording program is used for recording the starting state of each starting process of the android system and further monitoring each starting process of the android system. It should be noted that the system monitoring mode is implemented by a monitoring process pre-implanted into the system program.
Further, when the android system is started, a preset key response process in the android system is activated. The key response process comprises a key interception process and a special key response process, wherein the key interception process is a program code which is pre-implanted into the android native key receiving module, and when the android system receives the key information, the key information is immediately intercepted and sent to the special key response process so as to realize response or no response to the key information.
It should be noted that, because the android system runs on a java virtual machine, and the quick search special key response process is a linux program, the received key information needs to be subjected to data reduction and conversion. Data reduction is the removal of unnecessary information, combining important information in the most efficient way. For example, in a preferred embodiment of the present invention, the reduced data format is defined by a total of 4 bytes of 32-bit data:
uchar8 key value information Uchar8 repeat mark Uchar8 input device Uchar8 reserved bit
Key value information: defining a key; different key values of the keys are different;
repeat flag: whether it is a continuous key;
an input device: a device that a user can input; comprises infrared, Bluetooth, a keyboard and a key panel;
reserving a bit: and (5) reserving and expanding.
Step S20, when the key information is detected, judging whether the key information is matched with a preset key response process;
it should be noted that the key information is a key instruction input by a user, such as a power-off key, a volume key, a mute key, and the like, and the input of the key instruction may be realized through a key panel or through a key gesture. When the android system detects the key information, the key information needs to be judged first to control the key response process to execute or not execute the key information.
For example, when the current starting process of the android system is startup animation playing, if the key information at the moment is a volume up-down key or a mute key, it is determined that the key information is matched with a preset key response process; if the key information at this time is other key information, such as a video switching key, a return key, a set key, etc., it is determined that the key information is not matched with a preset key response process.
And step S30, if yes, controlling the key response process to respond to the key information.
Specifically, when it is determined that the key information matches a preset key response process, the key information is executed.
For example, when the current starting process of the android system is boot animation playing, the volume up-down key and the mute key matched with the key response process can be responded at the moment, that is, the volume up-down key and the mute key are input by the user at the moment, so that volume up-down and mute can be realized.
Further, when the key information is judged not to be matched with the preset key response process, the key response process is controlled not to respond to the key information. Similarly, taking the current starting process of the android system as the starting animation playing as an example, the corresponding functions of the video switching key, the return key and other key information input by the user at the moment cannot be realized.
It should be noted that, in the android system startup process, there may be a case of abnormal startup, and in the prior art, when the shutdown key cannot be responded, forced shutdown can be performed only by unplugging the power line. In the technical scheme provided by the invention, in the whole starting process of the android system, the shutdown key is matched with the preset key response process, namely, each starting process of the android system can respond to the shutdown key, and when any starting process is abnormally started, the starting process of the android system can be ended through the shutdown key.
According to the technical scheme, when the android system is started, a preset key response process in the android system is activated, when key information is detected, whether the key information is matched with the preset key response process is judged, and if yes, the key response process is controlled to respond to the key information. The android system can also realize the response to the key operation of the user in the starting process, the technical problem that the user cannot operate due to abnormal starting of the android system is solved, the intelligence and the operational convenience of the android system are improved, and the user experience is further improved.
Further, referring to fig. 2, according to the first embodiment, in the present embodiment, the step S10 includes:
step S11, when the android system is started, starting a system monitoring process, and activating a preset key response process in the android system;
and step S12, acquiring the current starting process of the android system according to the preset monitoring points in the system monitoring process.
It should be noted that the monitoring mode is implemented by monitoring process codes implanted into a system program in advance, when the system is started to a certain state, the codes are executed, and the codes notify the monitoring process to inform the android system of the current starting state, so as to monitor the starting process of the android system. The codes are only used for detecting the starting process of the android system, and the starting logic of the android system is not modified, so that the starting process and the starting efficiency of the android system are not influenced.
In a preferred embodiment of this embodiment, the code implanting procedure includes: the system comprises an android system starting program, an android startup video playing program, a TV playing program and various service starting programs of the android system. The monitoring program code comprises a preset monitoring point, and the monitoring point is used for acquiring the current starting process of the android system. It should be noted that the monitoring point may be a time monitoring point set according to the starting time of different starting processes, for example, if the total time from starting the android startup video playing program to completing the startup video playing program is 10 seconds, a monitoring point may be set at a time point of ten seconds, where the setting of the monitoring point is used to indicate that the startup video playing program is completed and the next startup program is started.
Further, when the android system is started, the system monitoring process is started, and a preset key response process in the android system is activated. In this embodiment, the system monitoring process may actively acquire a current starting state of the system, and may also passively receive a change of the system state, and the system monitoring process is responsible for activating a key response process preset in the android system.
In the technical scheme provided by this embodiment, it is further provided that when the android system is started, the system monitoring process is started, the current starting process of the android system is obtained according to a preset monitoring point in the system monitoring process, and then whether the obtained key information is responded is determined according to the current starting process, so that the preset key response process can more accurately respond to the key information.
Further, referring to fig. 3, according to the second embodiment, in the present embodiment, the step S20 includes:
step S21, when detecting the key information, obtaining the preset key information of the current starting process;
step S22, determining whether the key information matches preset key information, and if so, determining that the key information matches a preset key response process.
Specifically, the current starting process of the android system is obtained according to the preset monitoring points in the system monitoring process, and then the preset key information of the current starting process can be obtained. For example, when the current starting process of the android system is a startup video playing program, the preset key information in the starting process includes a volume up-down key, a mute key and a shutdown key, and other keys are not preset key information. Further, when the key information is detected, whether the key information is matched with preset key information is judged, that is, when the video playing program is started up when the process is started up currently, whether the key information is one of a volume increasing and decreasing key, a mute key and a power-off key is judged, and if yes, the key information is judged to be matched with a preset key response process.
It should be noted that the key information is implemented through a key interception process implanted into the native key receiving module of the android system, and mainly, after the android system receives the key information, the key information is immediately intercepted and sent to a special key response process, and whether the intercepted key information corresponds to the current starting process is judged, that is, whether the key information is matched with the preset key information of the current starting process is judged.
In the technical scheme provided by this embodiment, whether the detected key information matches with preset key information is judged by acquiring preset key information of a current starting process, and when the key information matches with the preset key information, it is judged that the key information matches with a preset key response process, so as to implement a response to the key information; the accuracy of the response of the preset key response process is further improved, the response to each key information is prevented, and the user experience is further improved.
Further, referring to fig. 4, based on the second embodiment or the third embodiment, in this embodiment, the step S10 includes:
step S11, when the android system is started, starting a system monitoring process, and activating a preset key response process in the android system;
step S12, acquiring the current starting process of the android system according to the preset monitoring points in the system monitoring process;
step S13, starting a system timer, and acquiring the starting duration of the current starting process of the android system;
and step S14, judging whether the starting time length is greater than the preset time length, if so, recording the starting time length of the current starting process and uploading the starting time length to a server preset by the system.
It should be noted that the android system includes a system timer, and the starting of the system timer may be triggered by a monitoring process code implanted in the android system. For example, when system monitoring is started, the system timer is triggered to be started, and further the starting duration of the current starting process of the android system can be obtained.
Further, whether the starting time length is greater than a preset time length or not is judged, and when the starting time length is greater than the preset time length, the abnormal starting of the current starting process is judged, it needs to be explained that when the android system is abnormally started, the monitoring process codes implanted by the system cannot be executed, so that whether the abnormal starting exists or not is determined through the overtime judgment of the system timer, that is, when the starting time acquired by the system timer is greater than a preset threshold value, the abnormal starting exists in the starting process is judged.
It is understood that the starting process of the android system includes a plurality of starting processes, and each starting process has a specific starting time, namely a preset threshold. In this embodiment, the android system is an android system in an intelligent television, and a total start time of the intelligent television of the android system is 26 seconds, and includes processes such as a basic system, a startup video playing system, a background server system, and the like, where the start time of the basic system is 8 seconds, and when the start time acquired by a system timer is greater than 8 seconds, it is determined that the process is abnormally started, and a start duration of a current start process is recorded and uploaded to a server preset by the system, so as to record an abnormal condition, thereby facilitating a worker to analyze and process the abnormal condition in a later stage.
In the technical scheme provided by this embodiment, a method for judging whether abnormal starting exists in the android system starting process through timing of a built-in system timer is further provided, when the starting time acquired by the system timer is greater than a preset threshold value, it is judged that abnormal starting exists in the starting process, and then abnormal starting behaviors in the android system starting process can be acquired more accurately, so that abnormal starting of the android system is recorded, subsequent analysis and improvement are facilitated, the starting process of the android system is optimized, and the intelligence of the android system operation is improved.
Further, referring to fig. 5, based on the foregoing embodiment, in this embodiment, the response method of the android system startup process includes:
step S10, when the android system is started, activating a preset key response process in the android system;
step S20, when the key information is detected, judging whether the key information is matched with a preset key response process;
and step S30, if yes, controlling the key response process to respond to the key information.
And step S40, when the android system is started, terminating the key response process and the system monitoring process.
Specifically, when the android system is started, it is indicated that the smart television enters a normal play mode at this time, the android system can normally receive key information triggered by a user and respond to the key information, and then the key response process is terminated and the system monitoring process is ended at this time.
It should be noted that the termination of the key response process is implemented by program codes embedded in a system native key receiving module, and the termination of the system monitoring mode is also implemented by monitoring program codes embedded in a system program.
In this embodiment, a step of terminating the special key processing process and ending the system monitoring mode when receiving information that the android system is successfully started is further provided, so that a response method of the android system starting process is more complete, the special case processing process and the system monitoring mode are prevented from continuing to run after the android system is started, and the situation that the android system is disordered is avoided.
Referring to fig. 6, in an embodiment, the response device for the android system startup process provided by the present invention includes:
the activation module 10 is used for activating a preset key response process in the android system when the android system is started;
it should be noted that the android system is widely applied to mobile phones, tablet computers, smart televisions and the like; in the technical scheme provided by the invention, the application of the android system to an intelligent television is taken as an example for specific explanation.
It is understood that the activation of the android system may be the triggering of a specific key of the system, or the system may be powered on, i.e., activated.
It should be noted that each time the android system is started, the update state recording program is performed again, so as to better record the starting process of the android system. The starting process of the android system comprises the starting of each application program in the system, namely, the starting of the android system comprises a plurality of starting processes, so that the state recording program is used for recording the starting state of each starting process of the android system and further monitoring each starting process of the android system. It should be noted that the system monitoring mode is implemented by a monitoring process pre-implanted into the system program.
Further, when the android system is started, the activation module 10 activates a preset key response process in the android system. The key response process comprises a key interception process and a special key response process, wherein the key interception process is a program code which is pre-implanted into the android native key receiving module, and when the android system receives the key information, the key information is immediately intercepted and sent to the special key response process so as to realize response or no response to the key information.
It should be noted that, because the android system runs on a java virtual machine, and the quick search special key response process is a linux program, the received key information needs to be subjected to data reduction and conversion. Data reduction is the removal of unnecessary information, combining important information in the most efficient way. For example, in a preferred embodiment of the present invention, the reduced data format is defined by a total of 4 bytes of 32-bit data:
uchar8 key value information Uchar8 repeat mark Uchar8 input device Uchar8 reserved bit
Key value information: defining a key; different key values of the keys are different;
repeat flag: whether it is a continuous key;
an input device: a device that a user can input; comprises infrared, Bluetooth, a keyboard and a key panel;
reserving a bit: and (5) reserving and expanding.
The judging module 20 is configured to, when the key information is detected, judge whether the key information matches a preset key response process;
it should be noted that the key information is a key instruction input by a user, such as a power-off key, a volume key, a mute key, and the like, and the input of the key instruction may be realized through a key panel or through a key gesture. When the android system detects the key information, the judgment module 20 needs to judge the key information first to control the key response process to execute or not execute the key information.
For example, when the current starting process of the android system is boot animation playing, if the key information at this time is a volume up-down key or a mute key, the determining module 20 determines that the key information matches with a preset key response process; if the key information at this time is other key information, such as a video switch key, a return key, a set key, etc., the determining module 20 determines that the key information is not matched with a preset key response process.
The control module 30 is configured to control the key response process to respond to the key information when it is determined that the key information matches a preset key response process.
Specifically, when it is determined that the key information matches the preset key response process, the control module 30 executes the key information.
For example, when the current starting process of the android system is boot animation playing, the volume up-down key and the mute key matched with the key response process can be responded at the moment, that is, the volume up-down key and the mute key are input by the user at the moment, so that volume up-down and mute can be realized.
Further, when it is determined that the key information does not match the preset key response process, the module 30 controls the key response process not to respond to the key information. Similarly, taking the current starting process of the android system as the starting animation playing as an example, the corresponding functions of the video switching key, the return key and other key information input by the user at the moment cannot be realized.
It should be noted that, in the android system startup process, there may be a case of abnormal startup, and in the prior art, when the shutdown key cannot be responded, forced shutdown can be performed only by unplugging the power line. In the technical scheme provided by the invention, in the whole starting process of the android system, the shutdown key is matched with the preset key response process, namely, each starting process of the android system can respond to the shutdown key, and when any starting process is abnormally started, the starting process of the android system can be ended through the shutdown key.
In the technical scheme provided by the invention, when the android system is started, the activation module 10 activates a preset key response process in the android system, when key information is detected, the judgment module 20 judges whether the key information is matched with the preset key response process, and if so, the control module 30 controls the key response process to respond to the key information. The android system can also realize the response to the key operation of the user in the starting process, the technical problem that the user cannot operate due to abnormal starting of the android system is solved, the intelligence and the operational convenience of the android system are improved, and the user experience is further improved.
Further, referring to fig. 7, based on the first embodiment, in this embodiment, the activation module 10 includes:
the starting unit 11 is used for starting a system monitoring process and activating a preset key response process in the android system when the android system is started;
and the starting process obtaining unit 12 is used for obtaining the current starting process of the android system according to the preset monitoring points in the system monitoring process.
It should be noted that the monitoring mode is implemented by monitoring process codes implanted into a system program in advance, when the system is started to a certain state, the codes are executed, and the codes notify the monitoring process to inform the android system of the current starting state, so as to monitor the starting process of the android system. The codes are only used for detecting the starting process of the android system, and the starting logic of the android system is not modified, so that the starting process and the starting efficiency of the android system are not influenced.
In a preferred embodiment of this embodiment, the code implanting procedure includes: the system comprises an android system starting program, an android startup video playing program, a TV playing program and various service starting programs of the android system. The monitoring program code comprises a preset monitoring point, and the monitoring point is used for acquiring the current starting process of the android system. It should be noted that the monitoring point may be a time monitoring point set according to the starting time of different starting processes, for example, if the total time from starting the android startup video playing program to completing the startup video playing program is 10 seconds, a monitoring point may be set at a time point of ten seconds, where the setting of the monitoring point is used to indicate that the startup video playing program is completed and the next startup program is started.
Further, when the android system is started, the starting unit 11 starts a system monitoring process, and activates a preset key response process in the android system. In this embodiment, the system monitoring process may actively acquire a current starting state of the system, and may also passively receive a change of the system state, and the system monitoring process is responsible for activating a key response process preset in the android system.
In the technical scheme provided by this embodiment, it is further provided that when the android system is started, the starting unit 11 starts a system monitoring process, the starting process obtaining unit 12 obtains a current starting process of the android system according to a monitoring point preset in the system monitoring process, and then judges whether to respond to the obtained key information according to the current starting process, so that the preset key response process can more accurately respond to the key information.
Further, referring to fig. 8, based on the second embodiment, in this embodiment, the determining module 20 includes:
a key information obtaining unit 21, configured to obtain preset key information of a current start process when the key information is detected;
the determining unit 22 is configured to determine whether the key information matches preset key information, and if so, determine that the key information matches a preset key response process.
Specifically, the current starting process of the android system is obtained according to a preset monitoring point in the system monitoring process, and then the key information obtaining unit 21 can obtain preset key information of the current starting process. For example, when the current starting process of the android system is a startup video playing program, the preset key information in the starting process includes a volume up-down key, a mute key and a shutdown key, and other keys are not preset key information. Further, when the key information is detected, whether the key information is matched with preset key information is judged, that is, when the video playing program is started up when the process is started up currently, whether the key information is one of a volume increasing and decreasing key, a mute key and a power-off key is judged, and if yes, the key information is judged to be matched with a preset key response process.
It should be noted that the key information is implemented through a key interception process implanted into the native key receiving module of the android system, and mainly, after the android system receives the key information, the key information is immediately intercepted and sent to a special key response process, and the determining unit 22 determines whether the intercepted key information corresponds to a current starting process, that is, whether the key information matches with preset key information of the current starting process.
In the technical solution provided in this embodiment, the preset key information of the current start-up process is acquired by the key information acquiring unit 21, the determining unit 22 determines whether the detected key information matches the preset key information, and when the key information matches the preset key information, determines that the key information matches the preset key response process, so as to implement the response to the key information; the accuracy of the response of the preset key response process is further improved, the response to each key information is prevented, and the user experience is further improved.
Further, referring to fig. 9, based on the third embodiment, in this embodiment, the activation module 10 includes:
the starting unit 11 is used for starting a system monitoring process and activating a preset key response process in the android system when the android system is started;
the starting process obtaining unit 12 is used for obtaining a current starting process of the android system according to a monitoring point preset in the system monitoring process;
the starting duration obtaining unit 13 is used for starting a system timer and obtaining the starting duration of the current starting process of the android system;
and the uploading unit 14 is used for judging whether the starting time length is greater than a preset time length, and if so, recording the starting time length of the current starting process and uploading the starting time length to a server preset by the system.
It should be noted that the android system includes a system timer, and the starting of the system timer may be triggered by a monitoring process code implanted in the android system. For example, when the starting unit 11 starts system monitoring, the starting duration obtaining unit 13 is triggered to start the system timer, so that the starting duration of the current starting process of the android system can be obtained.
Further, the uploading unit 14 determines whether the starting time is longer than a preset time, and when the starting time is longer than the preset time, it is determined that the current starting process is abnormally started, it should be noted that when the android system is abnormally started, the monitoring process code implanted by the system will not be executed, so it needs to determine whether the system is abnormally started through the timeout determination of the system timer, that is, when the starting time acquired by the system timer is longer than a preset threshold, it is determined that the starting process is abnormally started.
It is understood that the starting process of the android system includes a plurality of starting processes, and each starting process has a specific starting time, namely a preset threshold. In this embodiment, the android system is an android system in an intelligent television, and a total start time of the intelligent television of the android system is 26 seconds, and includes processes such as a basic system, a startup video playing system, a background server system, and the like, where the start time of the basic system is 8 seconds, and when the start time acquired by a system timer is greater than 8 seconds, it is determined that the process is abnormally started, and a start duration of a current start process is recorded and uploaded to a server preset by the system, so as to record an abnormal condition, thereby facilitating a worker to analyze and process the abnormal condition in a later stage.
In the technical scheme provided by this embodiment, a method for judging whether abnormal starting exists in the android system starting process through timing of a built-in system timer is further provided, when the starting time acquired by the system timer is greater than a preset threshold value, it is judged that abnormal starting exists in the starting process, and then abnormal starting behaviors in the android system starting process can be acquired more accurately, so that abnormal starting of the android system is recorded, subsequent analysis and improvement are facilitated, the starting process of the android system is optimized, and the intelligence of the android system operation is improved.
Further, referring to fig. 10, based on the foregoing embodiment, in this embodiment, the response device of the android system startup process includes:
the activation module 10 is used for activating a preset key response process in the android system when the android system is started;
the judging module 20 is configured to, when the key information is detected, judge whether the key information matches a preset key response process;
the control module 30 is configured to control the key response process to respond to the key information when it is determined that the key information matches a preset key response process.
And a termination module 40, configured to terminate the key response process and the system monitoring process when the android system is started.
Specifically, when the android system is started, which indicates that the smart television enters a normal play mode at this time, the android system can normally receive key information triggered by a user and respond to the key information, and then the termination module 40 terminates the key response process and terminates the system monitoring process at this time.
It should be noted that the termination of the key response process is implemented by program codes embedded in a system native key receiving module, and the termination of the system monitoring mode is also implemented by monitoring program codes embedded in a system program.
In this embodiment, a step of terminating the special key processing process and ending the system monitoring mode when receiving information that the android system is successfully started is further provided, so that a response method of the android system starting process is more complete, the special case processing process and the system monitoring mode are prevented from continuing to run after the android system is started, and the situation that the android system is disordered is avoided.
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 (8)

1. A response method of an android system starting process is characterized by comprising the following steps:
when the android system is started, activating a preset key response process in the android system, and acquiring a current starting process;
based on the current starting process, when key information is detected, judging whether the key information is matched with a preset key response process;
if yes, controlling the key response process to respond to the key information;
when the key information is detected, the step of judging whether the key information is matched with a preset key response process comprises the following steps:
when the key information is detected, acquiring preset key information of a current starting process;
and judging whether the key information is matched with preset key information or not, and if so, judging that the key information is matched with a preset key response process.
2. The response method of the android system starting process according to claim 1, wherein the step of activating a preset key response process in the android system when the android system is started comprises:
when the android system is started, starting a system monitoring process, and activating a preset key response process in the android system;
and acquiring the current starting process of the android system according to the preset monitoring points in the system monitoring process.
3. The response method of the android system starting process according to claim 1 or 2, wherein the step of activating a preset key response process in the android system when the android system is started further includes:
starting a system timer, and acquiring the starting time of the current starting process of the android system;
and judging whether the starting time length is greater than the preset time length, if so, recording the starting time length of the current starting process and uploading the starting time length to a server preset by the system.
4. The response method of the android system startup process of claim 3, further comprising the steps of:
and when the android system is started, terminating the key response process and the system monitoring process.
5. A response device of android system start-up process, characterized by comprising:
the activation module is used for activating a preset key response process in the android system and acquiring a current starting process when the android system is started;
the judging module is used for judging whether the key information is matched with a preset key response process or not when the key information is detected based on the current starting process;
the control module is used for controlling the key response process to respond to the key information when the key information is judged to be matched with a preset key response process;
when the key information is detected, the step of judging whether the key information is matched with a preset key response process comprises the following steps:
when the key information is detected, acquiring preset key information of a current starting process;
and judging whether the key information is matched with preset key information or not, and if so, judging that the key information is matched with a preset key response process.
6. The response means of the android system startup process of claim 5, in which the activation module comprises:
the starting unit is used for starting a system monitoring process and activating a preset key response process in the android system when the android system is started;
and the starting process obtaining unit is used for obtaining the current starting process of the android system according to the monitoring points preset in the system monitoring process.
7. The response unit of android system start-up procedure of claim 5 or 6, characterized in that the activation module further comprises:
the starting duration obtaining unit is used for starting a system timer and obtaining the starting duration of the current starting process of the android system;
and the uploading unit is used for judging whether the starting time length is greater than the preset time length, and if so, recording the starting time length of the current starting process and uploading the starting time length to a server preset by the system.
8. The android system startup process response means of claim 7, in which the android system startup process response means further comprises:
and the termination module is used for terminating the key response process and the system monitoring process when the android system is started.
CN201611155863.1A 2016-12-14 2016-12-14 Response method and device for android system starting process Active CN106775712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611155863.1A CN106775712B (en) 2016-12-14 2016-12-14 Response method and device for android system starting process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611155863.1A CN106775712B (en) 2016-12-14 2016-12-14 Response method and device for android system starting process

Publications (2)

Publication Number Publication Date
CN106775712A CN106775712A (en) 2017-05-31
CN106775712B true CN106775712B (en) 2021-02-05

Family

ID=58888870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611155863.1A Active CN106775712B (en) 2016-12-14 2016-12-14 Response method and device for android system starting process

Country Status (1)

Country Link
CN (1) CN106775712B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193712A (en) * 2017-06-01 2017-09-22 北京匡恩网络科技有限责任公司 A kind of method and apparatus for management of process
CN108153600B (en) * 2017-12-26 2021-09-28 深圳Tcl数字技术有限公司 Panel key response method, television equipment and computer readable storage medium
CN112000375B (en) * 2020-07-13 2023-12-26 深圳市智微智能软件开发有限公司 Method, device, equipment and storage medium for judging startup stage of android system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981863B (en) * 2011-09-07 2017-05-31 北京奇虎科技有限公司 The management method and device of a kind of starting up's project
TW201337759A (en) * 2012-03-05 2013-09-16 Asustek Comp Inc Electrical apparatus booting method and electrical apparatus applying the method
CN103150248B (en) * 2013-03-22 2015-03-18 腾讯科技(深圳)有限公司 Method and device for measuring and calculating startup time consumption
CN103986968A (en) * 2014-05-12 2014-08-13 南京熊猫电子股份有限公司 Method for achieving intelligent television system resetting through button
US9542208B2 (en) * 2015-05-28 2017-01-10 Verizon Patent And Licensing Inc. System and method to integrate/setup multiple branded applications in the setup wizard
CN106162279B (en) * 2016-07-01 2020-11-17 海信视像科技股份有限公司 Television remote control key response method based on android operating system and television

Also Published As

Publication number Publication date
CN106775712A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US11310730B2 (en) Method of connecting to network for home appliance, home appliance, and method of connecting to network for home appliance system
US10909981B2 (en) Mobile terminal, method of controlling same, and computer-readable storage medium
CN106775712B (en) Response method and device for android system starting process
CN107544272B (en) Terminal control method, device and storage medium
EP2506114A1 (en) Method and device for intelligent terminal reset
CN108040292B (en) Television standby starting method, television and computer readable storage medium
CN107025395B (en) Fingerprint identification method and mobile terminal
US20170064629A1 (en) Method, device, and computer-readable storage medium for awaking electronic equipment
CN104301383A (en) Upgrading method, device and upgrading equipment
CN111583926B (en) Continuous voice interaction method and device based on cooking equipment and cooking equipment
CN104050035A (en) Processing method and device for application program
CN109067416B (en) Method for realizing hot plug and start of SIM card and intelligent hardware
US20140189338A1 (en) Electronic device and method for detecting booting time period for electronic device
CN110942768A (en) Equipment wake-up test method and device, mobile terminal and storage medium
CN107623899B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN108804153A (en) Preloading method, apparatus, storage medium and the terminal of application program
CN105828140A (en) Main control equipment, controlled equipment and method for awakening controlled equipment
CN105094900A (en) Method and apparatus for downloading control program
CN107450953B (en) Method and device for updating BIOS
CN102622254B (en) Television outage disposal route and system
CN111091829B (en) Voice control method and device and electronic equipment
US20190121954A1 (en) Electronic device and method of starting the same
CN110659082A (en) Application program interface display method and device, terminal and storage medium
CN112463199A (en) System upgrading method and terminal
CN110018918B (en) Method and device for repairing terminal abnormity, mobile terminal and storage medium

Legal Events

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