Dual-system fingerprint service method and device

By embedding the fingerprint recognition component in the ROOT domain and sharing it in dual-system terminal devices, the resource contention problem is solved, the system stability and switching efficiency are improved, and memory space is saved.

CN122090490APending Publication Date: 2026-05-26CHENGDU TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHENGDU TD TECH LTD
Filing Date
2024-11-26
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In dual-system terminal devices, the uniqueness of the fingerprint hardware causes resource competition between the two operating systems when using the fingerprint function, resulting in system instability and low switching efficiency.

Method used

The fingerprint recognition component is moved to the ROOT domain of the terminal device, allowing two systems to share the component. It continuously occupies the fingerprint hardware resources after booting and does not release the resources. When switching systems, a fast switch is achieved by changing the reference relationship.

Benefits of technology

This avoids resource contention, improves system stability and switching efficiency, saves memory space, and increases resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122090490A_ABST
    Figure CN122090490A_ABST
Patent Text Reader

Abstract

The invention provides a dual-system fingerprint service method and device, and is applied to the technical field of fingerprint identification, the dual-system fingerprint service method is applied to a terminal device, the terminal device is provided with a first system and a second system, and the ROOT domain of the terminal device is configured with a fingerprint identification component. The fingerprint identification component is associated with a fingerprint hardware resource of the terminal equipment, and the first system and the second system share the fingerprint identification component; the method comprises the following steps: when a foreground system monitors a fingerprint operation request, the foreground system calls a fingerprint identification component to respond to the fingerprint operation request. The system stability and the system switching efficiency of the terminal equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of fingerprint recognition technology, and in particular to a dual-system fingerprint service method and device. Background Technology

[0002] Fingerprint recognition technology is a technology that identifies individuals based on the unique texture features on the surface of the finger. It is currently widely used in mobile terminal screen unlocking, application encryption, and online payment.

[0003] Currently, for dual-system terminals, which are mobile terminals with two operating systems, the uniqueness of fingerprint hardware leads to resource competition between the two operating systems when using the fingerprint function. This competition can not only cause system instability but also result in low system switching efficiency. Summary of the Invention

[0004] This application provides a dual-system fingerprint service method and device, which can improve the system stability and system switching efficiency of dual-system terminal devices.

[0005] In a first aspect, this application provides a dual-system fingerprint service method applied in a terminal device. The terminal device has a first system and a second system. The ROOT domain of the terminal device is configured with a fingerprint recognition component, which is associated with the fingerprint hardware resources of the terminal device. The first system and the second system share the fingerprint recognition component. The method includes:

[0006] When the front-end system detects a fingerprint operation request, it calls the fingerprint recognition component to respond to the fingerprint operation request; the aforementioned front-end system is the system running in the foreground of the first system and the second system.

[0007] In some embodiments, the above method further includes:

[0008] The front-end system responds to the system switching command by severing its reference to the fingerprint recognition component;

[0009] When the background system switches to the foreground according to the system switching command, the background system establishes a reference relationship with the fingerprint recognition component; the background system is the system in the background of the first system and the second system.

[0010] In some embodiments, the above method further includes:

[0011] When the terminal device is detected to be powered on, the fingerprint recognition component is started and run; the fingerprint recognition component occupies fingerprint hardware resources during operation.

[0012] In some implementations, the fingerprint hardware resources mentioned above include a fingerprint sensor and a corresponding driver for the fingerprint sensor.

[0013] In some implementations, the fingerprint recognition component includes a fingerprint hardware abstraction layer (HAL) and a fingerprint trusted execution environment (TEE) service.

[0014] In some implementations, the fingerprint operation request includes any one of the following:

[0015] Fingerprint enrollment request, fingerprint deletion request, fingerprint recognition request, system switch request, fingerprint unlock request.

[0016] Secondly, this application provides a dual-system fingerprint service device applied in a terminal device. The terminal device has a first system and a second system. The ROOT domain of the terminal device is configured with a fingerprint recognition component, which is associated with the fingerprint hardware resources of the terminal device. The first system and the second system share the fingerprint recognition component. The dual-system fingerprint service device includes a processing unit, which is used for:

[0017] When the front-end system detects a fingerprint operation request, it calls the aforementioned fingerprint recognition component to respond to the fingerprint operation request; the aforementioned front-end system is the system in the foreground of the first system and the second system.

[0018] Thirdly, this application provides a terminal device, which includes a processor and a memory.

