CN108848492B - Method, device, terminal and storage medium for starting user identity identification card - Google Patents

Method, device, terminal and storage medium for starting user identity identification card Download PDF

Info

Publication number
CN108848492B
CN108848492B CN201810530579.0A CN201810530579A CN108848492B CN 108848492 B CN108848492 B CN 108848492B CN 201810530579 A CN201810530579 A CN 201810530579A CN 108848492 B CN108848492 B CN 108848492B
Authority
CN
China
Prior art keywords
sim
application
terminal
target application
mobile data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810530579.0A
Other languages
Chinese (zh)
Other versions
CN108848492A (en
Inventor
张伟超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810530579.0A priority Critical patent/CN108848492B/en
Publication of CN108848492A publication Critical patent/CN108848492A/en
Application granted granted Critical
Publication of CN108848492B publication Critical patent/CN108848492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Abstract

The embodiment of the application discloses a method, a device, a terminal and a storage medium for starting an SIM (subscriber identity module), which belong to the technical field of computers. Because the method for enabling the SIM provided in this embodiment can obtain the application identifier of the target application running in the background of the terminal system, the corresponding first SIM can be further determined according to the application identifier, and the SIM is enabled to receive and transmit mobile data for the target application. Therefore, the embodiment can provide the corresponding SIM when the application needs to access the network in the background, thereby improving the capability of the terminal for scheduling at least two SIMs and improving the efficiency of using the mobile data traffic of the SIM.

Description

Method, device, terminal and storage medium for starting user identity identification card
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, a terminal and a storage medium for starting a Subscriber Identity Module (SIM).
Background
A subscriber identity module (sim) is a card for storing contents such as information of a client of a terminal, an encryption key, and an address book of a user. Generally, the number of SIMs that a terminal can plug in depends on the number of card slots of the SIM in the terminal. For example, if a terminal has two SIM card slots, the terminal may be plugged with one SIM or two SIMs.
In the related art, a user generally uses two SIMs in one terminal, and each SIM provides a different mobile data package. The terminal may detect an application currently running in the foreground of the system and enable a SIM adapted for the application to provide mobile data services.
However, when the terminal runs the designated application in the foreground, each running application terminal in the terminal can receive and transmit the mobile data. Because the related technology only uses the SIM corresponding to the foreground application, the terminal cannot enable the mobile data package of another SIM for the application which actually consumes the mobile traffic in the terminal, and the mobile data cannot be reasonably used.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a storage medium for starting a Subscriber Identity Module (SIM), which can solve the problem that mobile data cannot be reasonably used because the terminal cannot automatically start a proper SIM aiming at an application which actually consumes mobile traffic. The technical scheme is as follows:
according to a first aspect of the present application, a method for enabling a Subscriber Identity Module (SIM) is provided, which is applied in a terminal, and the method includes:
acquiring an application identifier of a target application, wherein the target application currently runs in a system background of the terminal and requests to receive and transmit mobile data;
selecting a first SIM corresponding to the target application from at least two SIM cards inserted into the terminal according to the application identifier;
enabling the first SIM to transceive the mobile data for the target application.
According to a second aspect of the present application, there is provided an apparatus for enabling a Subscriber Identity Module (SIM), which is applied in a terminal, the apparatus including:
the identification acquisition module is used for acquiring an application identification of a target application, wherein the target application currently runs in a system background of the terminal and currently requests to receive and transmit mobile data;
the SIM determining module is used for selecting a first SIM corresponding to the target application from at least two SIM cards inserted into the terminal according to the application identifier;
a SIM enabling module for enabling the first SIM to receive and transmit the mobile data for the target application.
According to a third aspect of the present application, there is provided a terminal comprising a processor and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the method for enabling a subscriber identity module SIM according to the first aspect.
According to a fourth aspect of the present application, there is provided a computer-readable storage medium having at least one instruction stored therein, the instruction being loaded and executed by a processor to implement the method for enabling a subscriber identity card, SIM, according to the first aspect.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
when the scheme provided by the embodiment is executed, the corresponding first SIM can be selected from at least two SIMs inserted in the terminal according to the application identifier by acquiring the application identifier of the target application, and the first SIM is enabled to transmit and receive mobile data for the target application, wherein the target application currently runs in a system background of the terminal, and the target application currently requests to transmit and receive the mobile data. The method for enabling the SIM provided in this embodiment can obtain the application identifier of the target application running in the background of the terminal system and requesting to receive and transmit the mobile data, so that the corresponding first SIM can be further determined according to the application identifier, and the SIM is enabled to receive and transmit the mobile data for the target application. Therefore, the embodiment can provide the corresponding SIM when the application needs to access the network in the background, improve the capability of the terminal for scheduling at least two SIMs, and improve the efficiency of using the mobile data traffic of the SIM.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for enabling a subscriber identity module SIM according to an exemplary embodiment of the present application;
fig. 2 is a flowchart of a method for enabling a SIM according to another exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of setting an association relationship provided based on the embodiment shown in FIG. 2;
FIG. 4 is a user interface showing a SIM-enabled prompt control provided based on the embodiment shown in FIG. 2;
fig. 5 is a block diagram of an apparatus for enabling a SIM according to an exemplary embodiment of the present application;
fig. 6 is a block diagram of a terminal according to an exemplary embodiment of the present application;
fig. 7 is a block diagram of a terminal 700 according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In order to make the solution shown in the embodiments of the present application easy to understand, several terms appearing in the embodiments of the present application will be described below.
SIM: the card is used for storing contents such as information of a client of the terminal, an encryption key, an address book of a user and the like. In the terminal communication scenario, a gsm (global System for Mobile communication) digital Mobile phone needs to install the SIM in order to access the network for normal communication. In the GSM system, the SIM is used to uniquely identify a subscriber account and charges incurred by a GSM digital mobile telephone are recorded in the subscriber account uniquely identified by the SIM. In one possible scenario, the capacity of the SIM may be 8Kbit, 16Kbit, 32Kbit, 64 Kbit. Alternatively, a SIM with a capacity greater than 512Kbit may be named STK (SIM Tool kits).
Optionally, the SIM includes a physical subscriber identity card SIM and a virtual subscriber identity card eSIM (embedded-SIM). In one aspect, when the SIM is a physical SIM, the physical SIM may be classified according to size as: standard cards, Micro SIM and Nano SIM. The standard card can be 25mm multiplied by 15mm multiplied by 0.8mm, the Micro SIM can be 12mm multiplied by 15mm multiplied by 0.8mm, and the NanoSIM can be 12.3mm multiplied by 8.8mm multiplied by 0.7 mm. On the other hand, when the SIM is an eSIM, the eSIM will be factory-integrated in a communication module of the terminal, rather than being present in the form of a physical card. When the eSIM switches services between different operators, the eSIM can be switched to a corresponding operator network. For example, a terminal using eSIM may provide a user with an interface for selecting one carrier network with which the user selects to communicate based on signal strength and tariff.
Application identification: and the target application is used for indicating and calling the communication module of the terminal. Alternatively, the application identification may uniquely identify the target application. The application identification may be an installation package name of the target application. For example, if the terminal uses the android system, the application identifier may be an installation package name in the form of com. Wherein each application package name is capable of uniquely identifying a target application.
The target application comprises the following steps: is a background application running in the terminal. The background application may be an application in a running state in the terminal and the user interface in the background. For example, the application may be at least one of a music playing application running in the background and providing a music playing service, a third party application running in the background and providing a data downloading service, a map navigation application running in the background and providing a navigation service, a system service running in the background and providing a voice assistant service, a social application running in the background and providing a video chatting service or a voice chatting service, or a video application running in the background and providing a video playing service.
In a possible implementation manner, the target application may start to run when the user clicks a start icon of the target application, and start to execute the scheme when the target application transitions to a background to run and receives and transmits data traffic.
In another possible implementation manner, the target application may be an application called in a foreground application, for example, a news reading application a runs on a foreground of the terminal, and a call interface of a short video playing application B is embedded in the news reading application a. When the user clicks the calling interface, the terminal keeps the news reading application A running in the foreground, and calls the short video application B to play the related video. In this case, the short video application B runs in the background, and accesses the server of the short video application B through the network interface of the terminal to obtain data of the relevant video, so as to play the video provided by the short video application B in the user interface of the news reading application a. In this example, the target application is short video application B.
For example, the method for enabling the SIM may be applied to a terminal, where the terminal is configured with at least two SIMs. Optionally, the terminal may configure at least two physical SIMs, at least two esims, and both the physical SIMs and the esims. The terminal can comprise a mobile phone, a tablet computer, a television, a set-top box, smart glasses, a smart watch, a digital camera, an MP4 player terminal, an MP5 player terminal, a learning machine, a point-and-read machine, an electronic book, an electronic dictionary or a vehicle-mounted terminal and the like.
Please refer to fig. 1, which is a flowchart illustrating a method for enabling a subscriber identity module SIM according to an exemplary embodiment of the present application. The SIM enabling method can be applied to the terminal shown above. In fig. 1, the method for enabling the SIM includes:
step 110, acquiring an application identifier of the target application, wherein the target application currently runs in a system background of the terminal, and the target application currently requests to receive and transmit the mobile data.
In this embodiment, the terminal may be inserted with at least two SIMs. Wherein, both the two SIMs can receive and transmit mobile data, and different SIMs can respectively provide corresponding mobile data packages. The terminal can monitor the application running in the system background, and when the target application requesting to receive and send the mobile data exists in the application running in the system background, the terminal acquires the application identifier of the target application.
In a possible implementation manner, the terminal can determine the target application requesting to send and receive the mobile data by monitoring a network interface of the system bottom layer. Optionally, the terminal may determine, according to the process accessing the network interface, a packet name of the application to which the process belongs, and further determine the packet name as the application identifier of the target application.
In another possible implementation manner, the terminal may start a monitoring service, where the monitoring service is configured to monitor each process invoked by the background application, and when one of the processes requests to send or receive mobile data, the monitoring service obtains a packet name of the process application, and determines the packet name as the application identifier.
In yet another possible implementation manner, the terminal may be configured to detect whether the foreground application invokes the target application when the foreground application of the terminal displays the foreground user interface in a full screen manner, where the foreground application is used to display visual information of the foreground application, and the visual information is information displayed by visible light. When the foreground application calls the target application, the terminal starts the target application and controls the target application to provide the target service based on the mobile data.
Optionally, the terminal can display a target service based on the mobile data provided by the target application in a local area in the foreground application interface when the current screen displays the foreground application interface in a full screen mode.
For example, the foreground application is a news reading application a and the target application is a short video application B. When the news reading application A displays news contents in a full screen mode, the news reading application A calls the short video application B when receiving an operation that a user clicks a playing control embedded in a user interface, the short video application B runs in a background and requests to receive and send mobile data, after receiving related video data, videos are played in a playing area provided by the user interface of the news reading application A, and the effect that the short video application B in the background can display the videos at the same time when the news reading application A in a foreground displays visual information is achieved. Because the visual information displayed by the news reading application A is the information which is cached, the scheme ensures that the terminal can automatically select the proper SIM to receive and transmit the mobile data while displaying the related information normally, and provides the capability of automatically selecting the proper SIM by the terminal.
Optionally, the terminal may be further configured to run the target application in the background and control the target application to provide the target service based on the mobile data when the current screen shows the foreground application interface in a full screen. In this scenario, the target service may be one of a data download service, a navigation service, a music play service, a voice assistant service, and a voice chat service.
And step 120, selecting a first SIM corresponding to the target application from at least two SIM cards inserted into the terminal according to the application identifier.
In the embodiment of the present application, the terminal may be in a state of using mobile data, may be in a disconnected state, and may be in a connected state with a wireless local area network.
Optionally, when the terminal is in a state of using the mobile data, the terminal selects a first SIM corresponding to the target application from the at least two inserted SIMs according to the application identifier. In one possible implementation, when the terminal has transceived the mobile database using the first SIM, the terminal will determine the first SIM currently used. In another possible implementation manner, if the SIM that provides the terminal with transceiving mobile data is another SIM than the currently used SIM, the terminal determines that the other SIM is the first SIM.
Optionally, when the terminal is in a network disconnection state, the terminal directly acquires the application identifier to determine the first SIM corresponding to the target application.
Optionally, when the terminal is in a state of being connected to the network cable local area network, the execution of the scheme is stopped.
Step 130, the first SIM is enabled to receive and transmit mobile data for the target application.
In the embodiment of the application, the terminal enables the first SIM to transmit and receive mobile data for the target application.
Alternatively, when the terminal is in a state of using the mobile data and the first SIM is the SIM providing transceiving mobile data being used by the terminal before performing step 130, the terminal continues transceiving mobile data for the target application using the first SIM.
Alternatively, when the terminal is in a state of using the mobile data and the SIM providing transceiving mobile data, which is being used by the terminal before performing step 130, is different from the first SIM, the terminal enables the first SIM to transceive the mobile data for the target application. In this case, the terminal may deactivate other SIMs to transceive mobile data.
Optionally, when the terminal is in the network disconnection state, the terminal enables the first SIM to receive and transmit mobile data for the target application.
In summary, in the method for enabling an SIM provided in this embodiment, by obtaining an application identifier of a target application, a corresponding first SIM is determined from at least two SIMs installed in a terminal according to the application identifier, and the first SIM is enabled to receive and transmit mobile data for the target application, where the target application currently runs in a system background of the terminal, and the target application currently requests to receive and transmit the mobile data. Because the method for enabling the SIM provided in this embodiment can obtain the application identifier of the target application running in the background of the terminal system, the corresponding first SIM can be further determined according to the application identifier, and the SIM is enabled to receive and transmit mobile data for the target application. Therefore, the embodiment can provide the corresponding SIM when the application needs to access the network in the background, thereby improving the capability of the terminal for scheduling at least two SIMs and improving the efficiency of using the mobile data traffic of the SIM.
Based on the last embodiment, the terminal can also select the SIM for the target application multiple times, so that the terminal provides the most suitable SIM for the target application, please refer to the following embodiments.
Please refer to fig. 2, which is a flowchart illustrating a method for enabling a SIM according to another exemplary embodiment of the present application. The SIM enabling method can be applied to the terminal shown above. In fig. 2, the method for enabling the SIM includes:
step 201, receiving SIM specified operation in a setting user interface.
In an embodiment of the application, the SIM specification operation is used to indicate an association between the target application and the first SIM.
Optionally, the terminal can be capable of receiving a SIM specification operation in the setup user interface, which can be used to indicate an association between the target application and the first SIM. Alternatively, the SIM designating operation may be any one of a click, a short press, a long press, a light press, a heavy press, a drag, a slide, a large-area press, a small-area press, or a knuckle touch of the user's finger on the touch screen.
Please refer to fig. 3, which is a schematic diagram of setting an association relationship according to the embodiment shown in fig. 2. In fig. 3, the first application list 32 and the fourth application list 31 are displayed in parallel in the setting user interface 30. The terminal may receive a SIM-specific operation in the setup user interface 30. The SIM designating operation may be an operation of dragging the application icon 311. For example, before the operation of dragging the application icon 311 is received, the fourth application list 31 includes an a application, a C application, and an F application, and the first application list 32 includes a B application, a D application, an E application, and a G application. When the terminal receives an operation of dragging the application icon 311 from the fourth application list 31 to the first application list 32, the fourth application list 31 includes an application a and an application F, and the first application list 32 includes an application B, an application D, an application E, an application G, and an application C.
Step 202, establishing an association relation according to the SIM specified operation.
Based on the user interface shown in fig. 3, the terminal establishes an association relationship according to the SIM specified operation. If the SIM specifies that the operation is to drag the "C application" icon 311 from the first application list 31 to the fourth application list 32, the terminal establishes an association relationship between the C application and the first application according to the operation.
In one possible implementation, the SIM designation operation may also be user clicking on add button 321
Step 203, acquiring an application identifier of the target application, wherein the target application currently runs in a system background of the terminal, and the target application currently requests to receive and transmit the mobile data.
The execution process of step 203 is the same as that of step 110, and is not described herein again.
Step 204, searching the association relation containing the application identifier in the terminal.
And the incidence relation is used for indicating the corresponding relation between the application identifier and the first SIM. For example, the association shown in fig. 3 is provided as shown in table 1.
TABLE 1
First SIM B application Application D E applications G applications
Fourth SIM Application A C application F application
In table 1, the association indicates that the first SIM corresponds to the application identifications "B application", "D application", "E application", and "G application". The fourth SIM and the application identification "a application", "C application", and "F application".
After the step 204 is completed, the terminal may perform either the step 205 or the step 207.
And step 205, when the association relationship exists, determining the first SIM according to the association relationship.
Step 206, the first SIM is enabled to receive and transmit mobile data for the target application.
The execution process of step 206 is the same as the execution process of step 130, and is not described herein again.
It should be noted that, before the first SIM is enabled to transmit and receive mobile data for the target application, the terminal may further perform the following steps.
(1) Whether the target application receives and transmits the mobile data through the first SIM for the first time is detected.
(2) If the target application receives and transmits the mobile data through the first SIM for the first time, displaying an SIM enabling prompt control, wherein the SIM enabling prompt control is used for receiving SIM enabling operation;
(3) and when the SIM enabling prompt control receives the SIM enabling operation, enabling the first SIM to receive and transmit mobile data for the target application.
Please refer to fig. 4, which is a user interface for showing a SIM enabled prompt control provided based on the embodiment shown in fig. 2. In fig. 4, a prompt message "whether the first SIM is to be enabled to send and receive mobile data and approve" is shown in the SIM enabling prompt control 41. Optionally, the SIM-enabled prompt control 41 may also display a confirm button 411 and a reject button 412. When the user clicks the confirmation button 411 in the SIM enabling prompt control 41, the terminal enables the first SIM to send and receive mobile data for the target application. When the user clicks the reject button 412, the terminal does not enable the first SIM to receive and transmit mobile data for the target application, and maintains the current networking state.
And step 207, when the association does not exist, detecting whether the target application is the application of the non-charging data traffic cost supported by the second SIM.
Wherein the second SIM is a SIM of the at least two SIMs. And when the terminal does not detect the association relation of the application identifiers, detecting whether the target application is the application of the non-charging data traffic cost supported by the second SIM.
Optionally, the application of the exempt data traffic charges generally corresponds to a second SIM, which may handle the relevant packages provided by the operator, and different packages may provide different applications of the exempt data traffic charges.
After the step 207 is completed, the terminal may perform either the step 208 or the step 209.
And step 208, when the target application is the application for the charge-free data traffic cost supported by the second SIM, enabling the second SIM to receive and transmit the mobile data for the target application.
In one possible implementation, the terminal may determine whether the target application is a stream-exempt application by the following steps.
(1) The terminal monitors whether the terminal is accessed to the second SIM or not;
in this embodiment, the terminal monitors whether the terminal is involved in the second SIM. In one possible implementation, the terminal monitors whether a second SIM is plugged in the terminal. In another possible implementation manner, the terminal monitors whether the terminal enables the eSIM, and when the terminal enables the eSIM, the terminal is determined to access the second SIM.
(2) If the terminal accesses the second SIM, a white list is obtained through a network interface, the white list comprises a flow-free application identifier, and the flow-free application identifier is an identifier of an application supporting the charge of the non-charging data traffic;
(3) when the association relation does not exist, detecting whether the application identifier belongs to the flow-free application identifier in the white list;
(4) and when the application identifier belongs to the flow-free application identifier in the white list, enabling the second SIM to receive and transmit the mobile data for the target application.
Step 209, when the target application is not the application of the non-charging data traffic fee supported by the second SIM, a third SIM is enabled to transmit and receive the mobile data for the target application, and the third SIM is the SIM with the largest traffic margin in at least two SIMs.
The flow allowance is used for indicating the data amount of the mobile data remained in each SIM in a preset settlement period.
In summary, the method for enabling an SIM provided in this embodiment receives an SIM designating operation in a setting user interface, establishes an association relationship according to the SIM designating operation, obtains an application identifier, searches for the association relationship containing the application identifier in a terminal, determines a first SIM according to the association relationship when the association relationship exists, and enables the first SIM to receive and transmit mobile data for a target application. Therefore, according to the embodiment, after the association relationship between the target application and the SIM is established, when the target application needs to use the mobile data, the first SIM is automatically started, so that the background application can select the SIM according to the pre-specified association relationship, and the capability of the terminal for following the user instruction is improved.
Optionally, in this embodiment, when the terminal does not have an association relationship, it may be further configured to detect whether the target application is an application of the non-charging data traffic cost supported by the second SIM, and when the target application is an application of the non-charging data traffic cost supported by the second SIM, start the second SIM to transmit and receive the mobile data for the target application, so that when the target application in the terminal is not specified by the user as the SIM card, the second SIM of the non-charging data traffic cost may be used to transmit and receive the data traffic, thereby saving data traffic waste possibly caused by the target application, and improving the use efficiency of the data traffic in the SIM.
Optionally, in this embodiment, when the target application is not an application of the non-charging data traffic cost supported by the second SIM, a third SIM is enabled to send and receive mobile data for the target application, where the third SIM is the SIM with the largest traffic margin among the at least two SIMs, so that an effect of improving the use efficiency of the data traffic of the SIM in the terminal is achieved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 5, which is a block diagram illustrating an apparatus for enabling a SIM according to an exemplary embodiment of the present application. The SIM enabling means may be implemented as all or part of the terminal in software, hardware or a combination of both. The device includes:
an identifier obtaining module 510, configured to obtain an application identifier of a target application, where the target application currently runs in a system background of the terminal, and the target application currently requests to receive and send mobile data;
an SIM determining module 520, configured to select, according to the application identifier, a first SIM corresponding to the target application from at least two SIM cards inserted in the terminal;
a SIM enabling module 530 configured to enable the first SIM to receive and transmit the mobile data for the target application.
In an optional embodiment, the SIM determining module 520 is configured to search for an association relationship including the application identifier in the terminal, where the association relationship is used to indicate a correspondence between the application identifier and the first SIM; and when the incidence relation exists, determining the first SIM according to the incidence relation.
In an optional embodiment, the apparatus further comprises a relationship establishing module, configured to receive a SIM specifying operation in a setup user interface, where the SIM specifying operation is used to indicate the association relationship between the target application and the first SIM; and establishing the association relation according to the SIM specified operation.
In an optional embodiment, the apparatus further includes a detection module, configured to detect whether the target application is an application for charging for exempt data traffic supported by a second SIM when the association does not exist, where the second SIM is a SIM of the at least two SIMs; a SIM enabling module 530, configured to enable the second SIM to transceive the mobile data for the target application when the target application is an application for charging for exempt data traffic supported by the second SIM.
In an optional embodiment, the SIM enabling module 530 is configured to enable a third SIM to receive and send the mobile data for the target application when the target application is not an application for a charging free data traffic cost supported by the second SIM, where the third SIM is a SIM with a largest traffic margin among the at least two SIMs, and the traffic margin is used to indicate a data volume of the mobile data remaining in each SIM in a preset settlement period.
In an optional embodiment, the apparatus further includes a monitoring module, configured to monitor whether the second SIM is accessed in the terminal; and if the terminal is accessed to the second SIM, acquiring a white list through a network interface, wherein the white list comprises a flow-free application identifier, and the flow-free application identifier is an identifier of an application supporting the charge of the non-charging data flow rate. And the detection module is used for detecting whether the application identifier belongs to the flow-free application identifier in the white list or not when the association relation does not exist. The SIM enabling module 530 is configured to enable the second SIM to receive and transmit the mobile data for the target application when the application identifier belongs to the flow-exempt application identifier in the white list.
In an optional embodiment, the detecting module is configured to detect whether the target application transceives the mobile data through the first SIM for the first time; the display module is used for displaying an SIM enabling prompt control if the target application receives and transmits the mobile data through the first SIM for the first time, wherein the SIM enabling prompt control is used for receiving SIM enabling operation; a SIM enabling module 530, configured to enable the first SIM to receive and send the mobile data for the target application when the SIM enabling prompt control receives the SIM enabling operation.
In an optional embodiment, the identifier obtaining module 510 is configured to detect whether the foreground application of the terminal calls the target application when the foreground application displays a foreground user interface in a full screen manner, where the foreground user interface is used to display visual information of the foreground application, and the visual information is information displayed by visible light; when the foreground application calls the target application, starting the target application; controlling the target application to provide a target service based on the movement data.
In an alternative embodiment, the target service comprises: at least one of a data download service, a navigation service, a music playing service, a voice assistant service, a video chat service, a voice chat service, and a video playing service.
Referring to fig. 6, which is a block diagram of a terminal according to an exemplary embodiment of the present application, as shown in fig. 6, the terminal includes a processor 610 and a memory 620, where the memory 620 stores at least one instruction, and the instruction is loaded and executed by the processor 610 to implement the method for enabling a SIM according to the above embodiments.
Please refer to fig. 7, which is a block diagram illustrating a terminal 700 according to an exemplary embodiment of the present application. The terminal 700 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so on.
In general, terminal 700 includes: a processor 701 and a memory 702.
The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. Memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one instruction for execution by processor 701 to implement the method of enabling a SIM provided by method embodiments herein.
In some embodiments, the terminal 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 704, touch screen display 705, camera 706, audio circuitry 707, positioning components 708, and power source 709.
The peripheral interface 703 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 701 and the memory 702. In some embodiments, processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 704 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 704 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 704 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to capture touch signals on or over the surface of the display screen 705. The touch signal may be input to the processor 701 as a control signal for processing. At this point, the display 705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 705 may be one, providing the front panel of the terminal 700; in other embodiments, the display 705 can be at least two, respectively disposed on different surfaces of the terminal 700 or in a folded design; in still other embodiments, the display 705 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display 705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 706 is used to capture images or video. Optionally, camera assembly 706 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing or inputting the electric signals to the radio frequency circuit 704 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 707 may also include a headphone jack.
The positioning component 708 is used to locate the current geographic Location of the terminal 700 for navigation or LBS (Location Based Service). The Positioning component 708 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 709 is provided to supply power to various components of terminal 700. The power source 709 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 709 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 700 also includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 715, and proximity sensor 716.
The acceleration sensor 711 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 700. For example, the acceleration sensor 711 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 701 may control the touch screen 705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the terminal 700, and the gyro sensor 712 may cooperate with the acceleration sensor 711 to acquire a 3D motion of the terminal 700 by the user. From the data collected by the gyro sensor 712, the processor 701 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 713 may be disposed on a side bezel of terminal 700 and/or an underlying layer of touch display 705. When the pressure sensor 713 is disposed on a side frame of the terminal 700, a user's grip signal on the terminal 700 may be detected, and the processor 701 performs right-left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at a lower layer of the touch display 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 714 is used for collecting a fingerprint of a user, and the processor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 714 may be disposed on the front, back, or side of the terminal 700. When a physical button or a vendor Logo is provided on the terminal 700, the fingerprint sensor 714 may be integrated with the physical button or the vendor Logo.
The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, the processor 701 may control the display brightness of the touch display 705 based on the ambient light intensity collected by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 705 is increased; when the ambient light intensity is low, the display brightness of the touch display 705 is turned down. In another embodiment, processor 701 may also dynamically adjust the shooting parameters of camera assembly 706 based on the ambient light intensity collected by optical sensor 715.
A proximity sensor 716, also referred to as a distance sensor, is typically disposed on a front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front surface of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually decreases, the processor 701 controls the touch display 705 to switch from the bright screen state to the dark screen state; when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually becomes larger, the processor 701 controls the touch display 705 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting with respect to terminal 700, and that terminal 700 may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
The embodiment of the present application further provides a computer-readable medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for enabling the SIM according to the above embodiments.
The present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for enabling the SIM according to the above embodiments.
It should be noted that: in the method for enabling a SIM provided in the above embodiment, only the above division of each functional module is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the SIM enabling apparatus and the SIM enabling method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method for starting a Subscriber Identity Module (SIM) card is applied to a terminal, and comprises the following steps:
when a target application is switched to a background to run and receive and send data traffic, acquiring an application identifier of the target application, wherein the target application currently runs in a system background of the terminal and requests to receive and send mobile data;
selecting a first SIM corresponding to the target application from at least two SIM cards inserted into the terminal according to the application identifier;
enabling the first SIM to transceive the mobile data for the target application.
2. The method according to claim 1, wherein the selecting a first SIM corresponding to the target application from at least two SIM cards inserted into the terminal according to the application identifier comprises:
searching an association relation containing the application identifier in the terminal, wherein the association relation is used for indicating the corresponding relation between the application identifier and the first SIM;
and when the incidence relation exists, determining the first SIM according to the incidence relation.
3. The method according to claim 2, wherein before the selecting a first SIM corresponding to the target application from at least two SIM cards inserted into the terminal according to the application identifier, the method further comprises:
receiving a SIM designation operation in a setup user interface, the SIM designation operation to indicate the association between the target application and the first SIM;
and establishing the association relation according to the SIM specified operation.
4. The method of claim 2, further comprising:
when the association relation does not exist, detecting whether the target application is an application of the non-charging data traffic cost supported by a second SIM, wherein the second SIM is one of the at least two SIMs;
and when the target application is an application for which the second SIM supports no-charge data traffic charges, enabling the second SIM to receive and transmit the mobile data for the target application.
5. The method of claim 4, further comprising:
and when the target application is not the application of the non-charging data flow charge supported by the second SIM, starting a third SIM to receive and transmit the mobile data for the target application, wherein the third SIM is the SIM with the largest flow allowance in the at least two SIMs, and the flow allowance is used for indicating the data amount of the mobile data left by each SIM in a preset settlement period.
6. The method of claim 4, further comprising:
monitoring whether the terminal is accessed to the second SIM;
if the terminal accesses the second SIM, a white list is obtained through a network interface, the white list comprises a flow-free application identifier, and the flow-free application identifier is an identifier of an application supporting the charge of the non-charging data flow rate;
when the association does not exist, detecting whether the target application is an application for charging exempt data traffic supported by a second SIM, including:
when the incidence relation does not exist, detecting whether the application identification belongs to the flow-free application identification in the white list;
enabling the second SIM to transceive the mobile data for the target application when the target application is an application for a charging free data traffic cost supported by the second SIM, comprising:
and when the application identifier belongs to the flow-free application identifier in the white list, enabling the second SIM to receive and transmit the mobile data for the target application.
7. The method of claim 1, wherein before the enabling the first SIM to transceive the mobile data for the terminal, the method further comprises:
detecting whether the target application receives and transmits the mobile data through the first SIM for the first time;
if the target application receives and transmits the mobile data through the first SIM for the first time, displaying an SIM starting prompt control, wherein the SIM starting prompt control is used for receiving SIM starting operation;
and when the SIM enabling prompt control receives the SIM enabling operation, the terminal executes the step of enabling the first SIM to receive and transmit the mobile data for the target application.
8. The method of claim 1, further comprising:
when a foreground application of the terminal displays a foreground user interface in a full screen mode, detecting whether the target application is called by the foreground application;
when the foreground application calls the target application, starting the target application;
controlling the target application to provide a target service based on the movement data.
9. The method of claim 8, wherein the target service comprises: at least one of a data download service, a navigation service, a music playing service, a voice assistant service, a video chat service, a voice chat service, and a video playing service.
10. An apparatus for activating a Subscriber Identity Module (SIM), the apparatus being applied in a terminal, the apparatus comprising:
the identification acquisition module is used for acquiring an application identification of a target application when the target application is switched to a background to run and receives and transmits data traffic, wherein the target application currently runs in a system background of the terminal and requests to receive and transmit mobile data;
the SIM determining module is used for selecting a first SIM corresponding to the target application from at least two SIM cards inserted into the terminal according to the application identifier;
a SIM enabling module for enabling the first SIM to receive and transmit the mobile data for the target application.
11. A terminal, characterized in that it comprises a processor and a memory, in which at least one instruction is stored, which is loaded and executed by the processor to implement the method for enabling a subscriber identity card, SIM, according to any one of claims 1 to 9.
12. A computer-readable storage medium, having stored thereon at least one instruction, which is loaded and executed by a processor, to implement the method of enabling a subscriber identity card, SIM, according to any of claims 1 to 9.
CN201810530579.0A 2018-05-29 2018-05-29 Method, device, terminal and storage medium for starting user identity identification card Active CN108848492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810530579.0A CN108848492B (en) 2018-05-29 2018-05-29 Method, device, terminal and storage medium for starting user identity identification card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810530579.0A CN108848492B (en) 2018-05-29 2018-05-29 Method, device, terminal and storage medium for starting user identity identification card

Publications (2)

Publication Number Publication Date
CN108848492A CN108848492A (en) 2018-11-20
CN108848492B true CN108848492B (en) 2021-08-10

Family

ID=64210957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810530579.0A Active CN108848492B (en) 2018-05-29 2018-05-29 Method, device, terminal and storage medium for starting user identity identification card

Country Status (1)

Country Link
CN (1) CN108848492B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072228A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 A kind of method for switching network, terminal and computer readable storage medium
CN110677536B (en) * 2019-09-29 2021-11-23 维沃移动通信有限公司 Networking control method and electronic equipment
CN113133136A (en) * 2019-12-31 2021-07-16 摩托罗拉移动有限责任公司 Method and apparatus for application data path selection in dual SIM devices
WO2021258287A1 (en) * 2020-06-23 2021-12-30 Qualcomm Incorporated Dynamically determining the designated data service (dds) component for improved selection of slicing resources

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948949A (en) * 2017-10-20 2018-04-20 北京珠穆朗玛移动通信有限公司 Network management, mobile terminal and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293901B (en) * 2015-05-22 2020-06-02 腾讯科技(深圳)有限公司 Process management method and device for terminal application

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948949A (en) * 2017-10-20 2018-04-20 北京珠穆朗玛移动通信有限公司 Network management, mobile terminal and device

Also Published As

Publication number Publication date
CN108848492A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN110278464B (en) Method and device for displaying list
CN110308956B (en) Application interface display method and device and mobile terminal
CN110944374B (en) Communication mode selection method and device, electronic equipment and medium
CN108848492B (en) Method, device, terminal and storage medium for starting user identity identification card
CN112751679B (en) Instant messaging message processing method, terminal and server
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN110659127A (en) Method, device and system for processing task
CN111031170A (en) Method, apparatus, electronic device and medium for selecting communication mode
CN111311155A (en) Method, apparatus, system, device and storage medium for modifying distribution position
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN108401194B (en) Time stamp determination method, apparatus and computer-readable storage medium
CN110086814B (en) Data acquisition method and device and storage medium
CN112118353A (en) Information display method, device, terminal and computer readable storage medium
CN112612539A (en) Data model unloading method and device, electronic equipment and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN111464829B (en) Method, device and equipment for switching media data and storage medium
CN111694521B (en) Method, device and system for storing file
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN107948171B (en) User account management method and device
CN112612540A (en) Data model configuration method and device, electronic equipment and storage medium
CN113099378A (en) Positioning method, device, equipment and storage medium
CN111191254A (en) Access verification method and device, computer equipment and storage medium
CN111010732A (en) Network registration method, device, electronic equipment and medium
CN110933237A (en) Call method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant