A method for processing SIM card services and related devices

By replying to SIM card response instructions on the modules other than STK APP in the terminal device, the problem of users being unable to uninstall system applications is solved, and the STK APP uninstall function and user experience of the terminal device are improved.

CN117858279BActive Publication Date: 2025-06-10HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211215415.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-06-10
Estimated Expiration
2042-09-30

Smart Images

  • Figure CN117858279B_ABST
    Figure CN117858279B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method for processing SIM card services and related devices, which relates to the field of terminal technologies. The method includes: at a first moment, after a user inserts a SIM card into a terminal device, the terminal device obtains a first instruction through the SIM card; the SIM card application replies to the SIM card with a second instruction; at a second moment, the terminal device displays a pop-up window of the SIM card application, and between the second moment and a third moment, the SIM card on the terminal device is removed; at the third moment, in response to an operation of uninstalling the SIM card application, the terminal device uninstalls the SIM card application, and between the third moment and a fourth moment, the user inserts a SIM card into the terminal device; at the fourth moment, the terminal device obtains the first instruction; the terminal device sends a third instruction to the SIM card through a preset module, and the terminal device does not display the pop-up window of the SIM card application. This can reduce the impact of continuous retransmission of instructions by the SIM card on other services, enabling the terminal device to support uninstalling the SIM card application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and in particular, to a method for processing SIM card services and related devices. Background Art

[0002] With the development of terminal technology, various types of application programs can be installed in terminal devices, such as system application programs, third-party application programs, etc., and users can manage these application programs in the terminal devices.

[0003] However, when the user clears the memory of the terminal device or manages the desktop of the terminal device and wants to uninstall some infrequently used system application programs, they cannot be uninstalled. These non-uninstallable system application programs bring a bad user experience to the user. Summary of the Invention

[0004] Embodiments of this application provide a method for processing SIM card services and related devices. After the STK APP is uninstalled, when the terminal device receives an instruction reported by the SIM card, the terminal device can use other modules except the STK APP to reply to the SIM card with a response instruction, so that the SIM card no longer resends the instruction, thereby reducing the impact on other services running on the SIM card due to the continuous resending of instructions by the SIM card, and enabling the terminal device to support the uninstallation of the STK APP.

[0005] In a first aspect, embodiments of this application provide a method for processing SIM card services. The method includes:

[0006] At a first moment, after the user inserts a SIM card into the terminal device, the terminal device obtains a first instruction through the SIM card; the terminal device replies to the SIM card with a second instruction through the SIM card application; at a second moment, the terminal device displays a pop-up window of the SIM card application, and the second moment is later than the first moment. Between the second moment and a third moment, the SIM card on the terminal device is removed, and the third moment is later than the second moment; at the third moment, in response to an operation of uninstalling the SIM card application, the terminal device uninstalls the SIM card application. Between the third moment and a fourth moment, the user inserts a SIM card into the terminal device, and the fourth moment is later than the third moment; at the fourth moment, the terminal device obtains a first instruction through the SIM card; the terminal device sends a third instruction to the SIM card through a preset module, and the terminal device does not display a pop-up window of the SIM card application. In this way, the impact on other services running on the SIM card due to the continuous resending of instructions by the SIM card can be reduced.

[0007] In a possible implementation, between the first moment and the second moment, it may include: the terminal device determines whether the first instruction requires a reply from the SIM card application; if the first instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed.

[0008] The terminal device may reply to the SIM card with a second instruction through the SIM card application, including: if the SIM card application is installed, the terminal device replies to the SIM card with a second instruction through the SIM card application. In this way, the terminal device can make corresponding replies according to the type of SIM card instruction.

[0009] In a possible implementation, if the first instruction does not require a reply from the SIM card application, the terminal device replies to the SIM card with a fourth instruction through a preset module, or the terminal device does not reply to the first instruction. In this way, the terminal device can make corresponding replies according to the type of SIM card instruction.

[0010] In a possible implementation, after the fourth moment, the method may include: the terminal device determines whether the first instruction requires a reply from the SIM card application; if the first instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed.

[0011] The terminal device may send a third instruction to the SIM card through a preset module, including: if the SIM card application is not installed, the terminal device sends a third instruction to the SIM card through the preset module. In this way, in the case where the SIM card application is not installed, the SIM card will not resend the instruction, thereby reducing the impact on other services running on the SIM card due to continuous resending of the instruction by the SIM card.

[0012] In a possible implementation, after the fourth moment, the method may include: the user sends a text message to the SIM card operator device through the terminal device; the terminal device obtains the first instruction and the text message reply through the SIM card; the terminal device sends a third instruction to the SIM card through the preset module, and the terminal device does not display the pop-up window of the SIM card application. In this way, by replying to the SIM card with the third instruction through the preset module, the SIM card can end the periodic sending of the instruction, so that the instruction does not occupy the SIM card-related instruction channel.

[0013] In a possible implementation, after the terminal device obtains the first instruction and the text message reply through the SIM card, it may include: the terminal device determines whether the first instruction requires a reply from the SIM card application; if the first instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed; the terminal device sends a third instruction to the SIM card through the preset module, including: if the SIM card application is not installed, the terminal device sends a third instruction to the SIM card through the preset module. In this way, the terminal device can make corresponding replies according to the type of SIM card instruction.

[0014] In a possible implementation, between the second moment and the moment when the SIM card in the terminal device is removed, the method may include: the user sends a short message to the SIM card operator device through the terminal device; the terminal device obtains a first instruction and a short message reply message through the SIM card; the terminal device replies a second instruction to the SIM card through the SIM card application, and displays a pop-up window of the SIM card application, where the pop-up window includes an OK button; in response to the triggering of the OK button, the terminal device obtains a fifth instruction through the SIM card; the terminal device replies a sixth instruction to the SIM card through the SIM card application; the terminal device displays a menu interface of the SIM card application, and the menu interface includes the short message reply message. In this way, the terminal device can implement the interaction related to the user's SIM service by interacting with the SIM for instructions and displaying the interface related to the SIM service.

[0015] In a possible implementation, after the fourth moment, the method may further include: the terminal device obtains a seventh instruction through the SIM card; the terminal device determines whether the seventh instruction requires a reply from the SIM card application; if the seventh instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed; if the SIM card application is not installed, the terminal device sends a third instruction to the SIM card through a preset module, and the terminal device does not execute the task of the seventh instruction. The seventh instruction may correspond to the third type of instruction in the embodiment.

[0016] The seventh instruction may include any one or more of the following: SET_UP_EVENT_LIST, LAUNCH_BROWSER, GET_INPUT, GET_INKEY, PLAY_TONE, SET_UP_CALL, DISPLAY_TEXT, SELECT_ITEM.

[0017] In this way, a response instruction can be replied to the SIM card through a preset module, such as the CatService module, so that the SIM card does not resend the instruction, thereby solving the power consumption problem of the terminal device and the problem of occupying the instruction channel.

[0018] Second aspect, an embodiment of the present application provides a SIM card service processing device, which may be a terminal device, or a chip or chip system within the terminal device. The SIM card service processing device may include a display unit and a processing unit. The display unit is used to implement any display-related method executed by the terminal device in the first aspect or any possible implementation manner of the first aspect. The processing unit is used to implement any processing-related method executed by the terminal device in the first aspect or any possible implementation manner of the first aspect. When the SIM card service processing device is a terminal device, the processing unit may be a processor. The SIM card service processing device may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to enable the terminal device to implement a method described in the first aspect or any possible implementation manner of the first aspect. When the SIM card service processing device is a chip or chip system within the terminal device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to enable the terminal device to implement a method described in the first aspect or any possible implementation manner of the first aspect. The storage unit may be a storage unit within the chip (such as a register, cache, etc.), or a storage unit outside the chip within the terminal device (such as a read-only memory, random access memory, etc.).

[0019] Exemplarily, the processing unit is used to obtain a first instruction through the SIM card; is further used to reply to a second instruction to the SIM card through the SIM card application; is further used to uninstall the SIM card application; is further used to send a third instruction to the SIM card through a preset module.

[0020] The display unit is used to display a pop-up window of the SIM card application.

[0021] In a possible implementation manner, the processing unit is used to determine whether the first instruction requires a reply from the SIM card application; is further used to determine whether the SIM card application is installed.