[0019] The processor and the memory are connected, the memory being used to store a computer program including program instructions, and the processor being used to invoke the program instructions to implement the dual-system fingerprint service method as provided in the first aspect.

[0020] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the dual-system fingerprint service method as provided in the first aspect.

[0021] Fifthly, this application provides a computer program product, including a computer program that, when run by a processor, implements the dual-system fingerprint service method as provided in the first aspect.

[0022] The dual-system fingerprint service method and device provided in this application embodiment enable the fingerprint recognition component to be started in the ROOT domain. By sharing the fingerprint recognition component, the two systems on the terminal device can avoid resource contention and improve system stability. In addition, the fingerprint recognition component can occupy fingerprint hardware resources continuously without releasing them after the terminal device is powered on. When switching between dual systems, the system can be switched by switching the reference to the fingerprint recognition component, which can effectively improve the system switching efficiency. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of the architecture of a terminal device provided in the embodiments of this application;

[0024] Figure 2 This is a flowchart illustrating a dual-system fingerprint service method provided in an embodiment of this application;

[0025] Figure 3 This is another schematic diagram of the architecture of a terminal device provided in the embodiments of this application;

[0026] Figure 4 This is a schematic diagram of the hardware structure of a terminal device provided in the embodiments of this application.

[0027] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation

[0028] It should be noted that, in the embodiments of this application, the words "exemplary" or "for example" can be used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0029] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc.

[0030] The following explains some of the terms used in the embodiments of this application:

[0031] 1. LXC container technology:

[0032] LXC (Linux Containers) is a container-based operating system-level kernel virtualization technology. It leverages the features of newer Linux kernel versions to achieve lightweight virtualization without a hypervisor.

[0033] LXC can virtualize a complete system environment (rootfs) or provide a virtualized runtime environment for a single or multiple applications. Containers can achieve effective resource isolation while sharing the host machine's kernel.

[0034] 2. Peripheral virtualization:

[0035] Peripheral virtualization refers to mapping physical peripherals to multiple virtual machines or containers through virtualization technology, enabling them to be used simultaneously by multiple operating systems or applications.

[0036] 3. Dual-system technology

[0037] Dual-system technology refers to installing and running two independent operating systems simultaneously on a single terminal device (such as a smartphone or tablet). This can be achieved through container technology such as LXC and peripheral virtualization technology. This technology provides users with greater flexibility and choice, while meeting specific work or entertainment needs.

[0038] Dual-system technology primarily relies on the independent installation and runtime environment of the operating systems. On a terminal device, each operating system has its own independent system partition, file system, and applications. Users can choose which system to boot into at startup, or switch systems using specific triggers (such as fingerprints or passwords).

[0039] Existing dual-system terminal devices typically include a ROOT domain (for system startup and basic services) and two independent domains. These two domains are completely isolated at the process and resource levels, each with its own independent upper-level Java Virtual Machine, thereby ensuring data security and privacy protection for users on both systems.

[0040] In some dual-system implementations, fingerprint virtualization is a crucial technical component. However, these implementations all follow the same workflow design. Taking the Android system as an example, this workflow typically involves the application running through the Android fingerprint service, then through the fingerprint HAL, then via the fingerprint TEE to the fingerprint sensor driver, and finally interacting with the fingerprint sensor.

[0041] While the above implementation scheme achieves dual-system fingerprint functionality to some extent, it suffers from several problems. For example, since the fingerprint hardware is unique, resource contention inevitably arises when the two systems use the fingerprint function, leading to cumbersome and unstable systems. Furthermore, each system maintains its own complete fingerprint processing flow, resulting in high system memory overhead; errors can easily affect the user's fingerprint functionality. Additionally, during dual-system switching, the foreground system must release fingerprint hardware resources before the background system can initialize resources, resulting in low switching efficiency and a high susceptibility to errors.

[0042] To address the aforementioned technical issues, this application provides a method that allows the fingerprint recognition component to be deployed in the ROOT domain. By sharing this fingerprint recognition component, two systems on the terminal device can avoid resource contention and improve system stability. Furthermore, the fingerprint recognition component can continuously occupy fingerprint hardware resources after the terminal device boots up without releasing them. During dual-system switching, system switching can be achieved by switching the reference to the fingerprint recognition component, thereby effectively improving system switching efficiency.

[0043] The technical solutions shown in this application will be described in detail below through specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other, and the same or similar content will not be described again in different embodiments.

[0044] In this embodiment of the application, a dual-system fingerprint service method is provided, which is applied to a terminal device.

