Disclosure of Invention
In view of the above problems, the present invention has been made to provide a function control method and apparatus of an intelligent terminal that overcomes or at least partially solves the above problems.
According to an aspect of the present invention, there is provided a function control method of an intelligent terminal, including:
responding to trigger events of a plurality of keys on the intelligent terminal, and determining a plurality of functions to be forbidden;
disabling the determined functionality.
Optionally, the key comprises one or more of:
volume control key, power key, the key of shooing, lock screen key, function control key.
Optionally, the method further comprises:
presetting a corresponding relation between a trigger event of a key and the function; wherein, one function corresponds to the trigger event of one key, or one function corresponds to the combined trigger event of a plurality of keys;
the determining a number of functions to disable includes: and determining a plurality of functions to be forbidden according to the corresponding relation.
Optionally, the method further comprises:
displaying an entry for editing the corresponding relation in the intelligent terminal;
responding to a selection request of the entry, and displaying an interface for editing the corresponding relation;
and receiving a modification instruction of the corresponding relation through the interface, and updating the corresponding relation.
Optionally, the method further comprises:
displaying a plurality of functions which can be forbidden in the intelligent terminal in response to triggering events of a plurality of keys on the intelligent terminal;
the determining a number of functions to disable includes: in response to a select instruction for a function, a function to be disabled is determined.
Optionally, the function comprises one or more of:
patch, system application, OTA upgrade.
Optionally, the functionality of the disabling determination comprises:
prohibiting the determined function from being started in the starting process of the operating system of the intelligent terminal;
and/or the presence of a gas in the gas,
prohibiting the determined function from being loaded during the starting process of the operating system of the intelligent terminal.
Optionally, the functionality of the disabling determination comprises:
forbidding the updating content of each function in a preset time period;
and/or the presence of a gas in the gas,
and disabling the updating contents of the plurality of updating batches of each function.
Optionally, the method further comprises:
and reporting the determined function to a server.
According to another aspect of the present invention, there is provided a function control apparatus of an intelligent terminal, including:
the determining unit is suitable for responding to triggering events of a plurality of keys on the intelligent terminal and determining a plurality of functions to be forbidden;
an execution unit adapted to disable the determined function.
Optionally, the key comprises one or more of:
volume control key, power key, the key of shooing, lock screen key, function control key.
Optionally, the determining unit is adapted to preset a corresponding relationship between a trigger event of a key and the function; wherein, one function corresponds to the trigger event of one key, or one function corresponds to the combined trigger event of a plurality of keys; and is adapted to determine a number of functions to be disabled according to the correspondence.
Optionally, the apparatus further comprises:
and the editing unit is suitable for displaying an entrance for editing the corresponding relationship in the intelligent terminal, responding to a selection request of the entrance, displaying an interface for editing the corresponding relationship, receiving a modification instruction of the corresponding relationship through the interface, and updating the corresponding relationship.
Optionally, the determining unit is further adapted to display several functions that can be disabled in the smart terminal in response to triggering events of several keys on the smart terminal, and determine the function to be disabled in response to a selection instruction of the function.
Optionally, the function comprises one or more of:
patch, system application, OTA upgrade.
Optionally, the execution unit is adapted to prohibit the determined function from being started in a starting process of an operating system of the intelligent terminal; and/or, the function is suitable for prohibiting the determined function from being loaded in the starting process of the operating system of the intelligent terminal.
Optionally, the execution unit is adapted to disable the updated content of each function within a preset time period; and/or adapted to disable the update content of the plurality of update batches for each function.
Optionally, the apparatus further comprises:
and the reporting unit is suitable for reporting the determined function to a server.
According to a further aspect of the invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement a method as in any above.
According to the technical scheme, when the user presses the key or the key combination on the intelligent terminal, the functions to be forbidden can be determined and forbidden. According to the technical scheme, the function which may cause problems in the intelligent terminal is forbidden by using the entity key mode, the problem of system breakdown of the intelligent terminal in a part of scenes can be solved, a user does not need to realize the function through a specific breakdown processing program, and the problem that the breakdown processing program cannot be normally executed because the system of the intelligent terminal cannot work is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating a method for controlling functions of an intelligent terminal according to an embodiment of the present invention, where as shown in fig. 1, the method includes:
step S110, responding to the trigger events of a plurality of keys on the intelligent terminal, and determining a plurality of functions to be forbidden.
Specifically, the key may be one or more of the following: volume control key, power key, the key of shooing, lock screen key, function control key.
Taking a mobile phone on the market as an example, the mobile phone basically has a power key and a screen locking key (which are sometimes a key). The volume control keys may include a volume up key, a volume down key, a mute key, and the like. The photographing key can directly control the intelligent terminal to photograph in one part of the intelligent terminal. The function control key can be an independent key and is used for realizing the function control method of the intelligent terminal in the embodiment of the invention.
Step S120, disabling the determined function.
It can be seen that, in the method shown in fig. 1, when a user presses a key or a key combination on the smart terminal, functions to be disabled can be determined and disabled. According to the technical scheme, the function which may cause problems in the intelligent terminal is forbidden by using the entity key mode, the problem of system breakdown of the intelligent terminal in a part of scenes can be solved, a user does not need to realize the function through a specific breakdown processing program, and the problem that the breakdown processing program cannot be normally executed because the system of the intelligent terminal cannot work is solved.
In an embodiment of the present invention, the method further includes: presetting a corresponding relation between a trigger event of a key and a function; wherein, one function corresponds to the trigger event of one key, or one function corresponds to the combined trigger event of a plurality of keys; determining a number of functions to disable includes: and determining a plurality of functions to be forbidden according to the corresponding relation.
For example, a certain key is pressed, and a certain function is correspondingly disabled; or pressing some keys at the same time to correspondingly forbid another function; it is also possible that a key is pressed for a certain time, which corresponds to disabling a further function. Combinations of the above examples, and so forth, are also possible and not listed here. The functions corresponding to the trigger events of the keys or the key combination can be controlled through the preset corresponding relation, so that the disabling mode of the functions is simple and direct, the method is suitable for controlling when the system crashes, compared with the control by using a crash processing program, the method does not need a complex starting process, and the problem that the crash cannot be solved because the crash processing program is not started in time and the system is automatically restarted is avoided.
In an embodiment of the present invention, the method further includes: displaying an entry for editing the corresponding relation in the intelligent terminal; responding to a selection request of the entry, and displaying an interface for editing the corresponding relation; and receiving a modification instruction of the corresponding relation through the interface, and updating the corresponding relation.
When the system is normal, the user can enter the editing entry of the corresponding relation through the menu to modify, or add or delete some corresponding relations, for example, the user feels that it is too troublesome to disable a certain function only by pressing several keys at the same time, and can change the function into a key to disable the function, that is, the corresponding relation is modified from the trigger event of the function A-key a to the trigger event of the function A-key a + key b.
In an embodiment of the present invention, the method further includes: responding to trigger events of a plurality of keys on the intelligent terminal, and displaying a plurality of functions which can be forbidden in the intelligent terminal; determining a number of functions to disable includes: in response to a select instruction for a function, a function to be disabled is determined.
In this embodiment, another way of determining the function to be disabled is shown, that is, a program independent from the system or capable of interrupting the current operation of the system is built in, and is used to display the interactive interface, and the function that can be disabled is shown in the interactive interface and is selected by the user.
In one embodiment of the invention, the functions in the above method include one or more of: patch, system application, OTA upgrade.
For example, a certain system patch may actually cause the system to be unstable, and a user may cause the intelligent terminal to be frequently restarted after updating the system patch, so that the system patch may be disabled to solve the problem; for example, a certain system application may also cause the same problem after being updated, and at this time, the system application may be disabled first, and then the operation such as rollback may be performed after the system can operate stably. OTA upgrades are upgrades made using Over-the-Air Technology (Over-the-Air Technology) in which system crashes may result if a user improperly powers down the mobile terminal, and so OTA upgrades may also be disabled to restore the system to a pre-upgrade state.
In an embodiment of the present invention, the method wherein disabling the determined function includes: prohibiting the determined function from being started in the starting process of the operating system of the intelligent terminal; and/or prohibiting the determined function from being loaded in the starting process of the operating system of the intelligent terminal.
Because the intelligent terminal may be restarted when the system crashes, it is difficult to distinguish which process of loading, starting and closing the system is currently in, so that the triggering time of the key can be not limited in the embodiment of the invention, and only the user needs to press the corresponding key. The specific disabling process is to prohibit the loading or starting of the function in the starting process of the operating system, so that the operating system after the starting process cannot crash due to the functions unless the corresponding functions are manually triggered by a user, and the problem is solved.
Taking the android system as an example, before the android system is loaded, the intelligent terminal enters the BootLoader system first, and then enters the android system, if the disabled function is a patch, the patch is disabled in the starting process of the android system, and the disabled function is not executed in the BootLoader.
In an embodiment of the present invention, the method wherein disabling the determined function includes: forbidding the updating content of each function in a preset time period; and/or forbidding the updating contents of the plurality of updating batches of each function.
For example, all patches that were updated in the last month are disabled, or patches that were updated last time are disabled. Generally, the crash of the system is often generated after the latest patch is printed, that is, the latest updated patch is disabled, but the system instability caused by the utilization of the existing vulnerability of the previous patch cannot be ignored, so that the system crash can be set according to specific situations.
In an embodiment of the present invention, the method further includes: and reporting the determined function to a server.
Reporting to the server can enable developers to quickly know technical problems and solve the technical problems, and the specific uploading opportunity can be when the intelligent terminal is in a networking state or in a wifi state after the intelligent terminal stably operates.
Fig. 2 is a schematic structural diagram illustrating a function control apparatus of an intelligent terminal according to an embodiment of the present invention, and as shown in fig. 2, the function control apparatus 200 of the intelligent terminal includes:
the determining unit 210 is adapted to determine a number of functions to be disabled in response to triggering events of a number of keys on the smart terminal.
An execution unit 220 adapted to disable the determined functionality.
It can be seen that, with the apparatus shown in fig. 2, through the mutual cooperation of the units, when a user presses a key or a key combination on the smart terminal, the functions to be disabled can be determined, and the functions can be disabled. According to the technical scheme, the function which may cause problems in the intelligent terminal is forbidden by using the entity key mode, the problem of system breakdown of the intelligent terminal in a part of scenes can be solved, a user does not need to realize the function through a specific breakdown processing program, and the problem that the breakdown processing program cannot be normally executed because the system of the intelligent terminal cannot work is solved.
In an embodiment of the present invention, in the above apparatus, the key includes one or more of the following: volume control key, power key, the key of shooing, lock screen key, function control key.
In an embodiment of the present invention, in the above apparatus, the determining unit 210 is adapted to preset a corresponding relationship between a trigger event of a key and a function; wherein, one function corresponds to the trigger event of one key, or one function corresponds to the combined trigger event of a plurality of keys; and is adapted to determine a number of functions to be disabled according to the correspondence.
In an embodiment of the present invention, the apparatus further includes: and an editing unit (not shown) adapted to display an entry for editing the corresponding relationship in the intelligent terminal, display an interface for editing the corresponding relationship in response to a selection request for the entry, receive a modification instruction for the corresponding relationship through the interface, and update the corresponding relationship.
In an embodiment of the present invention, in the above apparatus, the determining unit 210 is further adapted to display several functions that can be disabled in the smart terminal in response to triggering events of several keys on the smart terminal, and determine the function to be disabled in response to a selection instruction of the function.
In one embodiment of the invention, the functions in the above apparatus include one or more of: patch, system application, OTA upgrade.
In an embodiment of the present invention, in the above apparatus, the executing unit 220 is adapted to prohibit the determined function from being started during a starting process of an operating system of the intelligent terminal; and/or is adapted to prohibit the determined functionality from being loaded during a start-up of an operating system of the smart terminal.
In an embodiment of the present invention, in the above apparatus, the execution unit 220 is adapted to disable the updated content of each function within a preset time period; and/or adapted to disable the update content of the plurality of update batches for each function.
In an embodiment of the present invention, the apparatus further includes: and a reporting unit (not shown) adapted to report the determined function to the server.
It should be noted that, for the specific implementation of each apparatus embodiment, reference may be made to the specific implementation of the corresponding method embodiment, which is not described herein again.
In summary, according to the technical solution of the present invention, when a user presses a key or a key combination on an intelligent terminal, the functions to be disabled can be determined, and the functions can be disabled. According to the technical scheme, the function which may cause problems in the intelligent terminal is forbidden by using the entity key mode, the problem of system breakdown of the intelligent terminal in a part of scenes can be solved, a user does not need to realize the function through a specific breakdown processing program, and the problem that the breakdown processing program cannot be normally executed because the system of the intelligent terminal cannot work is solved.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the function control apparatus of the intelligent terminal according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
Fig. 3 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. The computer readable storage medium 300 stores computer readable program code 310 for performing the steps of the method according to the invention, such as program code readable by a processor of an electronic device, which when executed by the electronic device causes the electronic device to perform the steps of the method described above. The program code may be compressed in a suitable form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiment of the invention discloses A1 and a function control method of an intelligent terminal, which comprises the following steps:
responding to trigger events of a plurality of keys on the intelligent terminal, and determining a plurality of functions to be forbidden;
disabling the determined functionality.
A2, the method of A1, wherein the key comprises one or more of:
volume control key, power key, the key of shooing, lock screen key, function control key.
A3, the method of a1, wherein the method further comprises:
presetting a corresponding relation between a trigger event of a key and the function; wherein, one function corresponds to the trigger event of one key, or one function corresponds to the combined trigger event of a plurality of keys;
the determining a number of functions to disable includes: and determining a plurality of functions to be forbidden according to the corresponding relation.
A4, the method of A3, wherein the method further comprises:
displaying an entry for editing the corresponding relation in the intelligent terminal;
responding to a selection request of the entry, and displaying an interface for editing the corresponding relation;
and receiving a modification instruction of the corresponding relation through the interface, and updating the corresponding relation.
A5, the method of a1, wherein the method further comprises:
displaying a plurality of functions which can be forbidden in the intelligent terminal in response to triggering events of a plurality of keys on the intelligent terminal;
the determining a number of functions to disable includes: in response to a select instruction for a function, a function to be disabled is determined.
A6, the method of A1, wherein the function comprises one or more of:
patch, system application, OTA upgrade.
A7, the method of A1, wherein the disabling the determined functionality comprises:
prohibiting the determined function from being started in the starting process of the operating system of the intelligent terminal;
and/or the presence of a gas in the gas,
prohibiting the determined function from being loaded during the starting process of the operating system of the intelligent terminal.
A8, the method of A1, wherein the disabling the determined functionality comprises:
forbidding the updating content of each function in a preset time period;
and/or the presence of a gas in the gas,
and disabling the updating contents of the plurality of updating batches of each function.
A9, the method of a1, wherein the method further comprises:
and reporting the determined function to a server.
The embodiment of the invention also discloses B10, a function control device of the intelligent terminal, which comprises:
the determining unit is suitable for responding to triggering events of a plurality of keys on the intelligent terminal and determining a plurality of functions to be forbidden;
an execution unit adapted to disable the determined function.
B11, the device of B10, wherein the keys include one or more of:
volume control key, power key, the key of shooing, lock screen key, function control key.
B12, the device of B10, wherein,
the determining unit is suitable for presetting the corresponding relation between the triggering event of the key and the function; wherein, one function corresponds to the trigger event of one key, or one function corresponds to the combined trigger event of a plurality of keys; and is adapted to determine a number of functions to be disabled according to the correspondence.
B13, the apparatus of B12, wherein the apparatus further comprises:
and the editing unit is suitable for displaying an entrance for editing the corresponding relationship in the intelligent terminal, responding to a selection request of the entrance, displaying an interface for editing the corresponding relationship, receiving a modification instruction of the corresponding relationship through the interface, and updating the corresponding relationship.
B14, the device of B10, wherein,
the determining unit is further adapted to display a plurality of functions which can be disabled in the intelligent terminal in response to triggering events of a plurality of keys on the intelligent terminal, and determine the functions to be disabled in response to a selection instruction of the functions.
B15, the apparatus of B10, wherein the functions include one or more of:
patch, system application, OTA upgrade.
B16, the device of B10, wherein,
the execution unit is suitable for forbidding the determined function from being started in the starting process of the operating system of the intelligent terminal; and/or, the function is suitable for prohibiting the determined function from being loaded in the starting process of the operating system of the intelligent terminal.
B17, the device of B10, wherein,
the execution unit is suitable for forbidding the updated content of each function in a preset time period; and/or adapted to disable the update content of the plurality of update batches for each function.
B18, the apparatus of B10, wherein the apparatus further comprises:
and the reporting unit is suitable for reporting the determined function to a server.
Embodiments of the present invention also disclose C19, a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method as described in any of a1-a 9.