[0022] In a possible implementation manner, the processing unit is used to reply to a fourth instruction to the SIM card through a preset module.

[0023] In a possible implementation manner, the processing unit is used to send a short message to the SIM card operator device, and is further used to obtain the first instruction and the short message reply message through the SIM card.

[0024] In a possible implementation manner, the display unit is used to display a pop-up window of the SIM card application, and the pop-up window includes an OK button; is further used to display a menu interface of the SIM card application, and the menu interface includes the short message reply message.

[0025] A processing unit, configured to, in response to a trigger of a determination button, obtain a fifth instruction by the terminal device through the SIM card; and is further configured to reply a sixth instruction to the SIM card through the SIM card application.

[0026] In a possible implementation manner, the processing unit is configured to obtain a seventh instruction through the SIM card; is further configured to determine whether the seventh instruction requires a reply from the SIM card application; is further configured to determine whether the SIM card application is installed, and is further configured to send a third instruction to the SIM card through a preset module.

[0027] In a possible implementation manner, the seventh instruction includes any one or more of the following: SET_UP_EVENT_LIST, LAUNCH_BROWSER, GET_INPUT, GET_INKEY, PLAY_TONE, SET_UP_CALL, DISPLAY_TEXT, SELECT_ITEM.

[0028] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory is used to store code instructions, and the processor is used to run the code instructions to execute the SIM card service processing method described in the first aspect or any possible implementation manner of the first aspect.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction runs on a computer, the computer is caused to execute the SIM card service processing method described in the first aspect or any possible implementation manner of the first aspect.

[0030] In a fifth aspect, an embodiment of the present application provides a computer program product including a computer program. When the computer program runs on a computer, the computer is caused to execute the SIM card service processing method described in the first aspect or any possible implementation manner of the first aspect.

[0031] In a sixth aspect, the present application provides a chip or a chip system. The chip or the chip system includes at least one processor and a communication interface. The communication interface and the at least one processor are interconnected through a line. The at least one processor is used to run a computer program or instruction to execute the SIM card service processing method described in the first aspect or any possible implementation manner of the first aspect. Among them, the communication interface in the chip may be an input / output interface, a pin, a circuit, etc.

[0032] In a possible implementation, the chip or chip system described above in this application further includes at least one memory, and instructions are stored in the at least one memory. The memory may be a storage unit inside the chip, for example, a register, a cache, etc., or may be a storage unit of the chip (for example, a read-only memory, a random access memory, etc.).

[0033] It should be understood that the technical solutions of the second to sixth aspects of this application correspond to those of the first aspect of this application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar, and will not be elaborated herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic structural diagram of a terminal device provided by an embodiment of this application;

[0035] Figure 2 It is a schematic software structure diagram of a terminal device provided by an embodiment of this application;

[0036] Figure 3 It is a schematic diagram of module interaction for SIM card service processing provided by an embodiment of this application;

[0037] Figure 4 It is a schematic diagram of a pop-up window after inserting a SIM card in a terminal device provided by an embodiment of this application;

[0038] Figure 5 It is a schematic diagram of a pop-up window and a menu after sending a SIM card-related short message provided by an embodiment of this application;

[0039] Figure 6 It is a schematic flowchart of a specific SIM card service processing method provided by an embodiment of this application;

[0040] Figure 7 It is a schematic diagram of a service processing method for an inserted SIM card scenario provided by an embodiment of this application;

[0041] Figure 8 It is a schematic diagram of a service processing method for a short message sending scenario provided by an embodiment of this application;

[0042] Figure 9 It is a schematic structural diagram of a chip provided by an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0043] To facilitate a clear description of the technical solutions of the embodiments of this application, the following briefly introduces some terms and technologies involved in the embodiments of this application:

[0044] 1. 3GPP Protocol: The 3rd generation partnership project (3GPP) develops globally applicable technical specifications and technical reports for 3rd generation mobile systems, enabling a smooth transition from 2G to 3G networks and ensuring backward compatibility for future technologies.

[0045] 2. Ril: The radio interface layer (Ril) is responsible for data communication between the terminal device and the mobile network. Data communication includes, for example, data transmission, command sending, and response message parsing. Ril also provides a general application programming interface (API) for applications in the application layer. Exemplarily, Ril can provide APIs related to phone calls, text messages, network status, and subscriber identity module (SIM) card status.

[0046] 3. CatService Module: It can receive and parse data related to the SIM application tool kit (STK) sent by Ril and send the parsed data to STK.

[0047] 4. STK: The SIM application tool kit (STK) is a basic service application tool for SIM cards defined by the 3GPP protocol. The STK application (APP) can also be called a SIM card application.

[0048] The STK APP can contain a series of protocol instructions for SIM card interaction. Based on these protocol instructions, the STK APP can interact with the programs in the SIM card to run the programs in the SIM card, and thus the terminal device can implement SIM card-related services provided by the operator. Among them, the series of protocol instructions for SIM card interaction can also be called SIM card instructions.

[0049] Exemplarily, after the user opens the STK APP, the menu reported by the SIM card can be displayed on the interface of the STK APP. When the user clicks on the relevant menu, the STK APP can pass the received STK-related instructions to the CatService module. After receiving the instructions, the CatService module processes the instructions into the format required by Ril and passes them to Ril. Ril can process the instructions through the modem Modem and pass them to the SIM card, and then the SIM card can process the instructions based on the services provided by the operator.

[0050] 5. Terms

[0051] In the embodiments of the present application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions and roles. For example, the first chip and the second chip are only used to distinguish different chips, and do not limit their sequence. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and terms such as "first" and "second" do not necessarily mean different.

[0052] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.

[0053] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple.

[0054] 6. Terminal Device

[0055] The terminal device in the embodiments of the present application can also be an electronic device in any form. For example, the electronic device can include a device with mobile communication functions. For example, some electronic devices are: mobile phone, tablet computer, handheld computer, laptop computer, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone, session initiation protocol (SIP) phone, wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, vehicle-mounted device, wearable device, terminal device in a 5G network or terminal device in a future evolved public land mobile network (PLMN), etc. The embodiments of the present application are not limited thereto.

[0056] By way of example and not limitation, in the embodiments of the present application, the electronic device can also be a wearable device. A wearable device can also be called a wearable intelligent device, which is a general term for devices developed by applying wearable technology to the intelligent design of daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. A wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable intelligent devices include those with complete functions and large sizes that can realize complete or partial functions without relying on a smart phone, such as smart watches or smart glasses, etc., and those that only focus on a certain type of application function and need to cooperate with other devices such as smart phones, such as various smart bracelets and smart jewelry for physical sign monitoring.

[0057] In addition, in the embodiments of the present application, the electronic device may also be a terminal device in an Internet of Things (IoT) system. The IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-object interconnection.

[0058] The terminal device in the embodiments of the present application may also be referred to as: electronic device, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile platform, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.

[0059] In the embodiments of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also referred to as main memory). The operating system may be any one or more computer operating systems that implement service processing through processes. For example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system, etc. The application layer includes applications such as a browser, an address book, a word processing software, and an instant messaging software.

[0060] Exemplarily, Figure 1 shows a schematic structural diagram of the electronic device.

[0061] The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0062] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0063] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0064] The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0065] A memory can also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can hold the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the above-mentioned memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0066] In some embodiments, the processor 110 may include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface, etc.

[0067] It can be understood that the interface connection relationships among the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0068] The electronic device realizes the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change the display information.

[0069] The electronic device can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.

[0070] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.

[0071] The internal memory 121 can be used to store computer-executable program codes, and the executable program codes include instructions. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.). The data storage area can store data created during the use of the electronic device (such as audio data, phone book, etc.). In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121, and / or the instructions stored in the memory provided in the processor. For example, the method for processing SIM card services in the embodiments of the present application can be executed.

[0072] Figure 2 It is a software structure block diagram of the terminal device in the embodiments of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the Android runtime, and the system library, and the kernel layer.

[0073] The application layer can include a series of application packages. As Figure 2 shown, the application packages can include applications such as SIM card, phone, message, memo, camera, etc.

[0074] The application framework layer, also known as the Framework layer, can provide APIs and programming frameworks for the application programs in the application layer. The application framework layer includes some predefined functions.