[0045] Optionally, the terminal devices in this application embodiment may include mobile phones, tablet computers, handheld computers, laptop computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, personal digital assistants (PDAs), in-vehicle devices, etc., and this application embodiment is not limited to these.

[0046] In this embodiment of the application, the device for implementing the function of the terminal device can be the terminal device itself; or it can be a device that enables the terminal device to implement the function, such as a chip system, which can be installed in the terminal device.

[0047] For example, refer to Figure 1 , Figure 1 This is a schematic diagram of the architecture of a terminal device provided in an embodiment of this application. In some embodiments of this application, the terminal device is provided with a first system and a second system. The ROOT domain of the terminal device is configured with a fingerprint recognition component, which is associated with the fingerprint hardware resources of the terminal device. The fingerprint services configured by the applications in the first system and the second system share the fingerprint recognition component.

[0048] The ROOT domain mentioned above can also be called the root domain or root privilege zone, which can be understood as the lowest level zone in the system with the highest privileges.

[0049] In some implementations, the fingerprint recognition component is closely connected to the fingerprint hardware resources of the terminal device, and can be used to receive fingerprint data, perform comparison, verification and other processing, and return the processing results to the system that calls it.

[0050] In some implementations, the fingerprint hardware resources described above may include a fingerprint sensor and a corresponding driver for the fingerprint sensor.

[0051] A fingerprint sensor is a hardware device capable of acquiring fingerprint image data. It uses technologies such as optics, capacitance, inductance, ultrasound, or radio frequency to convert fingerprint information from the surface of a user's finger into electrical or digital signals for subsequent processing and analysis.

[0052] Optionally, the fingerprint sensors described above can be classified into various types according to their sensing principles, such as optical fingerprint sensors, semiconductor capacitive sensors, semiconductor thermistors, semiconductor pressure sensors, ultrasonic sensors, and radio frequency (RF) sensors, etc., which are not limited in the embodiments of this application.

[0053] The aforementioned fingerprint sensor driver is a software component that establishes communication and interaction between the operating system and the fingerprint sensor. The driver provides the necessary interfaces and functions, enabling the operating system to control the operation of the fingerprint sensor and acquire the fingerprint data it collects.

[0054] The aforementioned fingerprint sensor and its corresponding driver work together to acquire, transmit, and process fingerprint data, providing the necessary hardware support for fingerprint recognition.

[0055] Reference Figure 2 , Figure 2 This is a flowchart illustrating a dual-system fingerprint service method provided in an embodiment of this application. In some embodiments of this application, the dual-system fingerprint service method includes:

[0056] S201. The front-end system determines whether it has received a fingerprint operation request.

[0057] The aforementioned front-end system refers to the system running in the foreground of the first system and the second system, that is, the system currently in the user interaction interface. It can be either the first system or the second system.

[0058] Optionally, the specific roles of the first system and the second system are not fixed. Users can set the first system as a work system and the second system as a life system according to their personal preferences or actual needs; or, the first system can be set as a life system and the second system as a work system. This application embodiment does not impose any restrictions.

[0059] Optionally, the fingerprint operation request may include any of the following:

[0060] Fingerprint enrollment request; This fingerprint enrollment request can be initiated when a user wants to add new fingerprint information to the fingerprint recognition system of the terminal device.

[0061] Fingerprint deletion request: When a user wishes to delete the stored fingerprint information from the fingerprint recognition system, they can initiate this fingerprint deletion request.

[0062] Fingerprint recognition request: This request can be initiated when the system needs to verify a user's identity. For example, if a user places their finger on the fingerprint sensor, the system confirms the user's identity by comparing stored fingerprint information with the currently collected fingerprint information.

[0063] System Switching Request: In some cases, users can switch between different systems on their terminal device (such as a work system and a personal system) using fingerprint operation. For example, a user can set up a fingerprint shortcut in one system, which will automatically switch to another system when a specific fingerprint is recognized.

[0064] Fingerprint unlock request: When a user needs to unlock the screen of a terminal device or a certain application, they can initiate this fingerprint unlock request.

[0065] In some implementations, when the front-end system is running, it continuously monitors whether it receives a fingerprint operation request from the user. If the front-end system receives a fingerprint operation request, it proceeds to the next step S202; if no request is received, it maintains the current state or continues monitoring.

[0066] S202. The front-end system calls the fingerprint recognition component to respond to the fingerprint operation request.

