Card identification processing method, device and equipment
By deploying the first and second systems in the electronic device, the type of identification card is automatically solved, and the problem of inability to distinguish between encryption cards and memory cards in the prior art is solved, data leakage is avoided, and application convenience is improved.
Patent Information
- Application Number
- CN202310694112.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-12
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, electronic devices cannot accurately distinguish whether the inserted card is an encrypted card or a memory card, resulting in the security system using the memory card incorrectly, resulting in the leakage of working data.
在电子设备中部署第一系统和第二系统,第一系统响应卡的插入操作,通过认证识别处理确定卡的类型,如果为加密卡则保留设备节点,若为存储卡则发送识别结果信息至 The second system, the second system simulates the generation of an insertion event and mounts the memory card to complete the card identification process.
It realizes automatic identification of encrypted cards and memory cards, avoids working data leakage caused by errors in the identification card type, and improves the application convenience of encrypted cards and memory cards in dual systems.
Smart Images

Figure CN119128865A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to a card identification processing method, device and equipment. Background Art
[0002] Currently, when electronic devices are put into use, it is necessary to ensure the security of working data in a security system of the electronic devices, so the working data in the electronic devices needs to be encrypted.
[0003] In the prior art, when encrypting working data in an electronic device, it is usually configured in a security system through hard coding to allow the use of a TF card / NM card (ie, an encryption card and / or a memory card).
[0004] However, in the prior art, since the security system is configured to allow the use of TF cards / NM cards through hard coding, the electronic device cannot distinguish whether the inserted card is an encryption card or a memory card, which will cause the security system to use the memory card incorrectly, resulting in the leakage of working data. Summary of the invention
[0005] The present application provides a card identification processing method, device and equipment to solve the technical problem that encryption cards and storage cards are difficult to identify.
[0006] In a first aspect, the present application provides a card identification processing method, which is applied to an electronic device, wherein a first system and a second system are deployed in the electronic device; the method comprises:
[0007] The first system obtains an insertion event in response to the card insertion operation, and performs authentication and identification processing on the card to obtain identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system;
[0008] If the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system so that the second system determines that the card is a memory card based on the received identification result information to complete the identification process of the card.
[0009] Furthermore, the card is authenticated and identified to obtain identification result information, including:
[0010] Based on the security component pre-installed in the first system, access the security chip in the card through the device node of the card, and read the identity certificate information in the security chip;
[0011] The read identity certificate information is authenticated and identified to obtain identification result information.
[0012] Furthermore, the second system determines that the card is a memory card according to the received identification result information to complete the identification process of the card, including:
[0013] When the second system receives the identification result information, it simulates and generates a new insertion event; and initiates a memory card mounting process according to the new insertion event, determines that the card is a memory card, and mounts the card into the second system.
[0014] Furthermore, the method further comprises:
[0015] If the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system, the device node of the card is reserved.
[0016] Further, the device node of the card is retained, including:
[0017] If the card includes a storage area, the storage area is mounted to a file system in the first system, and the mount attribute of the storage area is set to read-only; or,
[0018] The storage area is unmounted in the file system of the first system.
[0019] In a second aspect, the present application provides an electronic device, in which a first system and a second system are deployed; wherein:
[0020] The first system is used to obtain an insertion event in response to a card insertion operation;
[0021] The first system is further used to perform authentication and identification processing on the card to obtain identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system;
[0022] The first system is further configured to send the identification result information to the second system if the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system;
[0023] The second system is used to determine that the card is a memory card according to the received identification result information, so as to complete the identification process of the card.
[0024] Furthermore, the first system comprises:
[0025] A reading unit, configured to access the security chip in the card through the device node of the card based on the security component pre-installed in the first system, and read the identity certificate information in the security chip;
[0026] The identification unit is used to perform authentication and identification processing on the read identity certificate information to obtain identification result information.
[0027] Furthermore, the second system is specifically used for:
[0028] When the second system receives the identification result information, it simulates and generates a new insertion event; and initiates a memory card mounting process according to the new insertion event, determines that the card is a memory card, and mounts the card into the second system.
[0029] Furthermore, the first system further includes:
[0030] The reservation unit is configured to reserve the device node of the card if the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system.
[0031] Furthermore, the retaining unit is specifically used for:
[0032] If the card includes a storage area, the storage area is mounted to a file system in the first system, and the mount attribute of the storage area is set to read-only; or,
[0033] The storage area is unmounted in the file system of the first system.
[0034] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0036] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0037] The present application provides a card identification processing method, device and equipment. In response to the card insertion operation, the first system obtains the insertion event, performs authentication and identification processing on the card, and obtains the identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system. If the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system, so that the second system determines that the card is a memory card according to the received identification result information, so as to complete the card identification processing. In this scheme, the first system obtains the insertion event, and performs authentication and identification processing on the electronic device to obtain the identification result information, and the identification result information indicates whether the card is an encryption card that can be used in the first system. The first system judges the identification result information, and if the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system. When the second system receives the identification result information, it determines that the card is a memory card according to the identification result information and mounts it in the second system, thereby completing the identification processing of the card. Therefore, the type of the card is identified sequentially in the first system and the second system in turn, and the entire identification process is fully automated. There is no need to hard-code that the card is only allowed to be used in the security system or only in the personal system. This improves the convenience of using encryption cards and storage cards in dual systems, avoids leakage of working data due to incorrect identification of card types, and solves the technical problem of the difficulty in identifying encryption cards and storage cards. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0039] Figure 1 A schematic diagram of a card identification method provided in an embodiment of the present application;
[0040] Figure 2 A schematic flow chart of another card identification and processing method provided in an embodiment of the present application;
[0041] Figure 3 A structural schematic diagram of another card identification and processing method provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0044] Figure 6 A block diagram of an electronic device provided in an embodiment of the present application.
[0045] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0046] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0047] At present, in the industry, the data security protection level is high, and the focus is on preventing the leakage of work data. The encryption card provides certificate information for security authentication and can securely access the private network, which is a reinforcement of network security. However, there is a lack of effective identification mechanism. If the encryption card can be identified in the security system, the same type of memory card can also be identified. Users can easily export confidential data in the security system through the memory card, which will cause a large security loophole. Therefore, when electronic equipment is put into use, it is necessary to ensure the security of the working data in the security system of the electronic equipment, and then the working data in the electronic equipment needs to be encrypted. Among them, encryption card: adopts micro SD / TF (SD2.0) interface specification standard, supports certificate and private key data storage, authentication encryption, signature and other security functions, hereinafter referred to as encryption card. Memory card: adopts micro SD / TF (SD2.0) interface specification standard, only supports data storage, hereinafter referred to as memory card.
[0048] In one example, when encrypting the working data in an electronic device, it is usually configured in the security system through hard coding to allow the use of TF cards / NM cards (i.e., encryption cards and / or storage cards). However, in the prior art, since the use of TF cards / NM cards is configured in the security system through hard coding, the electronic device cannot distinguish whether the inserted card is an encryption card or a storage card based on information such as hardware drivers, manufacturer information, and models, which will cause the security system to use the storage card incorrectly, causing the working data to be leaked. For example, the drivers of TF cards and encryption cards are exactly the same and cannot be distinguished. There are also many differences between encryption cards, which are also indistinguishable. It has been considered to use VID to distinguish, but the VIDs of various manufacturers are not filled in in a standardized manner, and the models are relatively easy to forge, which can easily cause recognition errors.
[0049] In one example, when encrypting working data in an electronic device, the encryption card hardware is directly embedded in the mobile phone, and external encryption cards are no longer supported. However, the use of a built-in encryption chip in the mobile phone has high requirements for the configuration of the mobile phone. Not all mobile phones have built-in encryption chips, which is not universal; and the hardware needs to be modified, which is costly.
[0050] In one example, a personal system in an electronic device could have used a memory card, but because it was unable to accurately distinguish between an encryption card and a memory card, the memory card was mounted to the security system and had to be completely disabled, preventing anyone from using the memory card.
[0051] The present application provides a card identification and processing method, device and equipment, aiming to solve the above technical problems in the prior art.
[0052] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0053] Figure 1 A schematic flow chart of a card identification processing method provided in an embodiment of the present application is applied to an electronic device, in which a first system and a second system are deployed; Figure 1 As shown, the method includes:
[0054] Step 101: In response to a card insertion operation, the first system obtains an insertion event and performs authentication and identification processing on the card to obtain identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system.
[0055] For example, the execution subject of this embodiment may be an electronic device, or a terminal device, or a card identification processing device or device, or other devices or equipment that can execute this embodiment, and there is no limitation to this. In this embodiment, the execution subject is introduced as an electronic device.
[0056] First, a first system and a second system are deployed in an electronic device. The first system can be a security system or a personal system. When the first system is a security system, the second system is a personal system, or when the first system is a personal system, the second system is a security system. This embodiment takes the first system as a security system and the second system as a personal system as an example, and the priority of the security system identification card is higher than that of the personal system. If the user inserts the card into the card slot of the electronic device, in response to the card insertion operation, the electronic device will obtain the insertion event and send the insertion event to the first system. The first system obtains the insertion event and performs authentication and identification processing on the card to obtain the identification result information. The identification result information represents whether the card is an encryption card that can be used in the first system.
[0057] Step 102: If the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system, so that the second system determines that the card is a memory card based on the received identification result information, thereby completing the card identification process.
[0058] Exemplarily, the first system judges the identification result information, and if the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system. When the second system receives the identification result information, it determines that the card is a memory card according to the identification result information and mounts it in the second system, thereby completing the identification process of the card.
[0059] In the embodiment of the present application, the first system obtains the insertion event in response to the card insertion operation, and performs authentication and identification processing on the card to obtain identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system. If the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system, so that the second system determines that the card is a storage card according to the received identification result information, so as to complete the card identification processing. In this scheme, the first system obtains the insertion event, and performs authentication and identification processing on the card to obtain identification result information, and the identification result information indicates whether the card is an encryption card that can be used in the first system. The first system judges the identification result information, and if the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system. When the second system receives the identification result information, it determines that the card is a storage card according to the identification result information and mounts it in the second system, thereby completing the identification processing of the card. Therefore, the type of the card is identified sequentially in the first system and the second system in turn, and the entire identification process is fully automated. There is no need to hard-code that the card is only allowed to be used in the security system or only in the personal system. This improves the convenience of using encryption cards and storage cards in dual systems, avoids leakage of working data due to incorrect identification of card types, and solves the technical problem of the difficulty in identifying encryption cards and storage cards.
[0060] Figure 2 A flowchart of another card identification processing method provided in an embodiment of the present application is applied to an electronic device in which a first system and a second system are deployed; Figure 2 As shown, the method includes:
[0061] Step 201: In response to a card insertion operation, the first system obtains an insertion event.
[0062] Exemplarily, this embodiment takes the example that the first system is a security system and the second system is a personal system. The encryption card is generally used in the security system. When the encryption card is inserted, since the security system identification card has a higher priority than the personal system in the dual systems, the insertion event (netlink event) is reported to the security system first.
[0063] Step 202: Based on the security component pre-installed in the first system, access the security chip in the card through the device node of the card, and read the identity certificate information in the security chip.
[0064] Exemplarily, the security system sets identification permissions for the preset security component separately, and only allows the security component to access the security chip in the encryption card by writing the device node. Therefore, after receiving the insertion event reported by the bottom layer, the security system accesses the security chip in the card through the device node of the card based on the security component preset in the first system, and reads the identity certificate information in the security chip.
[0065] Step 203: Perform authentication and identification processing on the read identity certificate information to obtain identification result information.
[0066] For example, the difference between an encryption card and a memory card is that the encryption card has a security chip inside. The security chip has a unique identification and authentication mechanism, and can be identified as an encryption card through verification by the authentication mechanism. The security system will first use a preset security component to authenticate the identity certificate information and obtain the identification result information. Specifically, the authentication and identification process includes the security system sending preset data to the card. If the reply data fed back by the card is received, it is determined that the identification is passed, and the card is considered to be legal and allowed to be used in the current security system.
[0067] Step 204: If the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system so that the second system determines that the card is a memory card based on the received identification result information to complete the card identification process.
[0068] In one example, when the second system receives the identification result information, it simulates and generates a new insertion event; and initiates a memory card mounting process according to the new insertion event, determines that the card is a memory card, and mounts the card into the second system.
[0069] Exemplarily, if the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, that is, the authentication fails, it is considered that the card is not an allowed encryption card and cannot be used in the security system. The encryption card loading process is terminated immediately. The loading process includes setting the open permissions of the card and sending the identification result information of the encryption card identification failure to the personal system through the underlying inter-system message. When the second system receives the identification result information, it re-simulates and generates a new insertion event, initiates the memory card mounting process according to the new insertion event, determines that the card is a memory card, and mounts the card to the personal system, allowing the third-party application to read and write normally, wherein the range of encryption cards is not limited to TF cards, NM cards, SD cards, etc., and then completes the identification process of the card.
[0070] Step 205: If the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system, the device node of the card is retained.
[0071] In one example, step 205 includes: if the card includes a storage area, mounting the storage area to a file system in the first system and setting the mount attribute of the storage area to read-only; or, unmounting the storage area from the file system in the first system.
[0072] Exemplarily, if the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system, the device node of the card is reserved in the security system, so that the user can access the card through the device node. Moreover, after the device node is reserved, the security component is set with open permissions separately, and the security component is only allowed to access the security chip in the encryption card by writing the device node.
[0073] When retaining the device node, if the encryption card includes a storage area, there are two ways to operate the storage area of the encryption card. One is to mount the storage area to the file system in the first system and set the mount attribute to read-only, that is, the directory of the storage area is displayed in the file system, but the user cannot store data in the storage area; the other is not to mount the storage area of the encryption card on the file system, that is, the directory cannot be found in the file system, and then the third-party application cannot write data to the storage area.
[0074] In the embodiment of the present application, the first system obtains an insertion event in response to the insertion operation of the card. Based on the security component preset in the first system, the security chip in the card is accessed through the device node of the card, and the identity certificate information in the security chip is read. The read identity certificate information is authenticated and identified to obtain identification result information. If the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system, so that the second system determines that the card is a storage card according to the received identification result information to complete the card identification process. If the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system, the device node of the card is retained. In this solution, the first system obtains the insertion event, and authenticates and identifies the card to obtain the identification result information, and the identification result information indicates whether the card is an encryption card that can be used in the first system. The first system judges the identification result information, and if the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system. When the second system receives the identification result information, it determines that the card is a storage card according to the identification result information and mounts it in the second system, thereby completing the identification process of the card. Therefore, the type of the card is identified sequentially in the first system and the second system in turn, and the entire identification process is fully automated. There is no need to hard-code that the card is only allowed to be used in the security system or only in the personal system. This improves the convenience of using encryption cards and storage cards in dual systems, avoids leakage of working data due to incorrect identification of card types, and solves the technical problem of the difficulty in identifying encryption cards and storage cards.
[0075] For example, Figure 3 A structural diagram of another card identification processing method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, taking a mobile phone as an example, a security system and a personal system are deployed in the mobile phone. The security system and the personal system can transmit inter-system messages through the kernel to distinguish whether the inserted card is an encryption card or a storage card.
[0076] In one embodiment, the present application provides an electronic device, in which a first system and a second system are deployed; wherein:
[0077] The first system is used for obtaining an insertion event in response to a card insertion operation.
[0078] The first system is also used to perform authentication and identification processing on the card to obtain identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system.
[0079] The first system is further configured to send the identification result information to the second system if the first system determines that the identification result information represents that the card is an encryption card that cannot be used in the first system;
[0080] The second system is used to determine that the card is a memory card according to the received identification result information, so as to complete the card identification process.
[0081] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0082] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, based on the above embodiment, as Figure 4 As shown, the first system includes:
[0083] The reading unit 31 is used to access the security chip in the card through the device node of the card based on the security component preset in the first system, and read the identity certificate information in the security chip.
[0084] The identification unit 32 is used to perform authentication and identification processing on the read identity certificate information to obtain identification result information.
[0085] In one example, the second system is specifically used for:
[0086] When the second system receives the identification result information, it simulates and generates a new insertion event; and initiates a memory card mounting process according to the new insertion event, determines that the card is a memory card, and mounts the card into the second system.
[0087] In one example, the first system further includes:
[0088] The reservation unit 33 is configured to reserve a device node of the card if the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system.
[0089] In one example, the retaining unit 33 is specifically configured to:
[0090] If the card includes a storage area, the storage area is mounted to the file system in the first system, and the mount attribute of the storage area is set to read-only; or,
[0091] The storage area is unmounted from the file system of the first system. The device of this embodiment can execute the technical solution in the above method, and its specific implementation process and technical principle are the same, which will not be repeated here.
[0092] Figure 5 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the electronic device includes: a memory 51 and a processor 52.
[0093] The memory 51 stores a computer program that can be executed on the processor 52 .
[0094] The processor 52 is configured to execute the method provided in the above embodiment.
[0095] The electronic device further includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by an external device, and the transmitter 54 is used to send instructions and data to the external device.
[0096] Figure 6 This is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0097] The device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0098] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0099] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0100] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0101] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0102] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0103] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0104] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600 and the temperature change of the device 600. The sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0105] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0106] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0107] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 620 of the device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0108] An embodiment of the present application also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method provided by the above embodiment.
[0109] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0110] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0111] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A card identification processing method, characterized in that: Applied to an electronic device, wherein a first system and a second system are deployed in the electronic device; the method comprises: The first system obtains an insertion event in response to the card insertion operation, and performs authentication and identification processing on the card to obtain identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system; If the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system, the identification result information is sent to the second system so that the second system determines that the card is a memory card based on the received identification result information to complete the identification process of the card.
2. The method according to claim 1, characterized in that The card is authenticated and identified to obtain identification result information, including: Based on the security component pre-installed in the first system, access the security chip in the card through the device node of the card, and read the identity certificate information in the security chip; The read identity certificate information is authenticated and identified to obtain identification result information.
3. The method according to claim 1, characterized in that The second system determines that the card is a memory card according to the received identification result information to complete the identification process of the card, including: When the second system receives the identification result information, it simulates and generates a new insertion event; and initiates a memory card mounting process according to the new insertion event, determines that the card is a memory card, and mounts the card into the second system.
4. The method according to claim 1, characterized in that: The method further comprises: If the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system, the device node of the card is reserved.
5. The method according to claim 4, characterized in that The device node for retaining the card includes: If the card includes a storage area, the storage area is mounted to a file system in the first system, and the mount attribute of the storage area is set to read-only; or, The storage area is unmounted in the file system of the first system.
6. An electronic device, characterized in that: The electronic device is deployed with a first system and a second system; wherein, The first system is used to obtain an insertion event in response to a card insertion operation; The first system is further used to perform authentication and identification processing on the card to obtain identification result information; wherein the identification result information indicates whether the card is an encryption card that can be used in the first system; The first system is further configured to send the identification result information to the second system if the first system determines that the identification result information indicates that the card is an encryption card that cannot be used in the first system; The second system is used to determine that the card is a memory card according to the received identification result information, so as to complete the identification process of the card.
7. The device according to claim 6, characterized in that The first system comprises: A reading unit, configured to access the security chip in the card through the device node of the card based on the security component pre-installed in the first system, and read the identity certificate information in the security chip; The identification unit is used to perform authentication and identification processing on the read identity certificate information to obtain identification result information.
8. The device according to claim 6, characterized in that The second system is specifically used for: When the second system receives the identification result information, it simulates and generates a new insertion event; and initiates a memory card mounting process according to the new insertion event, determines that the card is a memory card, and mounts the card into the second system.
9. The device according to claim 6, characterized in that The first system further includes: The reservation unit is configured to reserve the device node of the card if the first system determines that the identification result information indicates that the card is an encryption card that can be used in the first system.
10. The device according to claim 9, characterized in that The retention unit is specifically used for: If the card includes a storage area, mounting the storage area to a file system in the first system, and setting the mount attribute of the storage area to read-only; or, The storage area is unmounted in the file system of the first system.
11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.
13. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 when being executed by a processor.
