CN106980554B - Process processing method and device - Google Patents

Process processing method and device Download PDF

Info

Publication number
CN106980554B
CN106980554B CN201710134751.6A CN201710134751A CN106980554B CN 106980554 B CN106980554 B CN 106980554B CN 201710134751 A CN201710134751 A CN 201710134751A CN 106980554 B CN106980554 B CN 106980554B
Authority
CN
China
Prior art keywords
fingerprint
request message
service
communication
fingerprinted
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.)
Expired - Fee Related
Application number
CN201710134751.6A
Other languages
Chinese (zh)
Other versions
CN106980554A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710134751.6A priority Critical patent/CN106980554B/en
Publication of CN106980554A publication Critical patent/CN106980554A/en
Application granted granted Critical
Publication of CN106980554B publication Critical patent/CN106980554B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Abstract

The embodiment of the invention discloses a process processing method and a device, wherein the method comprises the following steps: the FingerPrint Service sends a first request message of a first application program interface API to a first FingerPrint process; when receiving the request message, the first fingerprinted process establishes the mark information of the first request message, wherein the mark information comprises the identifier of the first API and the initial execution time of the operation requested by the first request message; the FingerPrint Service clears the first FingerPrint process when it is determined that the execution duration of the operation is longer than the reference execution duration of the operation requested by the first request message according to the flag information. The embodiment of the invention also discloses a corresponding process processing device. The embodiment of the invention is beneficial to improving the stability of the fingerprint function of the system of the mobile terminal.

Description

Process processing method and device
Technical Field
The invention relates to the technical field of devices, in particular to a process processing method and device.
Background
With the popularization and application of smart phones in a large number, smart phones can support more and more applications and have more and more powerful functions, and smart phones develop towards diversification and individuation and become indispensable electronic products in user life.
At present, fingerprint systems of electronic products such as mobile phones and tablet computers are divided into multiple layers, wherein a native layer of a system operation library to which a fingerprint communication fingerprint process belongs is a key layer. However, due to problems such as platform differences and security system stability, the Fingerprintd process may be continuously stuck, and in such a case, all functions of the user's mobile phone cannot be used.
Disclosure of Invention
The embodiment of the invention provides a process processing method and device, which can improve the stability of the fingerprint function of a system of a mobile terminal.
In a first aspect, an embodiment of the present invention provides a process processing method, which is applied to a mobile terminal including a FingerPrint Service and a FingerPrint process of first FingerPrint communication, where the method includes:
the changeprintservice sends a first request message of a first application program interface API to the first changeprintd process;
when receiving the request message, the first fingerprinted process establishes tag information of the first request message, wherein the tag information comprises an identifier of the first API and an initial execution time of an operation requested by the first request message;
and when the FingerPrint Service determines that the execution duration of the operation is longer than the reference execution duration of the operation according to the mark information, clearing the first FingerPrint process.
In a second aspect, an embodiment of the present invention provides a process processing apparatus, where the apparatus has a function of implementing a behavior of a mobile terminal in the above method design. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
Wherein, the process processing device comprises: the fingering Service changeprint Service and the first fingerprinted process,
the changeprintservice is configured to send a first request message of a first application program interface API to the first changeprintd process;
the first fingerprinted process is configured to, when receiving the request message, establish tag information of the first request message, where the tag information includes an identifier of the first API and a start execution time of an operation requested by the first request message;
the FingerPrint Service is further configured to clear the first FingerPrint process when it is determined that the execution duration of the operation is longer than the reference execution duration of the operation according to the flag information.
In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a processor, a memory, a transceiver, and a bus;
the processor is connected with the memory and the transceiver through the bus;
the memory stores executable program code and the processor is configured to call the executable program code in the memory to perform some or all of the steps described in any of the methods according to the first aspect of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores program code for execution by a computer device, where the program code specifically includes instructions for performing some or all of the steps described in any one of the methods according to the first aspect of the embodiments of the present invention.
It can be seen that, in the embodiment of the present invention, the FingerPrint Service of the mobile terminal sends the first request message of the first application program interface API to the first FingerPrint process, the first FingerPrint process establishes the tag information of the first request message when receiving the request message, the tag information includes the identifier of the first API and the initial execution time of the operation requested by the first request message, and the FingerPrint Service clears the first FingerPrint process when detecting that the execution duration of the operation is longer than the reference execution duration of the operation according to the tag information. Therefore, the FingerPrint Service of the mobile terminal can detect the operation execution duration of the first FingerPrint process through the mark information, and timely clear the first FingerPrint process when the timeout of the duration is detected, namely the first FingerPrint process is stuck, so that the stability of the FingerPrint function of the system of the mobile terminal is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a process processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another process handling method disclosed in an embodiment of the present invention;
FIG. 3A is a diagram illustrating an exemplary process handling apparatus according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The following describes embodiments of the present invention in detail.
Referring to fig. 1, fig. 1 is a flowchart illustrating a process processing method according to an embodiment of the present invention, which is applied to a mobile terminal including a FingerPrint Service and a FingerPrint process of first FingerPrint communication, where as shown in the figure, the process processing method includes:
s101, the Fingerprint Service sends a first request message of a first Application Program Interface (API) to the first Fingerprint process.
The android system is arranged on the mobile terminal and comprises an Application layer, a framework layer, a system running library layer (native layer) and a Linux kernel layer, wherein the FingerPrint Service is arranged on the framework layer and used for receiving a request message of an Application Program Interface (API) of FingerPrint-related Application (such as FingerPrint management entry Application, FingerPrint unlocking Application and the like) of the Application layer and forwarding the request message to a first FingerPrint process arranged on the native layer so as to realize signaling interaction with the drive of hardware such as a FingerPrint sensor in the Linux kernel layer and complete requested operation, such as FingerPrint unlocking and the like.
S102, when receiving the request message, the first fingerprinted process establishes tag information of the first request message, where the tag information includes an identifier of the first API and an initial execution time of an operation requested by the first request message.
Wherein, the initial execution time of the operation requested by the first request message in the tag information is used for the changeprint Service to determine the continuous execution duration of the operation.
S103, the Fingerprint Service clears the first Fingerprint process when the execution duration of the operation is determined to be longer than the reference execution duration of the operation according to the mark information.
It can be seen that, in the embodiment of the present invention, the FingerPrint Service of the mobile terminal sends the first request message of the first application program interface API to the first FingerPrint process, the first FingerPrint process establishes the tag information of the first request message when receiving the request message, the tag information includes the identifier of the first API and the initial execution time of the operation requested by the first request message, and the FingerPrint Service clears the first FingerPrint process when detecting that the execution duration of the operation is longer than the reference execution duration of the operation according to the tag information. Therefore, the FingerPrint Service of the mobile terminal can detect the operation execution duration of the first FingerPrint process through the mark information, and timely clear the first FingerPrint process when the timeout of the duration is detected, namely the first FingerPrint process is stuck, so that the stability of the FingerPrint function of the system of the mobile terminal is improved.
In one possible example, the mobile terminal further includes an Inti process, and after the FingerPrintService clears the FingerPrintd process, the method further includes:
and when the Inti process detects that the system of the mobile terminal does not have the first fingerprinted process, establishing a second fingerprinted process so as to recover the fingerprint correlation function in the system.
As can be seen, in this example, when detecting that there is no fingerprinted process in the current system, the Init process of the mobile terminal actively establishes a new fingerprinted process, that is, a second fingerprinted process, so as to recover the fingerprint correlation function in the system, thereby ensuring the stability of system operation.
In one possible example, after the int process establishes a second fingerprinted process to recover the fingerprint correlation function in the system, the method further includes:
the changeprint Service establishes a communication connection with the second changeprint process.
As can be seen, in this example, the FingerPrint Service of the mobile terminal establishes a communication connection between itself and the FingerPrint process after the Init process establishes the second FingerPrint process, thereby ensuring the stability of subsequent communication.
In one possible example, after the changeprint Service establishes a communication connection with the second changeprint process, the method further includes:
and when detecting a second request message of a second API, the Fingerprint Service sends the second request message to the second Fingerprint process.
In one possible example, the method further comprises:
and the first FingerPrintd process executes the operation, deletes the mark information corresponding to the request message when the operation execution is finished, and sends a response message to the fingerprintservice.
As can be seen, in this example, when the first changeprint process of the mobile terminal normally executes the completion operation, the tag information corresponding to the request message is actively deleted, so that the changeprint Service does not detect the timeout condition, and the system operation stability is ensured.
Referring to fig. 2, fig. 2 is a schematic flow chart of another process processing method according to the embodiment of the present invention, and the method is applied to a mobile terminal including a FingerPrint Service and a FingerPrint process for first FingerPrint communication, where the mobile terminal further includes an initialization Inti process, and as shown in the figure, the process processing method includes:
s201, the changeprint Service sends a first request message of a first application program interface API to the first changeprint process.
S202, when receiving the request message, the first fingerprinted process establishes tag information of the first request message, where the tag information includes an identifier of the first API and an initial execution time of an operation requested by the first request message.
S203, the Fingerprint Service clears the first Fingerprint process when the execution duration of the operation is determined to be longer than the reference execution duration of the operation according to the mark information.
S204, when the Inti process detects that the system of the mobile terminal does not have the first fingerprinted process, establishing a second fingerprinted process so as to recover the fingerprint correlation function in the system.
S205, the Fingerprint Service establishes communication connection with the second Fingerprint process.
And S206, when detecting a second request message of a second API, the Fingerprint Service sends the second request message to the second Fingerprint process.
It can be seen that, in the embodiment of the present invention, the FingerPrint Service of the mobile terminal sends the first request message of the first application program interface API to the first FingerPrint process, the first FingerPrint process establishes the tag information of the first request message when receiving the request message, the tag information includes the identifier of the first API and the initial execution time of the operation requested by the first request message, and the FingerPrint Service clears the first FingerPrint process when detecting that the execution duration of the operation is longer than the reference execution duration of the operation according to the tag information. Therefore, the FingerPrint Service of the mobile terminal can detect the operation execution duration of the first FingerPrint process through the mark information, and timely clear the first FingerPrint process when the timeout of the duration is detected, namely the first FingerPrint process is stuck, so that the stability of the FingerPrint function of the system of the mobile terminal is improved.
In addition, when detecting that no fingerprinted process exists in the current system, the Init process of the mobile terminal actively establishes a new fingerprinted process, namely a second fingerprinted process, so as to restore the fingerprint correlation function in the system, thereby ensuring the stability of system operation.
In addition, the FingerPrint Service of the mobile terminal establishes a communication connection between the mobile terminal and the FingerPrint process after the Init process establishes the second FingerPrint process, so that the stability of subsequent communication is ensured.
The above description has introduced the solution of the embodiment of the present invention mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The embodiment of the present invention may perform the division of the functional units for the mobile terminal according to the method example described above, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of using an integrated unit, fig. 3A shows a schematic structural diagram of a process processing apparatus provided in this embodiment. The process processing apparatus 300 includes: a FingerPrint Service301 and a first FingerPrint process 302, said FingerPrint Service301 and said first FingerPrint process 302 being configured to control and manage the actions of the process handling device, e.g. FingerPrint Service301 being configured to support the process handling device to perform steps S101 and S103 in fig. 1, steps S201, S203 and S205, S206 in fig. 2 and/or other processes for the techniques described herein, and first FingerPrint process 302 being configured to support the FingerPrint entry device to perform step S102 in fig. 1, step S202 in fig. 2 and/or other processes for the techniques described herein. The process handling apparatus may further comprise an initialization int process 303 for performing step S204 in fig. 2.
The FingerPrint Service301 and the FingerPrint process 302 can be invoked by a Processor or a controller of the mobile terminal, such as a Central Processing Unit (CPU), a general-purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The FingerPrint Service is configured to send a first request message of a first application program interface API to the first FingerPrint process;
the first fingerprinted process is configured to, when receiving the request message, establish tag information of the first request message, where the tag information includes an identifier of the first API and a start execution time of an operation requested by the first request message;
the FingerPrint Service is further configured to clear the first FingerPrint process when it is determined that the execution duration of the operation is longer than the reference execution duration of the operation according to the flag information.
In a possible example, the mobile terminal further includes an Inti process, and after the FingerPrintService clears the FingerPrintd process, the Inti process is further configured to establish a second FingerPrintd process when it is detected that the first FingerPrintd process does not exist in the system of the mobile terminal, so as to recover a fingerprint association function in the system.
In one possible example, after the int i process establishes the second FingerPrint process to recover the FingerPrint association function in the system, the FingerPrint Service is further configured to establish a communication connection with the second FingerPrint process.
In one possible example, after the changeprint Service establishes a communication connection with the second changeprint process, the changeprint Service is further configured to send a second request message to the second changeprint process when the second request message of the second API interface is detected.
In one possible example, the first changeprint process is further configured to execute the operation, delete the tag information corresponding to the request message when the operation is completed, and send a response message to the changeprint Service.
The process processing apparatus 300 shown in fig. 3A may be an apparatus for a mobile terminal 310 shown in fig. 3B. Referring to fig. 3B, the mobile terminal 310 includes: processor 312, transceiver 313, memory 311. Optionally, mobile terminal 310 may also include a bus 314. The processor 312 is connected to the transceiver 313 and the memory 311 via the bus 314; the bus 314 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 314 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3B, but this does not indicate only one bus or one type of bus.
As shown in fig. 4, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present invention. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 4 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 4, the handset includes: a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a Wireless Fidelity (WiFi) module 970, a processor 980, and a power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 4:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone (such as use parameters of an application, etc.), and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. In particular, the input unit 930 may include a fingerprint sensor 931 and other input devices 932. And a fingerprint sensor 931 which may collect fingerprint data of the user thereon. The input unit 930 may include other input devices 932 in addition to the fingerprint sensor 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941, and optionally, the display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 4, the fingerprint sensor 931 and the display screen 941 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint sensor 931 and the display screen 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 4 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiments shown in fig. 1 to fig. 2, the method flows of the steps may be implemented based on the structure of the mobile phone.
In the embodiment shown in fig. 3A, the functions of the units can be implemented based on the structure of the mobile phone.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the process processing methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. 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 memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A process processing method applied to a mobile terminal including a FingerPrint Service and a FingerPrint communication FingerPrint process, the method comprising:
the FingerPrint Service sends a first request message of a first Application Program Interface (API) to the first FingerPrint communication FingerPrint process; the FingerPrint Service is arranged on a framework layer and used for receiving a request message of an application program interface of a FingerPrint-associated application of an application layer and forwarding the request message to the first FingerPrint communication FingerPrint process arranged on a native layer;
when receiving the request message, the first fingerprinted process establishes tag information of the first request message, wherein the tag information comprises an identifier of the first API and a starting execution time of an operation requested by the first request message; the initial execution time of the operation requested by the first request message is used for confirming the continuous execution duration of the operation by the FingerPrintService;
and when the FingerPrint Service determines that the continuous execution duration of the operation is longer than the reference execution duration of the operation according to the mark information, clearing the FingerPrint process of the first FingerPrint communication.
2. The method as claimed in claim 1, wherein the mobile terminal further comprises initializing an int i process, and after the FingerPrint Service clears the FingerPrint process, the method further comprises:
and when the Inti process detects that the system of the mobile terminal does not have the first finger print communication fingerprinted process, establishing a second fingerprinted process to recover the finger print correlation function in the system.
3. The method as claimed in claim 2, wherein after the int process establishes a second FingerPrintd process to recover the fingerprint correlation function in the system, the method further comprises:
the changeprint Service establishes a communication connection with the second changeprint process.
4. The method as claimed in claim 3, wherein after the FingerPrint Service establishes a communication connection with the second FingerPrint process, the method further comprises:
and when detecting a second request message of a second API, the Fingerprint Service sends the second request message to the second Fingerprint process.
5. The method according to any one of claims 1-4, further comprising:
and the first fingerprinted process executes the operation, deletes the mark information corresponding to the request message when the operation is executed, and sends a response message to the fingerprinted Service.
6. A process processing apparatus, comprising: the fingering Service changeprint Service and the first fingerprinted process, wherein,
the FingerPrint Service is configured to send a first request message of a first application program interface API to the FingerPrint process for the first FingerPrint communication; the FingerPrint Service is arranged on a framework layer and used for receiving a request message of an application program interface of a FingerPrint-associated application of an application layer and forwarding the request message to the first FingerPrint communication FingerPrint process arranged on a native layer;
the first fingerprinted process is configured to, when receiving the request message, establish tag information of the first request message, where the tag information includes an identifier of the first API and a start execution time of an operation requested by the first request message; the initial execution time of the operation requested by the first request message is used for the FingerPrint Service to determine the continuous execution duration of the operation;
the FingerPrint Service is further configured to clear the FingerPrint process when it is determined that the duration of the continuous execution of the operation is longer than the reference execution duration of the operation according to the flag information.
7. The apparatus as claimed in claim 6, wherein the process processing apparatus further comprises initializing an int process, and after the FingerPrint Service clears the first FingerPrint process, the int process is further configured to establish a second FingerPrint process to recover the FingerPrint correlation function in the system when detecting that the first FingerPrint process does not exist in the system of the mobile terminal.
8. The apparatus as claimed in claim 7, wherein said FingerPrint Service is further configured to establish a communication connection with said second FingerPrint process after said int i process establishes said second FingerPrint process to recover FingerPrint correlation function in said system.
9. The apparatus as claimed in claim 8, wherein after the FingerPrint Service establishes a communication connection with the second FingerPrint process, the FingerPrint Service is further configured to send a second request message to the second FingerPrint process upon detecting the second request message of a second API interface.
10. The apparatus according to any of claims 6-9, wherein said first fingerprinted process is further configured to perform said operation, and when the execution of said operation is completed, delete the tag information corresponding to said request message, and send a response message to said fingerprinted Service.
11. A mobile terminal, comprising:
the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor is connected with the memory and the communication interface through the communication bus;
the processor is configured to call executable program code in the memory to perform the method as described in any of claims 1-5.
CN201710134751.6A 2017-03-08 2017-03-08 Process processing method and device Expired - Fee Related CN106980554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710134751.6A CN106980554B (en) 2017-03-08 2017-03-08 Process processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710134751.6A CN106980554B (en) 2017-03-08 2017-03-08 Process processing method and device