[0075] As Figure 2 shown, the application framework layer can include a window manager, a resource manager, a notification manager, a content provider, a view system, etc., and can also include the Ril and CatService modules in the embodiments of the present application.

[0076] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, and judge whether there is a status bar, a locked screen, a touch screen, a dragged screen, a screen capture, etc.

[0077] The resource manager provides various resources for the application programs, such as localized strings, icons, pictures, layout files, video files, etc.

[0078] The notification manager enables an application to display notification information in the status bar. It can be used to convey messages of the notification type, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that a download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as the notification of a background running application, or a notification that appears on the screen in the form of a dialogue window. For example, it can prompt text information in the status bar, emit a prompt tone, vibrate the terminal device, blink the indicator light, etc.

[0079] The content provider is used to implement the function of data sharing between different applications, allowing one program to access the data in another program while ensuring the security of the accessed data.

[0080] The view system can be responsible for the interface drawing and event handling of the application.

[0081] Android runtime includes core libraries and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.

[0082] The core libraries contain two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android.

[0083] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. For example, in the embodiments of the present application, the virtual machine can be used to perform functions such as SIM card service processing.

[0084] The system libraries can include multiple functional modules. For example: Media Libraries, Function Libraries, Graphics Processing Libraries (such as: OpenGL ES), etc.

[0085] The media library supports the playback and recording of various common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0086] The function library provides API interfaces for various services for developers, facilitating developers to quickly integrate and implement various functions.

[0087] The graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc.

[0088] The kernel layer is the layer between hardware and software. The kernel layer may include a display driver, a camera driver, an audio driver, a central processing unit driver, a USB driver, a battery driver, etc.

[0089] When the terminal device inserts a SIM card and conducts services such as calls or text messages, it can perform instruction interaction based on the SIM card and the STK APP.

[0090] The following combines Figure 3 , and exemplarily illustrates the interaction process of SIM card instructions among software modules in the terminal device.

[0091] As Figure 3 shown, exemplarily, the SIM card can periodically send the DISPLAY_TEXT instruction and related service content to the modem. The modem can pass the processed instruction to Ril, and Ril can report the obtained instruction to the CatService module. Furthermore, the CatService module can interact with the STK APP and report the instruction to the STK APP. After receiving the DISPLAY_TEXT instruction, the STK APP can instruct the terminal device to display a pop-up window adapted to the service content. It can be understood that when the DISPLAY_TEXT instruction reported by the SIM card requires a response instruction from the STK APP, the STK APP can pass a response instruction indicating successful receipt of the DISPLAY_TEXT instruction to the CatService module. After obtaining the response instruction, the CatService module can process the response instruction into the format required by Ril and then pass it to Ril. Ril can process the response instruction through the modem and then pass it to the SIM card, and then the SIM card can end sending the DISPLAY_TEXT instruction.

[0092] It can be seen that when the SIM card is running, for the instructions reported by the SIM card to the STK APP, there is a situation where the STK APP needs to reply a response instruction to the SIM card. If the STK APP is uninstalled and the terminal device cannot reply a response instruction to the SIM card based on the STK APP, the SIM card will resend the instruction periodically. Exemplarily, the SIM card can resend the instruction once every 2 minutes or once every 10 minutes. The specific period for the SIM card to resend the instruction can be custom-set by the SIM card, and the embodiments of the present application do not make a limitation.

[0093] The instructions resent by the SIM card will occupy the SIM card-related instruction channels, thereby affecting other services of the SIM card and increasing the power consumption of the terminal device. Therefore, the STK APP is usually set as a non-uninstallable application to avoid abnormal operation of the terminal device caused by the user uninstalling the STK APP.

[0094] However, some users have a low probability of using the STK APP. For the purpose of clearing memory or the desktop, users may hope to uninstall the STK APP. However, since the STK APP is usually set as an uninstallable application, users cannot uninstall the STK APP, which affects the user experience.

[0095] In view of this, an embodiment of the present application provides a SIM card service processing method. After the STK APP is uninstalled, when the terminal device receives an instruction reported by the SIM card, the terminal device can use other modules except the STK APP to reply to the SIM card with a response instruction, so that the SIM card no longer resends the instruction, thereby reducing the impact on other services of the SIM card due to continuous resending of the instruction by the SIM card, and enabling the terminal device to support uninstalling the STK APP.

[0096] It can be understood that the STK APP in the embodiment of the present application is configured to be uninstallable. In one possible way of configuring the STK APP, the terminal device can configure the STK APP into the whitelist of uninstallable applications in the framework layer. In this way, if the user triggers uninstalling the STK APP and the application management service (package manager service, PMS) queries that the STK APP exists in the whitelist, the PMS can execute the application uninstallation process. The embodiment of the present application does not limit the specific method of configuring the STK APP to be uninstallable.

[0097] In two states of the STK APP before and after uninstallation, the terminal device can have different processing methods for SIM card-related instructions.

[0098] Exemplarily, in combination with four types of instructions related to the SIM card, the processing method of the terminal device for instructions when the STK APP is not uninstalled and the processing method for instructions after the STK APP is uninstalled are described below.

[0099] 1) Instructions of the first type

[0100] The first type of instruction can refer to an instruction that after the instruction of the SIM card is transmitted to the CatService module, the CatService module needs to reply to the SIM card with a response instruction and does not require the STK APP to process.

[0101] Exemplarily, the instructions of the first type can include: SET_UP_MENU, SET_UP_IDLE_MODE_TEXT, LANGUAGE_NOTIFICATION, OPEN_CHANNEL, CLOSE_CHANNEL, RECEIVE_DATA, SEND_DATA.

[0102] Among them, the SET_UP_MENU instruction can represent setting up a menu; the SET_UP_IDLE_MODE_TEXT instruction can represent providing a string for the standby mode text to the terminal device; the LANGUAGE_NOTIFICATION instruction can represent notifying the terminal device of the language currently used by the STK in the text string; the OPEN_CHANNEL instruction can represent requesting the terminal device to open a channel with parameter display; the CLOSE_CHANNEL instruction can represent requesting the terminal device to close a specified data channel; the RECEIVE_DATA instruction can represent requesting the terminal device to return the SIM card data received on the specified channel; the SEND_DATA instruction can represent requesting the terminal device to send data to the specified channel provided by the SIM card.

[0103] For the instructions of the first type, since they do not require the STK APP to process, the processing methods of the instructions in the embodiment of the present application when the STK APP is not uninstalled and after the STK APP is uninstalled can be the same, and the CatService module replies to the response instructions to the SIM card.

[0104] 2) Instructions of the second type

[0105] The instructions of the second type can refer to: after the instructions of the SIM card are passed to the CatService module, the CatService module sends a broadcast, and the STK APP can perform corresponding service processing or display a corresponding interface according to the broadcast, but does not require the STK APP to reply to the response instructions, this type of instruction.

[0106] Exemplarily, the instructions of the second type can include: REFRESH, RUN_AT, SEND_DTMF, SEND_SMS, SEND_SS, SEND_USSD, GET_CHANNEL_STATUS.

[0107] Among them, the REFRESH instruction may indicate a request for the terminal device to start the initialization of the SIM card and / or prompt that the content or structure of the elementary file EF on the SIM card has changed; the RUN_AT instruction may indicate transmitting an AT command (attention command) to the terminal device and returning the response result of the AT command to the SIM card; the SEND_DTMF instruction may indicate a request for the terminal device to send an audio of dual-tone multi-frequency (DTMF) during a call establishment; the SEND_SMS instruction may indicate sending a short message; the SEND_SS instruction may indicate sending an SS request to the network; the SEND_USSD instruction may indicate sending a USSD to the network; the GET_CHANNEL_STATUS instruction may indicate a request for the terminal device to return the current information of all available data channels.

[0108] For the second type of instruction, since there is no need for the STK APP to reply with a response instruction, the processing method of the instruction when the STK APP is not uninstalled and the processing method of the instruction after the STK APP is uninstalled in the embodiments of the present application may be the same.

[0109] 3) The third type of instruction

[0110] The third type of instruction may refer to: after the instruction of the SIM card is transmitted to the CatService module, the CatService module sends a broadcast, and the STK APP needs to reply with a response instruction after receiving the broadcast, this type of instruction.

[0111] Exemplarily, the third type of instruction may include: DISPLAY_TEXT, SET_UP_EVENT_LIST, LAUNCH_BROWSER, SELECT_ITEM, GET_INPUT, GET_INKEY, PLAY_TONE, SET_UP_CALL.

[0112] Among them, the DISPLAY_TEXT instruction can indicate to display a pop-up window on the screen. For example, the operator welcome pop-up window displayed by the terminal device after inserting the SIM card, etc.; the SET_UP_EVENT_LIST instruction can indicate an instruction for listening to the event list; the LAUNCH_BROWSER instruction can indicate a request to start the browser so that the terminal device can resolve the Uniform Resource Locator (URL); the SELECT_ITEM instruction can indicate that the SIM card provides a menu list for the user to select; the GET_INPUT instruction can indicate to display text or a chart on the screen, obtain any response from the user, and transmit it to the SIM card; the GET_INKEY instruction can indicate to display text or a chart on the screen, obtain the character input by the user, and transmit the character to the SIM card; the PLAY_TONE instruction can indicate a request for the terminal device to emit sound through the earphone, receiver or other devices; the SET_UP_CALL instruction can indicate a call request.

[0113] For the instructions of the third type, since the STK APP needs to reply with a response instruction, in the embodiment of the present application, when the STK APP is not uninstalled, the STK APP replies with a response instruction to the SIM card.

[0114] After the STK APP is uninstalled, the response instruction can be replied to the SIM card in the following manner:

[0115] Exemplarily, after the SIM card passes the instructions of the third type to the CatService module, the CatService module may not send a broadcast, and the CatService module may reply to the SIM card with a response instruction meaning "device not supported". For example, the message type corresponding to the response instruction of "device not supported" may be BEYOND_TERMINAL_CAPABILITY. Of course, the response instruction meaning "device not supported" can be in any possible manner, and the embodiment of the present application does not make specific limitations.

[0116] After the SIM card receives this response instruction, it will no longer resend the instruction, thereby reducing the power consumption of the terminal device, and no longer occupying the SIM card-related instruction channel, without affecting other SIM card services.

[0117] It can be understood that when the SIM card sends an instruction, it can be recorded in the log, and the log information corresponding to the instruction can be queried in the log of the terminal device. For example, when the SIM card sends a DISPLAY_TEXT instruction, the log information of DISPLAY_TEXT sent by the SIM card can be queried in the log of the terminal device. When the STK APP is not uninstalled, the log information corresponding to the response instruction replied by the STK APP can also be queried in the log of the terminal device. For example, the log information of OK replied by the STK APP can be queried in the log of the terminal device.

[0118] After the STK APP is uninstalled, when the CatService module replies to the SIM card with a response instruction of BEYOND_TERMINAL_CAPABILITY, the log information with the result code of BEYOND_TERMINAL_CAPABILITY can be queried in the log of the terminal device, which further indicates that after the STK APP is uninstalled, the terminal device adapts and processes the instructions reported by the SIM card, solving the power consumption problem of the terminal device and the problem of occupying the instruction channel.

[0119] 4) Instructions of the fourth type

[0120] The fourth type of instruction can mean that after the instruction of the SIM card is passed to the CatService module, it is not necessary for the CatService module to reply to the SIM card with a SIM card response instruction, nor is it necessary for the CatService module to send a broadcast, nor is it necessary for the STK APP to reply to the SIM card with a response instruction.

[0121] Exemplarily, the PROVIDE_LOCAL_INFORMATION instruction can indicate a request for the terminal device to transfer local information to the SIM card, and this instruction can belong to the type that does not require a SIM response instruction to be replied.

[0122] For the instructions of the fourth type, since it is not necessary for the STK APP to reply with a response instruction, the processing method of the instructions in the embodiment of the present application when the STK APP is not uninstalled and when the STK APP is uninstalled can be the same.

[0123] Exemplarily, Table 1 summarizes the processing methods of the above four types of instructions when the STK APP is not uninstalled and when the STK APP is uninstalled.

[0124] Table 1

[0125]

[0126]

[0127] The method for processing SIM card services in the embodiments of the present application will be described in detail below in combination with Scenario 1 and Scenario 2. The following embodiments can be combined with each other or implemented independently. For the same or similar concepts or processes, they may not be repeated in some embodiments.

[0128] Scenario 1: The scenario where a SIM card is inserted into a terminal device.

[0129] Exemplarily, when an STK APP is installed in the terminal device, when the user inserts a SIM card into the terminal device, the SIM card can send a DISPLAY_TEXT instruction. Optionally, the DISPLAY_TEXT instruction can be sent periodically. The DISPLAY_TEXT instruction can be passed to the catService module in the Framework layer. Then, the STK APP can obtain the DISPLAY_TEXT instruction from the catService module, and the STK APP can instruct the terminal device to display a pop-up window, which can also be referred to as a prompt box or a pop-up frame.

[0130] Exemplarily, when the user does not insert a SIM card, as shown in Figure 4 a of the figure, the terminal device can display the main interface, and the pop-up window for SIM card insertion is not displayed on the main interface. When the user inserts a SIM card into the terminal device, as shown in Figure 4 b of the figure, a pop-up window 401 can be displayed on the interface of the terminal device. The pop-up window 401 can display prompt information for prompting the user about the operator type used, an OK button, and a Cancel button. The Cancel button is used to cancel the display of the pop-up window 401 and does not display the interface of the STK APP; the OK button is used to cancel the display of the pop-up window 401 and can instruct the terminal device to display the preset interface of the STK APP. For example, when the user triggers the Cancel button, the terminal device can not display the pop-up window 401 and does not launch the STK APP. When the user triggers the OK button, as shown in Figure 4 c of the figure, the terminal device can not display the pop-up window 401 and can enter the interface of the STK APP.

[0131] Among them, when the STK APP receives the DISPLAY_TEXT instruction or the terminal device displays a pop-up window, the STK APP can send a response instruction to the SIM card. For example, the STK APP can send a response instruction of OK. Further, the SIM card can end sending the DISPLAY_TEXT instruction. It can be understood that in the embodiments of the present application, there is no limitation on the timing of the STK APP sending a response instruction and the terminal device displaying a pop-up window in the interface. That is to say, the terminal device can display a pop-up window after the STK APP sends a response instruction, or the STK APP can send a response instruction after the terminal device displays a pop-up window, or the terminal device can display a pop-up window in the interface while the STK APP sends a response instruction.

[0132] Further, the user can remove the SIM card from the terminal device and uninstall the STK APP. It can be understood that in the embodiments of the present application, there is no limitation on the timing of the user removing the SIM card from the terminal device and uninstalling the STK APP. That is to say, the user can first remove the SIM card from the terminal device and then uninstall the STK APP, or the user can first uninstall the STK APP and then remove the SIM card from the terminal device.

[0133] After the STK APP is uninstalled, when the user reinserts the SIM card into the terminal device, the SIM card can periodically send the DISPLAY_TEXT instruction, and the DISPLAY_TEXT instruction can be transmitted to the catService module in the Framework layer. However, since the STK APP has been uninstalled, the STK APP cannot receive the DISPLAY_TEXT instruction and cannot instruct the terminal device to display a pop-up window. That is to say, the interface of the terminal device will not display the interface pop-up window of the terminal device when the SIM card is inserted as shown in Figure 4 In addition, the STK APP cannot send a response instruction to the SIM card, resulting in the SIM card not ending the periodic sending of the DISPLAY_TEXT instruction.

[0134] In view of this, after the STK APP is uninstalled, the embodiments of the present application can implement sending a response instruction to the SIM card in the following manner.

[0135] Exemplarily, after the SIM card passes the DISPLAY_TEXT instruction to the CatService module, the CatService module may not send a broadcast, and the CatService module may reply to the SIM card with a response instruction meaning "device not supported". For example, the CatService module may reply to the SIM card with BEYOND_TERMINAL_CAPABILITY. It can be understood that when the CatService module replies to the SIM card with a response instruction of BEYOND_TERMINAL_CAPABILITY, the log information with the result code of BEYOND_TERMINAL_CAPABILITY can be queried in the log of the terminal device, thereby indicating that after the STK APP is uninstalled, the terminal device adapts to the instructions reported by the SIM card, solving the power consumption problem of the terminal device and the problem of occupying the instruction channel.

[0136] Scenario 2: The scenario where the terminal device sends a short message to the operator device based on the SIM card.

[0137] Exemplarily, when the STK APP is installed in the terminal device, when the terminal device processes the short message service, the interface display and instruction interaction can also be implemented based on the SIM card and the STK APP.

[0138] Taking the terminal device applied to foreign services as an example, as Figure 5 shown in a of, the terminal device can display the interface of the short message application. The user can edit the short message content in the short message application and trigger the send button, and then the terminal device can send the short message content 501 to the operator device based on the SIM card. The short message content 501 can be used to indicate unlocking the SIM card or querying the current SIM card payment information, etc. The specific content of the short message content 501 is not limited in the embodiments of the present application.

[0139] After receiving the short message content 501, the operator device may send a response instruction to the SIM card of the terminal device, and the response instruction may carry the service content for responding to the short message content 501. The SIM card may first report the DISPLAY_TEXT instruction and the service content for responding to the short message content 501 to the STK APP.

[0140] Among them, when the STK APP receives the DISPLAY_TEXT instruction or the terminal device displays a pop-up window, the STK APP may reply to the SIM card with a response instruction. For example, the STK APP may reply with an OK response instruction. It can be understood that in the embodiments of the present application, the timing of the STK APP replying to the response instruction and the terminal device displaying a pop-up window in the interface is not limited, and the specific details may refer to the relevant descriptions in Scenario 1 above and will not be elaborated here.

[0141] The STK APP can display a pop-up window based on the DISPLAY_TEXT instruction and the service content for responding to the SMS content 501. As Figure 5 shown in b of, a pop-up window 502 can be displayed on the terminal device interface. In the pop-up window 502, prompt information, an OK button, and a Cancel button for the service content for responding to the SMS content 501 can be displayed. When the user triggers the Cancel button, the terminal device can cancel the display of the pop-up window 502. When the user triggers the OK button, the SIM card can further report the SELECT_ITEM instruction and the service content for responding to the SMS content 501 to the STK APP.

[0142] The terminal device can display a menu interface adapted to the service content for responding to the SMS content 501 in the interface of the STK APP based on the SELECT_ITEM instruction. As Figure 5 shown in c of, the menu interface can include a service title adapted to the service content for responding to the SMS content 501, and a button to enter the detailed page corresponding to the service title. When the user triggers the button to enter the detailed page, the terminal device can enter the detailed page corresponding to the service title based on the STK APP. The specific content of the menu interface is not specifically limited in the embodiments of the present application.

[0143] Furthermore, the user can pull out the SIM card from the terminal device and uninstall the STK APP. It can be understood that the operations of the user pulling out the SIM card from the terminal device and uninstalling the STK APP can be not limited in timing. For specific details, reference can be made to the relevant descriptions in Scenario 1 above, and details will not be elaborated here.

[0144] After the STK APP is uninstalled, when the user edits the SMS content in the SMS application and triggers the send button, the terminal device can send the SMS content to the operator device based on the SIM card. The specific SMS content can be referred to the above description and details will not be elaborated here. After receiving the SMS content, the operator device can send a response instruction to the SIM card of the terminal device. The response instruction can carry the service content for responding to the SMS content. The SIM card can report the DISPLAY_TEXT instruction and the service content for responding to the SMS content to the STK APP.

[0145] However, since the STK APP has been uninstalled, the STK APP cannot receive the DISPLAY_TEXT instruction and cannot instruct the terminal device to display a pop-up window. That is to say, the interface of the terminal device will not display, for example Figure 4The interface pop-up window shown in b. In addition, the STK APP cannot send a response instruction to the SIM card, resulting in the SIM card not ending the periodic DISPLAY_TEXT instruction.

[0146] In view of this, after the STK APP is uninstalled, the embodiments of the present application can implement sending a response instruction to the SIM card in the following manner.

[0147] Exemplarily, after the SIM card passes the DISPLAY_TEXT instruction to the CatService module, the CatService module can not send a broadcast, and the CatService module can send a response instruction with the meaning of "device not supported" to the SIM card. For example, the CatService module can send BEYOND_TERMINAL_CAPABILITY to the SIM card. It can be understood that when the CatService module sends a response instruction of BEYOND_TERMINAL_CAPABILITY to the SIM card, the log information with the result code of BEYOND_TERMINAL_CAPABILITY can be queried in the log of the terminal device, thereby indicating that after the STK APP is uninstalled, the terminal device adapts to the instruction reported by the SIM card, solving the power consumption problem of the terminal device and the problem of occupying the instruction channel.

[0148] Specifically, after the STK APP is uninstalled, Figure 6 is a schematic flowchart of a SIM card service processing provided by the embodiments of the present application. The specific steps can be:

[0149] S601. The CatService module receives the instruction reported by the SIM card.

[0150] S602. The CatService module determines whether the instruction requires the STK APP to send a response instruction.

[0151] After the CatService module receives the instruction reported by the SIM card, the CatService module can determine whether the instruction belongs to the third type of instruction. If the instruction reported by the SIM card does not belong to the third type of instruction, it means that the SIM card does not require the STK APP to send a response instruction. If the instruction reported by the SIM card belongs to the third type of instruction, it means that the SIM card requires the STK APP to send a response instruction.

[0152] S603. If the CatService module determines that the STK APP does not need to send a response instruction, the CatService module processes the instruction reported by the SIM card.

[0153] It can be understood that the instructions that do not require the STK APP to reply can be the instructions of the first type, the second type, or the fourth type in Table 1 above. When the instruction that does not require the STK APP to reply is of the first type, the terminal device can reply to the SIM card with a response instruction through the CatService module, without the need for the STK APP to process the instruction. When the instruction that does not require the STK APP to reply is of the second type, the terminal device can send a broadcast through the CatService module, and the STK APP can receive the broadcast for service processing or display the corresponding interface, but does not require the STK APP to reply with a response instruction. When the instruction that does not require the STK APP to reply is of the fourth type, it is not necessary for the CatService module to reply to the SIM card with a SIM card response instruction, nor is it necessary for the CatService module to send a broadcast, nor is it necessary for the STK APP to reply to the SIM card with a response instruction.

[0154] S604. If the CatService module determines that a response instruction from the STK APP is required, further, the CatService module determines whether the STK APP is installed in the terminal device.

[0155] It can be understood that the instructions that require the STK APP to reply can be the instructions of the third type in Table 1 above.

[0156] S605. If the STK APP is installed in the terminal device, the CatService module sends the instruction reported by the SIM card to the STK APP through a broadcast for processing.

[0157] It can be understood that the STK APP can perform corresponding service processing or display the corresponding interface after receiving the broadcast.

[0158] S606. If the STK APP is not installed in the terminal device, the CatService module replies to the SIM card with the response instruction corresponding to "device not supported".

[0159] It should be noted that the above embodiments are all described by taking the terminal device processing the instruction reported by the SIM card when the STK APP is uninstalled as an example. In a possible implementation, the STK APP can be replaced with any application that may cause some modules in the terminal device to continuously resend instructions after uninstallation, and the instruction reported by the SIM card can also be replaced with any instruction that requires an uninstalled application to reply with an instruction. The embodiments of the present application are not specifically limited.

[0160] Specifically, Figure 7A schematic diagram of SIM card service processing provided by an embodiment of the present application. Here, taking Scenario 1 (the scenario where a SIM card is inserted into a terminal device) as an example, the method of the present application is described as follows:

[0161] S701. At a first moment, after the user inserts a SIM card into the terminal device, the terminal device obtains a first instruction through the SIM card.

[0162] In an embodiment of the present application, the first moment may be the moment when the terminal device obtains the first instruction through the SIM card, or it can be understood as the moment when the SIM card application obtains the first instruction before the SIM card application is uninstalled from the terminal device.

[0163] The first instruction may be an instruction of the SIM card received by the SIM card application when there is a SIM card inserted in the terminal device. Exemplarily, the first instruction may be the DISPLAY_TEXT instruction reported by the SIM card in the corresponding embodiment of the above Scenario 1.

[0164] The process of how the terminal device obtains the first instruction through the SIM card can refer to the Figure 3 corresponding SIM card instruction interaction process among software modules in the terminal device, which will not be elaborated here.

[0165] S702. The terminal device determines whether the first instruction requires a reply from the SIM card application.

[0166] In an embodiment of the present application, the terminal device may determine whether a reply from the SIM card application is required according to the instruction type reported by the SIM. Specifically, determining whether the first instruction requires a reply from the SIM card application can refer to the Figure 6 relevant descriptions of S602, S603, and S604 in the corresponding embodiment above, which will not be elaborated here.

[0167] If the terminal device determines that the first instruction requires a reply from the SIM card application, it executes the steps of S703; if the terminal device determines that the first instruction does not require a reply from the SIM card application, it executes the steps of S711.

[0168] S703. The terminal device determines whether the SIM card application is installed.

[0169] In an embodiment of the present application, when the first instruction requires a reply from the SIM card application, the terminal device may determine whether the SIM card application is installed.

[0170] Specifically, for the terminal device to determine whether the SIM card application is installed, it can refer to the Figure 6The relevant descriptions of S604, S605, and S606 in the corresponding embodiments. Exemplarily, if the terminal device determines that the SIM card application is installed, it executes the step of S704. The catService can send the instruction to the SIM card application through broadcasting, so as to reply the second instruction to the SIM card through the SIM card application. If the terminal device determines that the SIM card application is not installed, it executes the step of S710. The terminal device can reply the instruction corresponding to "device not supported" to the SIM card through a preset module.

[0171] S704. The terminal device replies the second instruction to the SIM card through the SIM card application.

[0172] In the embodiments of the present application, the second instruction can be a response instruction replied by the SIM card application to the SIM card. For example, the SIM card application can reply an OK response instruction to the SIM card. The type of the second instruction can be an integer type, an enumeration type, or other data types. The specific content and type of the reply of the second instruction are not limited in the embodiments of the present application.

[0173] When the terminal device determines that the SIM card application is installed, the terminal device can reply the second instruction to the SIM card through the SIM card application. Specifically, the process of the terminal device replying the second instruction to the SIM card through the SIM card application can refer to the above Figure 3 The interaction process of the SIM card instructions among the software modules in the corresponding terminal device will not be elaborated.

[0174] S705. At the second moment, the terminal device displays a pop-up window of the SIM card application. The second moment is later than the first moment. Between the second moment and the third moment, the SIM card on the terminal device is removed. The third moment is later than the second moment.

[0175] In the embodiments of the present application, the second moment can be the moment when the terminal device displays the pop-up window of the SIM card application, or the moment when the terminal device replies the second instruction to the SIM card through the SIM card application. It can be understood that the moment when the terminal device displays the pop-up window of the SIM card application and the moment when the terminal device replies the second instruction to the SIM card through the SIM card application can be not distinguished in the order of precedence. That is to say, the terminal device can display the pop-up window of the SIM card application first, or reply the second instruction to the SIM card through the SIM card application first. The embodiments of the present application do not make a limitation.

[0176] The third moment can be the moment when the terminal device uninstalls the SIM card application. It can be understood that the moment when the SIM card on the terminal device is removed can be before the terminal device uninstalls the SIM card application, or after the terminal device uninstalls the SIM card application. The embodiments of the present application do not make a limitation.

[0177] S706. At the third moment, in response to the operation of uninstalling the SIM card application, the terminal device uninstalls the SIM card application. Between the third moment and the fourth moment, the user inserts a SIM card into the terminal device, and the fourth moment is later than the third moment.

[0178] In the embodiments of the present application, the fourth moment may be the moment when the terminal device obtains the first instruction through the SIM card after the user inserts the SIM card into the terminal device in the case where the SIM card application is uninstalled. It can be understood that between the uninstallation of the SIM card application and the fourth moment, the user has inserted the SIM card into the terminal device.

[0179] S707. At the fourth moment, the terminal device obtains the first instruction through the SIM card.

[0180] Similarly, the process of how the terminal device obtains the first instruction through the SIM card can refer to the above Figure 3 corresponding SIM card instruction interaction process among the software modules in the terminal device, and will not be elaborated here.

[0181] S708. The terminal device determines whether the first instruction requires a reply from the SIM card application.

[0182] Specifically, how the terminal device determines whether the first instruction requires a reply from the SIM card application can refer to the relevant description in S702 above, and will not be elaborated here.

[0183] If the first instruction requires a reply from the SIM card application, then perform the steps of S709; if the first instruction does not require a reply from the SIM card application, then perform the steps of S711.

[0184] S709. The terminal device determines whether the SIM card application is installed.

[0185] Specifically, the execution steps after the terminal device determines whether the SIM card application is installed can refer to the relevant description in S703 above, and will not be elaborated here.

[0186] If the terminal device determines that the SIM card application is installed, then perform the steps of S712; if the terminal device determines that the SIM card application is not installed, then perform the steps of S710.

[0187] S710. The terminal device sends a third instruction to the SIM card through a preset module, and the terminal device does not display the pop-up window of the SIM card application.

[0188] In the embodiments of the present application, the preset module may be the relevant description of S606 in the above Figure 6 corresponding embodiments, and the preset module sends the instruction corresponding to "device not supported" to the SIM card.

[0189] Among them, the preset module is a module different from the SIM card application, and the preset module can have the ability to reply to the SIM card response instruction. Exemplarily, the preset module can be the CatService module in the Framework layer of the terminal device in the embodiment corresponding to Scenario 1 and the embodiment corresponding to Scenario 2 above.

[0190] The third instruction can be an instruction with the meaning of "device not supported" sent by the preset module to the SIM card. Exemplarily, the third instruction can be the BEYOND_TERMINAL_CAPABILITY instruction replied by the CatService module to the SIM card in the embodiment corresponding to Scenario 1 above.

[0191] S711. The terminal device replies a fourth instruction to the SIM card through the preset module, or the terminal device does not reply the first instruction.

[0192] In the embodiment of the present application, the fourth instruction can be a response instruction that the terminal device can reply to the SIM card through the preset module when the SIM card reports a first type of instruction. For the specific processing of the first type of instruction, reference can be made to Table 1 above and Figure 6 the relevant description of S603 in the corresponding embodiment, which will not be elaborated here.

[0193] S712. The terminal device replies a second instruction to the SIM card through the SIM card application.

[0194] Specifically, for the terminal device to reply a second instruction to the SIM card through the SIM card application, reference can be made to the relevant description in S704 above, which will not be elaborated here.

[0195] A method for processing SIM card services provided by the embodiment of the present application, after the SIM card application is uninstalled, when the terminal device can reply a response instruction to the SIM card through other modules, such as the CatService module, to prevent the SIM card from resending the instruction. Thus, while the SIM card application in the terminal device can be uninstalled, the power consumption of the terminal device can be reduced and the use of other service functions is not affected, improving the user experience.

[0196] Optionally, in Scenario 2, that is, the scenario where the terminal device sends a short message to the operator device based on the SIM card, in combination with Figure 7 the corresponding embodiment, after the fourth moment, the user can send a short message to the SIM card operator device through the terminal device; specifically, Figure 8 this is another schematic diagram of SIM card service processing provided by the embodiment of the present application. It can be understood that in some possible implementations, Figure 8 the embodiments corresponding to the corresponding scenarios and Figure 7 the embodiments corresponding to the corresponding scenarios can also be executed independently and separately, and the embodiments of the present application do not make any limitations.

[0197] Taking Scenario 2 (the scenario where the terminal device sends a short message to the operator device based on the SIM card) as an example, the method of the present application is described as follows. The method includes:

[0198] S801. The user sends a short message to the SIM card operator device through the terminal device.

[0199] In the embodiment of the present application, the specific content of the short message sent can refer to the description in the corresponding embodiment of Scenario 2 above, and will not be elaborated here.

[0200] S802. The terminal device obtains the first instruction and the short message reply message through the SIM card.

[0201] In the embodiment of the present application, after the user sends a short message to the SIM card operator device through the terminal device, the SIM card can receive the short message reply from the operator device and send an instruction to the SIM card application. It can be understood that the first instruction can be the instruction of the SIM card received by the SIM card application. Exemplarily, the first instruction can be the DISPLAY_TEXT instruction reported by the SIM card in the corresponding embodiment of Scenario 2 above.