[0067] In some implementations, once the front-end system determines that it has received a fingerprint operation request, it can invoke the aforementioned fingerprint recognition component. This component can read the user's fingerprint information from fingerprint hardware resources and compare it with stored fingerprint data to verify the user's identity or perform related fingerprint operations. Based on the comparison result, the front-end system can respond accordingly, such as unlocking the screen, completing a payment, or logging into an account.

[0068] It is understandable that by sharing the fingerprint recognition component, the first and second systems mentioned above can avoid configuring fingerprint recognition hardware and software resources separately in each system, thereby saving memory space and improving resource utilization; at the same time, it also helps users switch flexibly between different systems.

[0069] The dual-system fingerprint service method provided in this application embodiment enables the fingerprint recognition component to be launched in the ROOT domain. By sharing the fingerprint recognition component, the two systems on the terminal device can avoid resource contention and improve system stability. In addition, the fingerprint recognition component can occupy fingerprint hardware resources continuously without releasing them after the terminal device is powered on. When switching between the two systems, the system can be switched by changing the reference to the fingerprint recognition component, which can effectively improve the system switching efficiency.

[0070] Based on the content described in the above embodiments, in some embodiments of this application, the fingerprint recognition component includes fingerprint HAL and fingerprint TEE services.

[0071] In the Android system, the fingerprint HAL can act as a bridge between the Android framework and the fingerprint hardware, interacting directly with the fingerprint hardware and handling fingerprint-related operation requests.

[0072] Optional features of the fingerprint HAL include:

[0073] Hardware initialization: Responsible for initializing the fingerprint hardware, including configuring hardware parameters and starting the hardware device.

[0074] Data acquisition: Collect fingerprint image data from the fingerprint hardware and transmit it to upper-layer applications or systems for further processing.

[0075] Command transmission: Transmitting commands issued by the operating system or upper-layer applications to the fingerprint hardware, such as starting fingerprint collection or stopping collection.

[0076] Fingerprint enrollment: By calling the interfaces provided by the HAL layer, the Framework layer can request the fingerprint hardware to begin fingerprint enrollment. During the fingerprint enrollment process, the HAL layer coordinates with the hardware driver to complete the acquisition and storage of fingerprint data.

[0077] Fingerprint recognition: When a user attempts to unlock the device using their fingerprint or perform other operations requiring fingerprint verification, the Framework layer calls the interface provided by the HAL layer to perform fingerprint verification. The HAL layer coordinates with the hardware driver to read the fingerprint data and compare it with the stored fingerprint template to determine whether the verification was successful.

[0078] Fingerprint management includes deleting stored fingerprint templates and enumerating all known fingerprint templates.

[0079] Fingerprint TEE service is a secure execution environment that provides enhanced security for fingerprint data processing. Features of fingerprint TEE service include:

[0080] Isolation: The fingerprint TEE service is physically or logically isolated from the operating system and other applications, ensuring that fingerprint data cannot be accessed or tampered with by unauthorized programs.

[0081] Security: The fingerprint TEE service runs in a secure hardware environment, offering enhanced resistance to attacks. It utilizes encryption technology to protect the storage and transmission of fingerprint data, preventing data leakage.

[0082] High efficiency: The fingerprint TEE service can efficiently process fingerprint data, including fingerprint feature extraction and comparison.

[0083] In some implementations, when a user initiates a fingerprint operation request on a terminal device, the fingerprint recognition process may include:

[0084] Fingerprint acquisition: The fingerprint HAL acquires fingerprint image data from the fingerprint hardware.

[0085] Data transmission: The fingerprint HAL transmits the collected fingerprint image data to the fingerprint TEE service for processing.

[0086] Fingerprint processing: The fingerprint TEE service performs preprocessing, feature extraction, and other operations on fingerprint image data, and generates fingerprint feature templates.

[0087] Fingerprint comparison: The fingerprint TEE service compares the generated fingerprint feature template with the registered fingerprint feature template stored in the secure area to verify the user's identity.

[0088] Result Return: The fingerprint TEE service will return the comparison result to the operating system or upper-layer application for appropriate processing (such as unlocking the screen, granting access, etc.).

[0089] In this embodiment, the fingerprint HAL and fingerprint TEE services together constitute the fingerprint recognition component. Since the fingerprint recognition component is shared by the first system and the second system, no matter which system the terminal device is currently using (the first system or the second system), it can complete fingerprint-related operations by calling the fingerprint recognition component in the ROOT domain, thus solving the technical problem of fingerprint resource competition under the dual-system architecture.