Publications (2)

Publication Number Publication Date
CN106980554A CN106980554A (en) 2017-07-25
CN106980554B true CN106980554B (en) 2020-05-26

Family

ID=59338271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710134751.6A Expired - Fee Related CN106980554B (en) 2017-03-08 2017-03-08 Process processing method and device

Country Status (1)

Country Link
CN (1) CN106980554B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809529A (en) * 2017-10-11 2018-03-16 广东欧珀移动通信有限公司 Communication control method and related product
CN107729224B (en) * 2017-10-13 2021-10-08 北京小米移动软件有限公司 Terminal performance monitoring method and device
CN107844759A (en) * 2017-10-24 2018-03-27 努比亚技术有限公司 A kind of gesture identification method, terminal and storage medium
CN113792280A (en) * 2021-09-24 2021-12-14 北京鲸鲮信息系统技术有限公司 Fingerprint access method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101416100B1 (en) * 2012-08-07 2014-07-14 인크로스 주식회사 An interface for interworking with javascripts in hybrid web applications
CN104615497B (en) * 2015-02-13 2018-09-25 广州华多网络科技有限公司 A kind of processing method and processing device of thread suspension
CN106155727B (en) * 2015-04-17 2021-04-30 腾讯科技(深圳)有限公司 Application program updating method and device and terminal
CN106155741B (en) * 2016-06-30 2019-10-08 努比亚技术有限公司 It is a kind of to avoid processing unit and method of the application program without response
CN106383743B (en) * 2016-09-27 2020-04-17 腾讯科技(深圳)有限公司 Service processing method and system

Also Published As

Publication number Publication date
CN106980554A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN107071147B (en) Parameter adjusting method and device
CN107302628B (en) Application function control method and related product
CN106528638B (en) Method for deleting backup data and mobile terminal
CN106980554B (en) Process processing method and device
WO2018161539A1 (en) Control method and apparatus for turning on screen
CN108834132B (en) Data transmission method and equipment and related medium product
CN107066264B (en) Bright screen control method and mobile terminal
CN107329778B (en) System updating method and related product
CN106469028B (en) A kind of data migration method and mobile terminal
CN107317918B (en) Parameter setting method and related product
WO2018161543A1 (en) Method and device for controlling fingerprint processing resources
CN106708633B (en) The method and mobile terminal of increasing terminal WiFi workstation mode closing velocities
CN106484326A (en) A kind of data transmission processing method and mobile terminal
CN106502824A (en) Data back up method and Cloud Server
CN107272985B (en) Notification message processing method and related product
CN105094501A (en) Display method, device and system for messages in mobile terminal
CN106534288A (en) Data transmission method and mobile terminal
CN107092819B (en) Fingerprint input inspection method and device
CN104901992A (en) Resource transfer method and device
CN106454979A (en) Network type switching method and mobile terminal
CN106897164B (en) Fingerprint input control method and device
CN106815078B (en) Memory control method and equipment
CN107038414B (en) Fingerprint template synchronization method and device
CN106686704B (en) Terminal monitoring method and mobile terminal
CN106775856B (en) Mobile terminal working mode switching method and mobile terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200526