[0202] The process of how the terminal device obtains the first instruction through the SIM card can refer to the Figure 3 interaction process of the SIM card instructions among the software modules in the corresponding terminal device, and will not be elaborated here.

[0203] S803. The terminal device determines whether the first instruction requires a reply from the SIM card application.

[0204] In the embodiment of the present application, the terminal device can determine whether a reply from the SIM card application is required according to the type of the instruction reported by the SIM. Specifically, determining whether the first instruction requires a reply from the SIM card application can refer to the Figure 6 relevant descriptions of S602, S603, and S604 in the corresponding embodiment above, and will not be elaborated here.

[0205] If the terminal device determines that the first instruction requires a reply from the SIM card application, it executes the step of S804; if the terminal device determines that the first instruction does not require a reply from the SIM card application, it executes the step of S817.

[0206] S804. The terminal device determines whether the SIM card application is installed.

[0207] In the embodiment of the present application, when the first instruction requires a reply from the SIM card application, the terminal device can determine whether the SIM card application is installed.

[0208] Specifically, for the terminal device to determine whether the SIM card application is installed, it can refer to the Figure 6Descriptions related to S604, S605, and S606 in the corresponding embodiments. Exemplarily, if the terminal device determines that the SIM card application is installed, it executes the steps of S805. The catService can send the instruction to the SIM card application through broadcasting, so that the SIM card application can reply to the SIM card with a second instruction and display a pop-up window of the SIM card application, and the pop-up window includes an OK button; if the terminal device determines that the SIM card application is not installed, it executes the steps of S816, and the terminal device can reply to the SIM card with an instruction corresponding to "the device does not support" through a preset module.

[0209] S805: The terminal device replies to the SIM card with a second instruction through the SIM card application and displays a pop-up window of the SIM card application, and the pop-up window includes an OK button.

[0210] In the embodiments of the present application, the second instruction can be a response instruction replied by the SIM card application to the SIM card. For example, the SIM card application can reply to the SIM card with an OK response instruction. The type of the second instruction can be integer type, enumeration type, or other data types. The specific content and type of the second instruction reply are not limited in the embodiments of the present application.

[0211] When the terminal device determines that the SIM card application is installed, the terminal device can reply to the SIM card with a second instruction through the SIM card application. Specifically, the process of the terminal device replying to the SIM card with a second instruction through the SIM card application can refer to the above Figure 3 The interaction process of the SIM card instructions among the software modules in the corresponding terminal device will not be elaborated.

[0212] It can be understood that the moment when the terminal device displays the pop-up window of the SIM card application and the moment when the terminal device replies to the SIM card with a second instruction through the SIM card application can be not distinguished in sequence. That is to say, the terminal device can first display the pop-up window of the SIM card application, or can first reply to the SIM card with a second instruction through the SIM card application, which is not limited in the embodiments of the present application.

[0213] S806: In response to the triggering of the OK button, the terminal device obtains a fifth instruction through the SIM card.

[0214] In the embodiments of the present application, after the user triggers the OK button, the SIM card can further send an instruction to the SIM card application, and the fifth instruction can be the instruction of the SIM card received by the SIM card application. Exemplarily, the fifth instruction can be the SELECT_ITEM instruction reported by the SIM card in the corresponding embodiment of the above scenario two.

[0215] The process of how the terminal device obtains the fifth instruction through the SIM card can refer to the above Figure 3The interaction process of SIM card instructions among software modules in the corresponding terminal device will not be elaborated further.

[0216] S807. The terminal device determines whether the fifth instruction requires a SIM card application response.

[0217] Similarly, the terminal device can determine whether a SIM card application response is required based on the instruction type reported by the SIM. Specifically, to determine whether the fifth instruction requires a SIM card application response, reference can be made to the relevant descriptions of S602, S603, and S604 in the corresponding embodiment above. Figure 6 The relevant descriptions of S602, S603, and S604 in the corresponding embodiment will not be elaborated further.

[0218] If the terminal device determines that the fifth instruction requires a SIM card application response, it executes step S808; if the terminal device determines that the first instruction does not require a SIM card application response, it executes step S817.

[0219] S808. The terminal device determines whether the SIM card application is installed.

[0220] In the embodiment of the present application, when the fifth instruction requires a SIM card application response, the terminal device can determine whether the SIM card application is installed.

[0221] Specifically, for the terminal device to determine whether the SIM card application is installed, reference can be made to the relevant descriptions of S604, S605, and S606 in the corresponding embodiment above. Exemplarily, if the terminal device determines that the SIM card application is installed, it executes step S809, and catService can send the instruction to the SIM card application through a broadcast, so as to reply to the sixth instruction to the SIM card through the SIM card application; if the terminal device determines that the SIM card application is not installed, it executes step S816, and the terminal device can reply to the instruction corresponding to "device not supported" to the SIM card through a preset module. Figure 6

[0222] S809. The terminal device replies to the sixth instruction to the SIM card through the SIM card application.

[0223] In the embodiment of the present application, the sixth instruction can be a response instruction replied by the SIM card application to the SIM card. For example, the SIM card application can reply an OK response instruction to the SIM card. The type of the sixth instruction can be an integer type, an enumeration type, or other data types. The specific content and type of the sixth instruction reply are not limited in the embodiment of the present application.

[0224] Figure 3 The process of the terminal device replying to the sixth instruction to the SIM card through the SIM card application can refer to the interaction process of SIM card instructions among software modules in the corresponding terminal device above. The relevant descriptions will not be elaborated further.

[0225] ​S810. The terminal device displays a menu interface of the SIM card application, where the menu interface includes a text message reply message.

[0226] When the terminal device determines that the SIM card application has been installed, the terminal device displays the menu interface of the SIM card application. For the specific menu interface, please refer to the above Figure 5 The interface shown in the figure can be found in Figure 5 The description of the corresponding scenario 2 is not repeated here.

[0227] S811. In response to the operation of uninstalling the SIM card application, the terminal device uninstalls the SIM card application.

[0228] In the embodiment of the present application, when the user triggers the operation of uninstalling the SIM card application, the terminal device can uninstall the SIM card application.

[0229] S812. The user sends a text message to the SIM card operator's device through the terminal device.

[0230] In the embodiment of the present application, the specific content of the SMS sent can refer to the description in the embodiment corresponding to the above scenario 2 and will not be repeated here.

[0231] S813: The terminal device obtains the first instruction and the SMS reply message through the SIM card.

[0232] In the embodiment of the present application, when the user sends a text message to the SIM card operator device through the terminal device, the SIM card can receive the text message replied by the operator device and send instructions to the SIM card application. The specific first instruction can refer to the description in S802 above and will not be repeated here.

[0233] The process of how the terminal device obtains the first instruction through the SIM card can refer to the above Figure 3 The interaction process of SIM card instructions between the corresponding software modules in the terminal device will not be repeated here.

[0234] S814: The terminal device determines whether the first instruction requires a SIM card application reply.

[0235] In the embodiment of the present application, the terminal device can determine whether a SIM card application response is required based on the command type reported by the SIM card. Figure 6 The relevant descriptions of S602, S603 and S604 in the corresponding embodiments are not repeated here.

[0236] If the terminal device determines that the first instruction requires a SIM card application reply, step S815 is executed; if the terminal device determines that the first instruction does not require a SIM card application reply, step S817 is executed.

[0237] S815. The terminal device determines whether the SIM card application is installed.

[0238] Specifically, the execution steps after the terminal device determines whether the SIM card application is installed can refer to the relevant descriptions in S703 above, and will not be elaborated here.

[0239] If the terminal device determines that the SIM card application is installed, it executes the steps of S718; if the terminal device determines that the SIM card application is not installed, it executes the steps of S716.

[0240] S816. The terminal device sends a third instruction to the SIM card through a preset module, and the terminal device does not display the pop-up window of the SIM card application.

[0241] In the embodiments of the present application, the preset module can be the relevant description in S606 in the above Figure 6 corresponding embodiment. The preset module sends an instruction corresponding to "device not supported" to the SIM card. Exemplarily, the preset module can be the CatService module in the Framework layer of the terminal device in the embodiment corresponding to Scenario 1 and the embodiment corresponding to Scenario 2 above. The specific preset module and the third instruction can refer to the description in S710 in the above Figure 7 corresponding embodiment, and will not be elaborated here.