[0090] Based on the content described in the above embodiments, in some embodiments of this application, the fingerprint HAL service file and fingerprint TEE service file in the first system and the second system can be deleted, and a new fingerprint HAL service file and fingerprint TEE service file can be added in the ROOT domain. The first system and the second system share the newly added fingerprint HAL service file and fingerprint TEE service file in the ROOT domain.

[0091] In some implementations, the fingerprint recognition component can be started and run when the terminal device is detected to be powered on; the fingerprint recognition component occupies fingerprint hardware resources during operation.

[0092] In this embodiment, the fingerprint recognition component can occupy the fingerprint hardware resources continuously without releasing them after the terminal device is powered on. This allows the two systems to use only the unified service reference of the same ROOT domain to send instructions to the fingerprint TEE service and the fingerprint sensor when calling the fingerprint HAL service.

[0093] In some embodiments of this application, the dual-system fingerprint service method further includes:

[0094] The front-end system responds to the system switching command by releasing the reference relationship with the fingerprint recognition component; when the back-end system switches to the front-end according to the system switching command, the back-end system establishes a reference relationship with the fingerprint recognition component; the aforementioned back-end system refers to the system in the background of the first system and the second system mentioned above.

[0095] In some implementations, during system switching, the foreground system responds to the system switching command and severs its reference to the fingerprint recognition component. Simultaneously, the background system switches to the foreground based on the system switching command and establishes a new reference to the fingerprint recognition component.

[0096] During system switching, the fingerprint recognition component itself does not need to be modified or restarted; it only needs to establish a reference relationship with the new front-end system.

[0097] For example, taking the Android system as an example, to avoid competition between the two systems for fingerprint resources, when the background system starts, its upper-layer Android virtual machine fingerprint service does not need to initialize the fingerprint HAL, thus it cannot obtain its reference and send instructions to the ROOT domain. The foreground system performs initialization and occupies the fingerprint HAL reference in the ROOT domain, and can perform user operations such as fingerprint enrollment, deletion, and recognition. When the user switches systems, the foreground Android virtual machine fingerprint service, upon receiving the message, first unbinds the fingerprint HAL reference in the ROOT domain. After the system switch is completed, the background Android virtual machine fingerprint service binds to and occupies the fingerprint HAL reference in the ROOT domain, thereby realizing the role interchange between the two operating systems.

[0098] In this embodiment, by dynamically managing the reference relationship between the front-end system and the back-end system and the fingerprint recognition component, the new front-end system can quickly establish a reference relationship with the fingerprint recognition component when switching systems, thereby quickly responding to the user's system switching request.

[0099] To better understand this embodiment, taking the Android system as an example, refer to... Figure 3 , Figure 3This is another architectural diagram of a terminal device provided in an embodiment of this application. In some embodiments of this application, the terminal device has a working domain and a living domain, corresponding to two different systems. The ROOT domain of the terminal device is configured with a fingerprint HAL and a fingerprint TEE. The fingerprint services in the working domain and the living domain can share the fingerprint HAL in the ROOT domain. The fingerprint TEE service is associated with the TrustZone driver in the Linux kernel. TrustZone includes a TEE, a Trusted Application (TA), a secure storage unit, and a sensor driver unit. The sensor driver unit can read fingerprint images from fingerprint hardware (such as a fingerprint sensor).

[0100] Based on the content described in the above embodiments, this application also provides a dual-system fingerprint service device applied in a terminal device. The terminal device is equipped with a first system and a second system. The ROOT domain of the terminal device is configured with a fingerprint recognition component. The fingerprint recognition component is associated with the fingerprint hardware resources of the terminal device. The first system and the second system share the fingerprint recognition component.

[0101] The aforementioned dual-system fingerprint service device includes a processing unit, which is used for:

[0102] When the front-end system detects a fingerprint operation request, it calls the fingerprint recognition component to respond to the fingerprint operation request; the front-end system is the system in the foreground of the first system and the second system mentioned above.

[0103] In some embodiments, the above-mentioned processing unit is further configured to:

[0104] The front-end system responds to the system switching command by severing its reference to the fingerprint recognition component;

[0105] When the background system switches to the foreground according to the system switching command, the background system establishes a reference relationship with the fingerprint recognition component; the background system is the system in the background of the first system and the second system.

[0106] In some embodiments, the above-mentioned processing unit is further configured to:

[0107] When the terminal device is detected to be powered on, the fingerprint recognition component is started and run; the fingerprint recognition component occupies fingerprint hardware resources during operation.

[0108] In some implementations, the fingerprint hardware resources mentioned above include a fingerprint sensor and a corresponding driver for the fingerprint sensor.

[0109] In some implementations, the fingerprint recognition component includes fingerprint HAL and fingerprint TEE services.

[0110] In some implementations, the fingerprint operation request includes any one of the following:

[0111] Fingerprint enrollment request, fingerprint deletion request, fingerprint recognition request, system switch request, fingerprint unlock request.

[0112] It should be noted that the specific content executed by the processing unit in this embodiment, as well as its beneficial effects, can be found in the various steps of the dual-system fingerprint service method described in the above embodiments, and will not be repeated here.

[0113] Furthermore, based on the content described in the above embodiments, this application also provides a terminal device, which includes at least one processor and a memory; wherein the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory to implement the various steps in the dual-system fingerprint service method described in the above embodiments.

[0114] To better understand the embodiments of this application, please refer to... Figure 4 , Figure 4 This is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of this application.

[0115] like Figure 4 As shown, the terminal device 40 in this embodiment includes: a processor 401 and a memory 402; wherein:

[0116] Memory 402 is used to store instructions executed by the computer;

[0117] Processor 401 is configured to execute computer execution instructions stored in memory to implement the various steps in the dual-system fingerprint service method described in the above embodiments.

[0118] Alternatively, the memory 402 can be either standalone or integrated with the processor 401.

[0119] When the memory 402 is set up independently, the device also includes a bus 403 for connecting the memory 402 and the processor 401.

[0120] This application also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the various steps of the dual-system fingerprint service method described in the above embodiments.

[0121] This application also provides a computer program product, which includes a computer program that, when executed by a processor, can implement the various steps of the dual-system fingerprint service method described in the above embodiments.

[0122] In the several embodiments provided in this application, it should be understood that the disclosed devices and systems can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0123] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0124] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0125] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.

[0126] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0127] The memory may include high-speed memory, and may also include non-volatile memory, such as at least one disk storage device, and may also be a USB flash drive, portable hard drive, read-only memory, disk or optical disc, etc.

[0128] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0129] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A dual-system fingerprint service method, characterized in that, The invention is applied to a terminal device, which is equipped with a first system and a second system. The ROOT domain of the terminal device is configured with a fingerprint recognition component. The fingerprint recognition component is associated with the fingerprint hardware resources of the terminal device. The first system and the second system share the fingerprint recognition component. The method includes: When the foreground system detects a fingerprint operation request, the foreground system calls the fingerprint recognition component to respond to the fingerprint operation request; the foreground system is the system running in the foreground between the first system and the second system.

2. The method according to claim 1, characterized in that, The method further includes: The front-end system responds to the system switching command by releasing its reference relationship with the fingerprint recognition component; When the background system switches to the foreground according to the system switching instruction, the background system establishes a reference relationship with the fingerprint recognition component; the background system is the system in the background of the first system and the second system.

3. The method according to claim 1, characterized in that, The method further includes: When the terminal device is detected to be powered on, the fingerprint recognition component is started and run; the fingerprint recognition component occupies the fingerprint hardware resources during operation.

4. The method according to any one of claims 1 to 3, characterized in that, The fingerprint hardware resources include a fingerprint sensor and a corresponding driver program for the fingerprint sensor.

5. The method according to any one of claims 1 to 3, characterized in that, The fingerprint recognition component includes a fingerprint hardware abstraction layer (HAL) and a fingerprint trusted execution environment (TEE) service.

6. The method according to any one of claims 1 to 3, characterized in that, The fingerprint operation request includes any one of the following: Fingerprint enrollment request, fingerprint deletion request, fingerprint recognition request, system switch request, fingerprint unlock request.

7. A dual-system fingerprint service device, characterized in that, The invention is applied to a terminal device, which is equipped with a first system and a second system. The ROOT domain of the terminal device is configured with a fingerprint recognition component. The fingerprint recognition component is associated with the fingerprint hardware resources of the terminal device. The first system and the second system share the fingerprint recognition component. The dual-system fingerprint service device includes a processing unit, which is used for: When the foreground system detects a fingerprint operation request, the foreground system calls the fingerprint recognition component to respond to the fingerprint operation request; the foreground system is the system running in the foreground between the first system and the second system.

8. A terminal device, characterized in that, The terminal device includes a processor and a memory; The processor and the memory are connected, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to invoke the program instructions to implement the dual-system fingerprint service method as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the dual-system fingerprint service method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the dual-system fingerprint service method as described in any one of claims 1 to 6.