[0242] S817. The terminal device sends a fourth instruction to the SIM card through the preset module, or the terminal device does not reply to the first instruction.

[0243] In the embodiments of the present application, the fourth instruction can be a response instruction that the terminal device can send to the SIM card through the preset module when the SIM card reports a first type of instruction. The specific processing of the first type of instruction can refer to Table 1 above and Figure 6 the relevant description in S603 in the corresponding embodiment, and will not be elaborated here.

[0244] S818. The terminal device sends a second instruction to the SIM card through the SIM card application.

[0245] Specifically, the terminal device sending a second instruction to the SIM card through the SIM card application can refer to the relevant description in S704 above, and will not be elaborated here.

[0246] In the embodiments of the present application, after the user inserts the SIM card into the terminal device, the user can send a short message to the SIM card operator device through the terminal device. In the case where the SIM card application is uninstalled, the terminal device can send a third instruction to the SIM card through the preset module, which can cause the SIM card to end the periodic sending of instructions, so that the instruction does not occupy the SIM card-related instruction channel.

[0247] The above mainly introduces the solution provided by the embodiments of the present application from the perspective of methods. To implement the above functions, it includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, in combination with the method steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0248] The embodiments of the present application can divide the functional modules of the device for implementing the method of SIM card service processing according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical functional division, and there may be other division methods in actual implementation.

[0249] As Figure 9 shown is a schematic structural diagram of a chip provided by an embodiment of the present application. The chip 900 includes one or more than two (including two) processors 901, a communication line 902, a communication interface 903, and a memory 904.

[0250] In some embodiments, the memory 904 stores the following elements: executable modules or data structures, or subsets thereof, or extended sets thereof.

[0251] The methods described in the above embodiments of the present application can be applied to the processor 901 or implemented by the processor 901. The processor 901 may be an integrated circuit chip with signal processing capabilities. During the implementation process, the steps of the above methods can be completed by the integrated logic circuit in the hardware of the processor 901 or instructions in software form. The above-mentioned processor 901 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. The processor 901 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of the present application.

[0252] The steps of the method disclosed in the embodiments of the present application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the art such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). This storage medium is located in the memory 904, and the processor 901 reads the information in the memory 904 and combines its hardware to complete the steps of the above method.

[0253] The processor 901, the memory 904, and the communication interface 903 can communicate with each other through the communication line 902.

[0254] In the above embodiments, the instructions stored in the memory for the processor to execute can be implemented in the form of a computer program product. Among them, the computer program product can be pre-written in the memory in advance, or downloaded and installed in the memory in the form of software.

[0255] The embodiments of the present application further provide a computer program product including one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, a computer, a server, or a data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can store, or a data storage device such as a server or a data center including one or more available media integrated. For example, the available medium can include a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a digital versatile disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)).

[0256] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. A computer-readable medium may include a computer storage medium and a communication medium, and may also include any medium that can transfer a computer program from one place to another. A storage medium may be any target medium accessible by a computer.

[0257] As a possible design, a computer-readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; a computer-readable medium may include a magnetic disk storage or other magnetic disk storage devices. Moreover, any connection line can also be appropriately referred to as a computer-readable medium. For example, if software is transmitted using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies (such as infrared, radio, and microwave) from a website, server, or other remote source, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. As used herein, magnetic disks and optical discs include optical discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where magnetic disks typically reproduce data magnetically, while optical discs utilize lasers to optically reproduce data.

[0258] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processing unit of the computer or other programmable data processing devices generate means for implementing the specified functions in Figure 1 one or more of the flows or Figure 1 means for implementing the specified functions in one or more of the blocks.

Claims

1. A method for processing SIM card services, characterized in that, applied to a terminal device, the terminal device is installed with a SIM card application, and the method includes: At a first moment, after the user inserts a SIM card into the terminal device, the terminal device obtains a first instruction through the SIM card; The terminal device replies a second instruction to the SIM card through the SIM card application; At a second moment, the terminal device displays a pop-up window of the SIM card application, the second moment is later than the first moment, and between the second moment and a third moment, the SIM card on the terminal device is removed, the third moment is later than the second moment; At the third moment, in response to an operation of uninstalling the SIM card application, the terminal device uninstalls the SIM card application, and between the third moment and a fourth moment, the user inserts a SIM card into the terminal device, the fourth moment is later than the third moment; At the fourth moment, the terminal device obtains the first instruction through the SIM card; The terminal device sends a third instruction to the SIM card through a preset module, and the terminal device does not display the pop-up window of the SIM card application.

2. The method according to claim 1, characterized in that, Between the first moment and the second moment, it includes: The terminal device determines whether the first instruction requires a reply from the SIM card application; If the first instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed; The terminal device replies a second instruction to the SIM card through the SIM card application, including: if the SIM card application is installed, the terminal device replies a second instruction to the SIM card through the SIM card application.

3. The method according to claim 2, characterized in that, If the first instruction does not require a reply from the SIM card application, the terminal device replies a fourth instruction to the SIM card through the preset module, or the terminal device does not reply the first instruction.

4. The method according to any one of claims 1-3, characterized in that, After the fourth moment, the method includes: The terminal device determines whether the first instruction requires a reply from the SIM card application; If the first instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed; The terminal device sends a third instruction to the SIM card through the preset module, including: if the SIM card application is not installed, the terminal device sends a third instruction to the SIM card through the preset module.

5. The method according to any one of claims 1-4, characterized in that, After the fourth moment, the method includes: The user sends a short message to the SIM card operator device through the terminal device; The terminal device obtains the first instruction and a short message reply message through the SIM card; The terminal device sends the third instruction to the SIM card through the preset module, and the terminal device does not display the pop-up window of the SIM card application.

6. The method according to claim 5, characterized in that, After the terminal device obtains the first instruction and the SMS reply message through the SIM card, it includes: The terminal device determines whether the first instruction requires a reply from the SIM card application; If the first instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed; The terminal device sends the third instruction to the SIM card through the preset module, including: if the SIM card application is not installed, the terminal device sends the third instruction to the SIM card through the preset module.

7. The method according to claim 5 or 6, wherein, Between the second moment and the moment when the SIM card on the terminal device is removed, the method includes: The user sends an SMS to the SIM card operator device through the terminal device; The terminal device obtains the first instruction and the SMS reply message through the SIM card; The terminal device replies the second instruction to the SIM card through the SIM card application, and displays a pop-up window of the SIM card application, and the pop-up window includes an OK button; In response to the triggering of the OK button, the terminal device obtains a fifth instruction through the SIM card; The terminal device replies a sixth instruction to the SIM card through the SIM card application; The terminal device displays a menu interface of the SIM card application, and the menu interface includes the SMS reply message.

8. The method according to any one of claims 1-7, wherein, After the fourth moment, the method further includes: The terminal device obtains a seventh instruction through the SIM card; The terminal device determines whether the seventh instruction requires a reply from the SIM card application; If the seventh instruction requires a reply from the SIM card application, the terminal device determines whether the SIM card application is installed; If the SIM card application is not installed, the terminal device sends the third instruction to the SIM card through the preset module, and the terminal device does not execute the task of the seventh instruction.

9. The method according to claim 8, wherein, The seventh instruction includes any one or more of the following: SET_UP_EVENT_LIST, LAUNCH_BROWSER, GET_INPUT, GET_INKEY, PLAY_TONE, SET_UP_CALL, DISPLAY_TEXT, SELECT_ITEM.

10. A terminal device, wherein, includes: A memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program to execute the method for SIM card service processing according to any one of claims 1-9.

11. A computer-readable storage medium, wherein, The computer-readable storage medium stores instructions, and when the instructions are executed, the computer is caused to execute the method for SIM card service processing according to any one of claims 1-9.

12. A computer program product, wherein, Comprising a computer program which, when run, causes a terminal device to execute the method for processing SIM card services according to any one of claims 1-9.

Citation Information

Patent Citations

  • Realizing method and device of user identification STK (SIM Card Tool Kit)

    CN101835142A

  • Method, system and device for writing electronic data

    CN102592358A