Communication sharing method, system and related device

Device A obtains the SIM card information of device B and shares its communication capabilities, which solves the problem that device B has no SIM card or cannot communicate in the coverage area, realizes the communication function of device B and improves the user experience.

CN120455974APending Publication Date: 2025-08-08HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510420895.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-07-26
Filing Date
2023-07-13
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

When Device B has no SIM card or is not in the operator's network coverage area, Device B cannot communicate, and after unplugging Device A's SIM card to Device B, Device A cannot communicate.

Method used

The collaborative interface is displayed through device A, and the SIM card information of device B is detected and obtained. The communication function of device B is realized by using the SIM card information of device A, including signal strength and operator information prompts.

Benefits of technology

Without unplugging the SIM card of Device A, Device B can surf the Internet, receive calls, and send and receive text messages, improving the user experience and ensuring the transparent sharing process of Device A's communication capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455974A_ABST
    Figure CN120455974A_ABST
Patent Text Reader

Abstract

The invention discloses a communication sharing method, system and related device. In the method, a device A can send SIM card information of the device A to a device B, and the device B takes the SIM card information of the device A as SIM card information of a virtual SIM card in the device B. The device B can surf the Internet, make and receive calls and receive and send short messages through the SIM card of the device A. By implementing the technical scheme provided by the invention, when the equipment B does not have the SIM card or the inserted SIM card of the equipment B has no service, the Internet access, call answering and making and short message receiving and sending can be carried out by means of the SIM card of the equipment A.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202380056861.9, and the original application date is July 13, 2023. The entire content of the original application is incorporated into this application by reference.

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on July 26, 2022, with application number 202210886323.X and application name “A communication sharing method, system and related devices”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of terminals and communication technologies, and in particular to a communication sharing method, system and related devices. Background Art

[0004] Currently, when device B does not have a subscriber identity module (SIM) card or device B is not in the network area covered by the operator corresponding to the SIM card in device B, device B cannot access the Internet, make calls, send and receive text messages, and other communication services. However, device A has a SIM card, and in the network area covered by the operator corresponding to the SIM card in device A, device A has communication capabilities such as accessing the Internet, making calls, and sending and receiving text messages. Device B can access the Internet by connecting to device A's hotspot, but device B still cannot make phone calls or send and receive text messages. Alternatively, the user can remove the SIM card from device A and insert it into device B. In this way, device B can access the Internet, make calls, send text messages, and other communications. However, device A will not be able to access the Internet, make calls, send text messages, and other communications.

[0005] Therefore, how to share the communication capability of device A with device B without removing the SIM card of device A and giving it to device B is an urgent problem to be solved. Summary of the Invention

[0006] The present application provides a communication sharing method, system and related devices. Through the communication sharing method provided in the embodiments of the present application, the communication capability of device A can be shared with device B without removing the SIM card of device A and giving it to device B.

[0007] In the first aspect, the present application provides a communication sharing method, which can be applied to a communication sharing system, which includes a first device, a second device, and a network device, and the method includes: the first device displays a first collaborative interface, and the first collaborative interface displays an icon of the first device and an icon of the second device; the first device detects a first operation, and the first operation is used to move the icon of the second device close to the icon of the first device; in response to the first operation, the first device displays a first option box, and the first option box is used to select to share the mobile communication capability of the second device; the first device detects a second operation, and the second operation is used to select the first device to share the mobile communication capability of the second device; in response to the second operation, the first device obtains the first information in the SIM card information of the first SIM card of the second device; the first device receives a first request from the first application; the first device sends the first request of the first application to the second device, and instructs the second device to send the first request to the network device based on the first SIM card corresponding to the first information; the second device sends the first request to the network device; the network device sends a first response to the second device based on the first request; the second device sends the first response to the first device.

[0008] The SIM card information of the first SIM card includes at least one of the following items: an integrated circuit card identification code ICCID, an international mobile subscriber identity code IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, and an authentication algorithm; the first information includes at least one of the following items: the integrated circuit card identification code ICCID, the international mobile subscriber identity code IMSI, and the mobile subscriber number MSISDN in the SIM card information of the first SIM card.

[0009] In this way, the first device can share the mobile communication capabilities provided by the first SIM card in the second device by means of the first information in the first SIM card information of the second device. In this way, when the first device does not have a SIM card inserted or has no SIM card capabilities, the first device can still use the first SIM card in the first device to access the mobile communication network and access the Internet, make calls, send and receive text messages, etc.

[0010] In combination with the first aspect, in one possible implementation, in response to the second operation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, the method also includes: the first device displays first prompt information in the status bar of the first device, and the first prompt information includes at least one of the following items: the signal strength of the mobile communication provided by the first SIM card, the operator name corresponding to the first SIM card, and the network standard corresponding to the first SIM card.

[0011] In this way, the user can be prompted in the user interface of the first device that the first device has the mobile communication capability, thereby improving the user experience.

[0012] In combination with the first aspect, in a possible implementation, after the first device displays the first prompt information in the status bar of the first device, the method further includes: the first device is disconnected from the second device, and the first device stops displaying the first prompt information.

[0013] In this way, the user can be prompted in the user interface of the first device that the first device no longer has the mobile communication capability, thereby improving the user experience.

[0014] In combination with the first aspect, in one possible implementation, in response to the second operation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, the method may also include: the first device displays second prompt information, and the second prompt information is used to indicate that the first device is using the mobile communication capability of the second device.

[0015] In this way, the user can learn in the user interface of the second device that the first device is sharing the mobile communication capability of the second device, thereby improving the user experience.

[0016] In combination with the first aspect, in a possible implementation, after the first device displays the second prompt information, the method may further include: the first device is disconnected from the second device, and the first device stops displaying the second prompt information.

[0017] The second prompt information includes an icon of the second device and a mobile communication capability sharing icon.

[0018] In this way, the user can learn in the user interface of the first device that the first device has stopped sharing the mobile communication capability, thereby improving the user experience.

[0019] In combination with the first aspect, in one possible implementation, in response to the second operation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, the method may also include: the second device displays third prompt information in the status bar of the second device, and the third prompt information is used to indicate that the second device is sharing mobile communication capabilities.

[0020] In this way, the user can be prompted in the user interface of the second device that the second device is sharing the mobile communication capability, thereby improving the user experience.

[0021] In combination with the first aspect, in a possible implementation, after the second device displays the third prompt information in the status bar of the second device, the method may further include: the first device disconnecting from the second device; and the second device stopping displaying the third prompt information.

[0022] The third prompt information includes a mobile communication capability sharing icon.

[0023] In this way, the user can learn in the user interface of the second device that the second device has stopped sharing the mobile communication capability, thereby improving the user experience.

[0024] In combination with the first aspect, in one possible implementation, in response to the second operation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, the method may also include: the second device displays fourth prompt information, and the fourth prompt information is used to prompt the second device to share mobile communication capabilities with the first device.

[0025] In this way, the user can be prompted in the user interface of the second device that the second device is sharing the mobile communication capability, thereby improving the user experience.

[0026] In combination with the first aspect, in a possible implementation, after the second device displays the fourth prompt information, the method may further include: the first device disconnecting from the second device; and the second device stopping displaying the fourth prompt information.

[0027] The fourth prompt information includes the icon of the first device and the mobile communication capability sharing icon.

[0028] In this way, the user can learn in the user interface of the second device that the second device has stopped sharing the mobile communication capability, thereby improving the user experience.

[0029] In combination with the first aspect, in a possible implementation, the method may also include: the first device displays a first prompt box, and the first pop-up window is used to indicate whether the user selects the first device to use the mobile communication capability of the second device; the first device detects a third operation, and the third operation is used to select the first device to use the mobile communication capability of the second device in the first pop-up window; in response to the third operation, the first device obtains the first information in the SIM card information of the first SIM card of the second device.

[0030] In this way, the second device can automatically prompt the user to connect to the first device using the first prompt box to share the mobile communication capabilities of the first device, thereby improving the user experience.

[0031] In combination with the first aspect, in one possible implementation, in response to the first operation, the first device displays a first option box, specifically including: in response to the first operation, the first device displays a first control; the first device detects a fourth operation acting on the first control; in response to the fourth operation, the first device displays the first option box.

[0032] In combination with the first aspect, in a possible implementation, the method may further include: the second device displays a second collaborative interface, the second collaborative interface displays the icon of the first device and the icon of the second device; the second device detects a fifth operation, the first operation is used to move the icon of the first device close to the icon of the second device; in response to the fifth operation, the second device displays a second option box, the second option box is used to select to share the mobile communication capability of the second device with the first device; the second device detects a sixth operation, the sixth operation is used to select the second device to share the mobile communication capability of the second device with the first device; in response to the sixth operation, the second device sends the first information in the SIM card information of the first SIM card of the second device to the first device.

[0033] In this way, the user can operate the second device to establish a connection between the first device and the second device, and enable the first device to obtain the first information in the SIM card information of the first SIM card of the second device.

[0034] In combination with the first aspect, in a possible implementation, the method may further include: the second device displays a first setting bar, where the first setting bar is used to set and display a limit on the traffic of the mobile communication network that the second device can provide to the first device.

[0035] In combination with the first aspect, in a possible implementation, the method may further include: when the traffic value of the mobile communication network provided by the second device to the first device reaches the limit of the traffic of the mobile communication network that the second device can provide to the first device, the second device stops providing the mobile communication network to the first device.

[0036] In this way, the second device can limit the traffic of the mobile communication network shared with the first device, thereby avoiding excessive data traffic charges incurred by the second device.

[0037] In combination with the first aspect, in a possible implementation, the method may further include: the first device displays a first notification box, where the first notification box is used to display a traffic value of the mobile communication network provided by the second device using the first device.

[0038] In this way, the user can know in real time the traffic value of the first device using the mobile communication network provided by the second device, which can improve the user experience.

[0039] In combination with the first aspect, in a possible implementation, the method may further include: the second device displays a second notification box, where the second notification box is used to display a traffic value of the first device using the mobile communication network provided by the second device.

[0040] In this way, the user can know in real time the traffic value of the first device using the mobile communication network provided by the second device, which can improve the user experience.

[0041] In combination with the first aspect, in one possible implementation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device in response to the second operation, the method may further include: displaying a first dial control in the call dialing interface of the first device, and the first dial control is used to instruct the first device to dial using the first SIM card of the second device.

[0042] In this way, the user can be informed in the call dialing interface of the first device that the call can be dialed through the first SIM card of the second device. In this way, the user experience can be improved.

[0043] In combination with the first aspect, in one possible implementation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device in response to the second operation, the method may further include: displaying a first tab in the SMS sending interface of the first device, and the first tab is used to select the first device to send a text message using the first SIM card of the second device.

[0044] In this way, the user can learn in the SMS sending interface of the first device that a text message can be sent through the first SIM card of the second device. This can improve the user experience.

[0045] In combination with the first aspect, in one possible implementation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device in response to the second operation, the method may further include: displaying a first virtual SIM card in the SIM card management interface of the first device, where the first virtual SIM card is generated by the first device based on the first information.

[0046] In this way, the user can manage and set the virtual SIM card in the SIM card management interface of the first device, thereby improving the user experience.

[0047] In combination with the first aspect, in one possible implementation, there is a second SIM card in the first device, and the method may further include: displaying a smart switching option in the SIM card management interface of the first device, the smart switching option being used to turn on or off the first device's intelligent selection of using the first virtual SIM card or the second SIM card for mobile communication.

[0048] In this way, the SIM cards can be switched intelligently according to the network conditions of the first virtual SIM card and the second SIM card, so that the first device will not be stuck due to the deterioration of the network quality of a certain SIM card. In this way, the user experience can be improved.

[0049] In combination with the first aspect, in one possible implementation, the first request is used to request the establishment of a cellular mobile data network, and the first response is used to indicate that the establishment of the cellular mobile data network is successful; after the second device sends the first response to the first device, the method may further include: the first device sends the first network data of the first application to the second device; the second device sends the first network data to the network device; the network device sends second network data to the second device based on the first network data; the second device sends the received second network data to the first device.

[0050] In this way, the first device can obtain cellular mobile network data through the second device.

[0051] In combination with the first aspect, in one possible implementation, the first request is used to request a call, and the first response is used to indicate that the call was successfully made; after the second device sends the first response to the first device, the method may further include: the first device sends the first call data of the first application to the second device; the second device sends the first call data to the network device through the first SIM card; the network device sends the first call data to the target device.

[0052] In this way, the first device can make a call via the first SIM card of the second device.

[0053] In combination with the first aspect, in a possible implementation, the first request is used to request sending of first SMS data, the first request carries the first SMS data, and the first response is used to indicate that the first SMS data is sent successfully.

[0054] In this way, the first device can send a text message through the second device.

[0055] In combination with the first aspect, in one possible implementation, before the first device receives the first request of the first application, the method may include: the first device detects a seventh operation of the user, and the seventh operation is used to use the first virtual SIM card generated based on the first information as the default dialing card; in response to the seventh operation, the first device sets the first virtual SIM card as the default dialing card in the first device.

[0056] In this way, the first virtual SIM card can be set as the default dial-up card in the first device.

[0057] In combination with the first aspect, in one possible implementation, a second SIM card is inserted into the first device, and the method may further include: the first device detects that an eighth operation of the user has been performed, and the eighth operation is used to set the second SIM card as the default outgoing call display card; in response to the eighth operation, the first device sets the second SIM card as the default outgoing call display card; after the network device sends the first call data to the target device, the method may further include: the target device displays the mobile user number of the second SIM card.

[0058] In this way, the first device can make a call through the first virtual SIM card, but the call recipient, that is, the target device, still displays the caller ID as the user number of the second SIM card of the first device. In this way, the user number of the first SIM card in the second device can be prevented from being leaked.

[0059] In a second aspect, a communication sharing method is provided, which is applied to a first device, and the method may include: the first device displays a first collaborative interface, and the first collaborative interface displays an icon of the first device and an icon of the second device; the first device detects a first operation, and the first operation is used to move the icon of the second device close to the icon of the first device; in response to the first operation, the first device displays a first option box, and the first option box is used to select to share the mobile communication capability of the second device; the first device detects a second operation, and the second operation is used to select the first device to share the mobile communication capability of the second device; in response to the second operation, the first device obtains the first information in the SIM card information of the first SIM card of the second device; the first device receives a first request from the first application; the first device sends the first request of the first application to the second device, and instructs the second device to use the first SIM card corresponding to the first information to send the first request to the network device; the first device receives a first response sent by the second device, and the first response is sent to the second device by the network device after receiving the first request sent by the second device.

[0060] The SIM card information of the first SIM card includes at least one of the following items: an integrated circuit card identification code ICCID, an international mobile subscriber identity code IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, and an authentication algorithm; the first information includes at least one of the following items: the integrated circuit card identification code ICCID, the international mobile subscriber identity code IMSI, and the mobile subscriber number MSISDN in the SIM card information of the first SIM card.

[0061] In this way, the first device can share the mobile communication capabilities provided by the first SIM card in the second device by means of the first information in the first SIM card information of the second device. In this way, when the first device does not have a SIM card inserted or has no SIM card capabilities, the first device can still use the first SIM card in the first device to access the mobile communication network and access the Internet, make calls, send and receive text messages, etc.

[0062] In combination with the second aspect, in one possible implementation, in response to the second operation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, the method also includes: the first device displays first prompt information in the status bar of the first device, and the first prompt information includes at least one of the following items: the signal strength of the mobile communication provided by the first SIM card, the operator name corresponding to the first SIM card, and the network standard corresponding to the first SIM card.

[0063] In this way, the user can be prompted in the user interface of the first device that the first device has the mobile communication capability, thereby improving the user experience.

[0064] In combination with the second aspect, in a possible implementation, after the first device displays the first prompt information in the status bar of the first device, the method further includes: the first device is disconnected from the second device, and the first device stops displaying the first prompt information.

[0065] In this way, the user can be prompted in the user interface of the first device that the first device no longer has the mobile communication capability, thereby improving the user experience.

[0066] In combination with the second aspect, in one possible implementation, in response to the second operation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, the method may also include: the first device displays second prompt information, and the second prompt information is used to indicate that the first device is using the mobile communication capability of the second device.

[0067] In this way, the user can learn in the user interface of the second device that the first device is sharing the mobile communication capability of the second device, thereby improving the user experience.

[0068] In combination with the second aspect, in a possible implementation, after the first device displays the second prompt information, the method may further include: the first device is disconnected from the second device, and the first device stops displaying the second prompt information.

[0069] The second prompt information includes an icon of the second device and a mobile communication capability sharing icon.

[0070] In this way, the user can learn in the user interface of the first device that the first device has stopped sharing the mobile communication capability, thereby improving the user experience.

[0071] In combination with the second aspect, in a possible implementation, the method may also include: the first device displays a first prompt box, and the first pop-up window is used to indicate whether the user selects the first device to use the mobile communication capability of the second device; the first device detects a third operation, and the third operation is used to select the first device to use the mobile communication capability of the second device in the first pop-up window; in response to the third operation, the first device obtains the first information in the SIM card information of the first SIM card of the second device.

[0072] In this way, the second device can automatically prompt the user to connect to the first device using the first prompt box to share the mobile communication capabilities of the first device, thereby improving the user experience.

[0073] In combination with the second aspect, in one possible implementation, in response to the first operation, the first device displays a first option box, specifically including: in response to the first operation, the first device displays a first control; the first device detects a fourth operation acting on the first control; in response to the fourth operation, the first device displays the first option box.

[0074] In combination with the second aspect, in a possible implementation, the method may further include: the first device displays a first notification box, where the first notification box is used to display a traffic value of the mobile communication network provided by the second device using the first device.

[0075] In this way, the user can know in real time the traffic value of the first device using the mobile communication network provided by the second device, which can improve the user experience.

[0076] In combination with the second aspect, in one possible implementation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device in response to the second operation, the method may further include: displaying a first dial control in the call dialing interface of the first device, and the first dial control is used to instruct the first device to dial using the first SIM card of the second device.

[0077] In this way, the user can be informed in the call dialing interface of the first device that the call can be dialed through the first SIM card of the second device. In this way, the user experience can be improved.

[0078] In combination with the second aspect, in one possible implementation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device in response to the second operation, the method may further include: displaying a first tab in the SMS sending interface of the first device, and the first tab is used to select the first device to send a text message using the first SIM card of the second device.

[0079] In this way, the user can learn in the SMS sending interface of the first device that a text message can be sent through the first SIM card of the second device. This can improve the user experience.

[0080] In combination with the second aspect, in one possible implementation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device in response to the second operation, the method may further include: displaying a first virtual SIM card in the SIM card management interface of the first device, where the first virtual SIM card is generated by the first device based on the first information.

[0081] In this way, the user can manage and set the virtual SIM card in the SIM card management interface of the first device, thereby improving the user experience.

[0082] In combination with the second aspect, in one possible implementation, there is a second SIM card in the first device, and the method may further include: displaying a smart switching option in the SIM card management interface of the first device, and the smart switching option is used to turn on or off the first device's intelligent selection of using the first virtual SIM card or the second SIM card for mobile communication.

[0083] In this way, the SIM cards can be switched intelligently according to the network conditions of the first virtual SIM card and the second SIM card, so that the first device will not be stuck due to the deterioration of the network quality of a certain SIM card. In this way, the user experience can be improved.

[0084] In combination with the second aspect, in a possible implementation manner, the first request is used to request establishment of a cellular mobile data network, and the first response is used to indicate successful establishment of the cellular mobile data network.

[0085] In this way, the first device can obtain cellular mobile network data through the second device.

[0086] In combination with the first aspect, in a possible implementation, the first request is used to request to make a call, and the first response is used to indicate that the call was successfully made.

[0087] In this way, the first device can make a call via the first SIM card of the second device.

[0088] In combination with the first aspect, in a possible implementation, the first request is used to request sending of first SMS data, the first request carries the first SMS data, and the first response is used to indicate that the first SMS data is sent successfully.

[0089] In this way, the first device can send a text message through the second device.

[0090] In combination with the first aspect, in one possible implementation, before the first device receives the first request of the first application, the method may include: the first device detects a seventh operation of the user, and the seventh operation is used to use the first virtual SIM card generated based on the first information as the default dialing card; in response to the seventh operation, the first device sets the first virtual SIM card as the default dialing card in the first device.

[0091] In this way, the first virtual SIM card can be set as the default dial-up card in the first device.

[0092] In combination with the first aspect, in one possible implementation, a second SIM card is inserted into the first device, and the method may further include: the first device detects an eighth operation of the user, where the eighth operation is used to set the second SIM card as the default outgoing call display card; in response to the eighth operation, the first device sets the second SIM card as the default outgoing call display card.

[0093] In this way, the first device can make a call through the first virtual SIM card, but the call recipient still displays the caller ID as the user ID of the second SIM card of the first device. In this way, the user ID of the first SIM card in the second device can be prevented from being leaked.

[0094] In a third aspect, a communication sharing method is provided, which can be applied to a second device, and the method may include: the second device displays a second collaborative interface, and the second collaborative interface displays an icon of the first device and an icon of the second device; the second device detects a fifth operation, and the first operation is used to move the icon of the first device close to the icon of the second device; in response to the fifth operation, the second device displays a second option box, and the second option box is used to select to share the mobile communication capability of the second device with the first device; the second device detects a sixth operation, and the sixth operation is used to select the second device to share the mobile communication capability of the second device with the first device; in response to the sixth operation, the second device sends the first information in the SIM card information of the first SIM card of the second device to the first device; the second device receives the first request and second indication information of the first application sent by the first device; the second indication information is used to instruct the second device to use the first SIM card corresponding to the first information to send the first request to the network device; the second device sends the first request to the network device; the second device receives the first response sent by the network device, and sends the first response to the first device.

[0095] The SIM card information of the first SIM card includes at least one of the following items: an integrated circuit card identification code ICCID, an international mobile subscriber identity code IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, and an authentication algorithm; the first information includes at least one of the following items: the integrated circuit card identification code ICCID, the international mobile subscriber identity code IMSI, and the mobile subscriber number MSISDN in the SIM card information of the first SIM card.

[0096] In this way, the first device can share the mobile communication capabilities provided by the first SIM card in the second device by means of the first information in the first SIM card information of the second device. In this way, when the first device does not have a SIM card inserted or has no SIM card capabilities, the first device can still use the first SIM card in the first device to access the mobile communication network and access the Internet, make calls, send and receive text messages, etc.

[0097] In combination with the third aspect, in one possible implementation, in response to the sixth operation, after the second device sends the first information in the SIM card information of the first SIM card of the second device to the first device, the method may also include: the second device displays third prompt information in the status bar of the second device, and the third prompt information is used to indicate that the second device is sharing mobile communication capabilities.

[0098] In this way, the user can be prompted in the user interface of the second device that the second device is sharing the mobile communication capability, thereby improving the user experience.

[0099] In combination with the third aspect, in a possible implementation, after the second device displays the third prompt information in the status bar of the second device, the method may further include: the first device disconnecting from the second device; and the second device stopping displaying the third prompt information.

[0100] The third prompt information includes a mobile communication capability sharing icon.

[0101] In this way, the user can learn in the user interface of the second device that the second device has stopped sharing the mobile communication capability, thereby improving the user experience.

[0102] In combination with the third aspect, in one possible implementation, in response to the sixth operation, after the second device sends the first information in the SIM card information of the first SIM card of the second device to the first device, the method may also include: the second device displays fourth prompt information, and the fourth prompt information is used to prompt the second device to share mobile communication capabilities with the first device.

[0103] In this way, the user can be prompted in the user interface of the second device that the second device is sharing the mobile communication capability, thereby improving the user experience.

[0104] In combination with the third aspect, in a possible implementation, after the second device displays the fourth prompt information, the method may further include: the first device disconnecting from the second device; and the second device stopping displaying the fourth prompt information.

[0105] The fourth prompt information includes the icon of the first device and the mobile communication capability sharing icon.

[0106] In this way, the user can learn in the user interface of the second device that the second device has stopped sharing the mobile communication capability, thereby improving the user experience.

[0107] In combination with the third aspect, in a possible implementation, the method may further include: the second device displays a first setting bar, where the first setting bar is used to set and display a limit on the traffic of the mobile communication network that the second device can provide to the first device.

[0108] In combination with the third aspect, in a possible implementation, the method may further include: when the traffic value of the mobile communication network provided by the second device to the first device reaches the limit of the traffic of the mobile communication network that the second device can provide to the first device, the second device stops providing the mobile communication network to the first device.

[0109] In this way, the second device can limit the traffic of the mobile communication network shared with the first device, thereby avoiding excessive data traffic charges incurred by the second device.

[0110] In combination with the third aspect, in a possible implementation, the method may further include: the second device displays a second notification box, where the second notification box is used to display a traffic value of the first device using the mobile communication network provided by the second device.

[0111] In this way, the user can know in real time the traffic value of the first device using the mobile communication network provided by the second device, which can improve the user experience.

[0112] In a fourth aspect, an electronic device is provided, comprising one or more processors, one or more memories, and a transceiver. The transceiver and the one or more memories are coupled to the one or more processors, and the one or more memories are configured to store computer program code, the computer program code comprising computer instructions. When the one or more processors execute the computer instructions, the terminal device executes the method of any possible implementation of the second aspect.

[0113] In combination with the fourth aspect, in a possible implementation, the electronic device is a first device.

[0114] In a fifth aspect, an electronic device is provided, comprising one or more processors, one or more memories, and a transceiver. The transceiver and the one or more memories are coupled to the one or more processors, and the one or more memories are configured to store computer program code, the computer program code comprising computer instructions. When the one or more processors execute the computer instructions, the terminal device executes the method of any possible implementation of the third aspect.

[0115] In combination with the fifth aspect, in a possible implementation, the electronic device is a second device.

[0116] In a sixth aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on a computer, enable the computer to execute the method in any possible implementation of the second aspect.

[0117] In a seventh aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on a computer, enable the computer to execute the method in any possible implementation of the second aspect.

[0118] In an eighth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method in any possible implementation of the second aspect.

[0119] In a ninth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method in any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0120] Figure 1 is an architecture diagram of a communication sharing system 10 provided in an embodiment of the present application;

[0121] Figure 2 is an architecture diagram of a communication sharing system 20 provided in an embodiment of the present application;

[0122] Figure 3 is an architecture diagram of a communication sharing system 30 provided in an embodiment of the present application;

[0123] Figure 4 is a structural diagram of a communication sharing system 40 provided in an embodiment of the present application;

[0124] Figure 5-Figure 21 is a set of user interface schematic diagrams of the tablet 50 provided in an embodiment of the present application;

[0125] Figure 22-Figure 25 is a set of user interface schematic diagrams of the mobile phone 40 provided in an embodiment of the present application;

[0126] Figure 26A is a schematic diagram of the user interface of the mobile phone 40 provided in an embodiment of the present application;

[0127] Figure 26B is a schematic diagram of the user interface of the mobile phone 40 provided in an embodiment of the present application;

[0128] Figures 27-37 is a set of user interface schematic diagrams of the mobile phone 40 provided in an embodiment of the present application;

[0129] Figures 38-43 1 is a schematic diagram of a user interface of the vehicle computer 60 provided in an embodiment of the present application;

[0130] Figure 44-45 is a set of user interface schematic diagrams of the mobile phone 40 provided in an embodiment of the present application;

[0131] Figure 46 This is a flow chart of device 2 sharing SIM card information of device 1 according to an embodiment of the present application;

[0132] Figure 47 This is a schematic diagram of interaction in which application A in device 2 according to an embodiment of the present application accesses the Internet through SIM card information of SIM card 1 of device 1 obtained by device 2;

[0133] Figure 48A This is an interactive diagram of the phone APP in device 2 provided in an embodiment of the present application making a call by obtaining the SIM card information of SIM card 1 of device 1;

[0134] Figure 48B This is a schematic diagram of a user interface provided in an embodiment of the present application;

[0135] Figure 49A This is an interactive diagram of the phone APP in the device 2 provided in the embodiment of the present application sending a text message by obtaining the SIM card information of the SIM card 1 of the device 1;

[0136] Figure 49B This is a schematic diagram of a user interface provided in an embodiment of the present application;

[0137] Figure 50 is a structural diagram of an electronic device provided in an embodiment of the present application;

[0138] Figure 51 This is a schematic diagram of a device structure provided in an embodiment of the present application;

[0139] Figure 52 This is a schematic diagram of a communication sharing system provided in an embodiment of the present application;

[0140] Figure 53 This is a flow chart of a communication sharing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0141] The terms used in the following examples of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and encompasses any or all possible combinations of one or more of the listed items.

[0142] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0143] Embodiments of the present application provide a communication sharing method, system, and related apparatus. In the method provided in the embodiments of the present application, device A can map the SIM card information in device A to device B. Device B then generates a virtual SIM card based on the SIM card information in device A, and device B uses the virtual SIM card to access communication services. This allows device B to share the communication capabilities of the SIM card in device A. For example, device B can use device A's SIM card to access the Internet, make and receive calls, send and receive text messages, and so on. This allows device A's communication capabilities to be shared with device B without having to remove the SIM card from device A and transfer it to device B.

[0144] The following will introduce a communication sharing method provided by an embodiment of the present application in conjunction with specific scenarios.

[0145] Scenario 1: A single SIM card is inserted into device 10A, and no SIM card is inserted into device 10B. Device 10A maps the single SIM card to device 10B.

[0146] Figure 1 1 shows a system architecture diagram of the communication sharing system 10. Figure 1 As shown, the communication sharing system 10 may include a device 10A and a device 10B. A single SIM card is inserted into the device 10A, and no SIM card is inserted into the device 10B. The device 10A may map the single SIM card to the device 10B.

[0147] The device 10A may include an application layer, a service layer, and a hardware abstraction layer (HAL).

[0148] The application layer in device 10A may include a series of application packages.

[0149] like Figure 1 As shown, the application package may include application programs (also referred to as applications) such as camera 100a, calendar 101a, map 102a, wireless local area network (WLAN) 103a, gallery 104a, call 105a, and Bluetooth 106a.

[0150] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0151] like Figure 1 As shown, the service layer of device 10A may include a communication interface 107a, a card account management 108a, a cellular network service 109a, a phone service 110a, a text messaging service 111a, a physical SIM 112a, and a physical SIM 113a.

[0152] The communication interface 107a can provide system communication capabilities to applications in the application layer. The communication interface 107a may include interfaces for cellular wireless communication between applications (including system applications and third-party applications) and system services. For example, interfaces for application layer applications to obtain SIM card account information, request to establish a cellular mobile network, and access the network using the corresponding cellular mobile network.

[0153] The card account management 108a can be used to manage the SIM card account information in the device 10A, as well as manage the SIM card account information of other devices (i.e., devices in the vicinity of the device 10A that have established a communication connection with the device 10A) under secure near-field transmission. The card account information of the SIM card may include the SIM card information of the SIM card, as well as information such as whether the SIM card is set as the default data traffic SIM card, the default phone dialing SIM card, and the default outgoing call display SIM card.

[0154] In the embodiments of the present application, secure near-field transmission can be referred to as secure near-field transmission. That is, secure near-field communication between a master device (e.g., device 10A) and another device (e.g., device 10B) includes device discovery, identity authentication, security verification, and multiple secure transmission methods between the master device and the other device, enabling secure transmission of card account authentication-related instructions, information, and network data between the devices.

[0155] The cellular network service 109a can be used to provide cellular network communication capabilities to the device 10A and other devices in the near field (i.e., devices in the vicinity of the device 10A that have established a communication connection with the device 10A). The cellular network service 109a supports the device 10A and other devices in the near field to transmit network data using a cellular network.

[0156] The phone service 110a may be used to provide the device 10A and other devices in the near field with phone communication capabilities. The phone service 110a may support the device 10A and other devices in the near field to make and receive calls using the phone communication capabilities.

[0157] The SMS service 111a can be used to provide SMS communication capabilities to the device 10A and other devices in the near field. The SMS service 111a can support the device 10A and other devices in the near field to send and receive SMS messages using the SMS communication capabilities.

[0158] It can be understood that the cellular network communication capabilities, telephone communication capabilities and SMS communication capabilities provided in the cellular network services, telephone services and SMS services in the above-mentioned service layers can be provided by the physical SIM card in the device 10A, or by the physical SIM card in other devices that establish a communication connection with the device 10A.

[0159] The physical SIM card 112a can be used to store SIM card information of the physical SIM card actually used in the device 10A. For example, the SIM card information may include at least one of the following items: an integrated circuit card identity (ICCID), an international mobile subscriber identification number (IMSI), a mobile subscriber international ISDN number (MSISDN), and contact phone numbers and names stored in the SIM card, as well as information such as an authentication key, an operator root key, and an authentication algorithm used for authentication with a network device (e.g., a base station). Applications in the device 10A can obtain the physical SIM card information through the communication interface 107a.

[0160] In some embodiments, the MSISDN may also be referred to as a user telephone number, or a telephone number.

[0161] In the embodiment of the present application, the physical SIM card includes but is not limited to a pluggable SIM card and a non-pluggable eSIM.

[0162] It is understandable that each SIM card in the device 10A corresponds to a physical SIM in the service layer, that is, the SIM card information corresponding to the SIM card is stored in the service layer.

[0163] It is understood that if device 10A has only one physical SIM card, then the service layer of device 10A may include one physical SIM card, namely, physical SIM card 112a. Alternatively, if device 10A has two physical SIM cards, then device 10A may include two physical SIM cards, namely, physical SIM card 112a and physical SIM card 113a. This embodiment of the present application does not limit the number of physical SIM cards in device 10A or the number of corresponding physical SIM cards in the service layer of device 10A.

[0164] The HAL may include a local radio interface layer (RIL) 114 a , a modem 115 a , a Bluetooth communication component 116 a , a WLAN communication component 117 a , and the like.

[0165] The local RIL 114a may be a wireless communication hardware interface layer corresponding to the physical SIM 112a. Other devices may access and obtain the first information in the SIM card information of the physical SIM card stored in the physical SIM 112a in the device 10A through the local RIL 114a, and use the communication capability of the physical SIM card corresponding to the physical SIM 112a.

[0166] The modem 115a can be used to modulate and adjust the cellular network signals received and sent. For details, please refer to the following description of the modem and the description of the modem in the prior art, which will not be repeated here.

[0167] The device 10A can establish a communication connection with other devices through a communication element such as the Bluetooth communication element 116a or the WLAN communication element 117a. Furthermore, the device 10A can establish a secure near-field communication with other devices through a communication element such as the Bluetooth communication element 116a or the WLAN communication element 117a.

[0168] In some embodiments, a communication element may be referred to as a communication chip, a communication device, etc. For example, in some embodiments, the Bluetooth communication element 116a may be referred to as a Bluetooth communication chip 116a, a Bluetooth chip 116a, or a Bluetooth communication device 116a. The WLAN communication element 117a may be referred to as a WLAN communication chip 117a, a WLAN chip 117a, or a WLAN communication device 117a, etc.

[0169] It is understandable that the device 10A may include more or fewer modules or elements, and the embodiments of the present application are not limited to this.

[0170] The device 10B may include an application layer, a service layer, and a HAL.

[0171] The application layer in device 10B may include a series of application packages.

[0172] like Figure 1 As shown, the application package may include application programs (also referred to as applications) such as camera 100b, calendar 101b, map 102b, WLAN 103b, gallery 104b, call 105b, and Bluetooth 106b.

[0173] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0174] like Figure 1 As shown, the service layer of device 10B may include a communication interface 107b, a card account management 108b, a cellular network service 109b, a phone service 110b, a text messaging service 111b, and a virtual SIM 112b.

[0175] The communication interface 107b can provide system communication capabilities to applications in the application layer. The communication interface 107b may include interfaces for cellular wireless communication between applications (including system applications and third-party applications) and system services. For example, interfaces for application layer applications to obtain SIM card account information, request to establish a cellular mobile network, and access the network using the corresponding cellular mobile network.

[0176] Card account management 108b can be used to manage SIM card account information in device 10B, as well as manage SIM card account information of other devices (i.e., devices near device 10B that have established a communication connection with device 10B) under secure near-field transmission. For details about card account management 108b, please refer to the description of card account management 108a above and will not be repeated here.

[0177] The cellular network service 109b may be used to provide the device 10B with cellular network communication capabilities. The cellular network service 109b supports the device 10B in transmitting network data using a cellular network.

[0178] The phone service 110b may be used to provide the device 10B with phone communication capabilities. The phone service 110a may support the device 10A to make and receive calls using the phone communication capabilities.

[0179] The SMS service 111b may be used to provide the device 10B with SMS communication capabilities. The SMS service 111b may support the device 10B in sending and receiving SMS messages using the SMS communication capabilities.

[0180] Virtual SIM 112b can be used to store a portion of the SIM card information (hereinafter referred to as the first information) of the physical SIM card actually used in another device (e.g., device 10A) that establishes a communication connection with device 10B. Virtual SIM 112b maps the first information in the SIM card information of the other device to the device itself and presents it to the outside world in the form of the SIM card information of the device itself. When an application in device 10B accesses a SIM card-related communication interface (e.g., communication interface 107b), the virtual SIM card information (i.e., the first information) in the virtual SIM can be returned to the application based on the current service requirements.

[0181] The first information may include at least one of the following: the integrated circuit card identification code (ICCID), IMSI, and mobile subscriber number (MSISDN) in the SIM card information. The first information does not include information such as the authentication key, operator root key, and authentication algorithm in the SIM card information. It is understood that information such as the authentication key, operator root key, and authentication algorithm in the SIM card information of the physical SIM card is restricted access data and is generally not accessible to another device.

[0182] In one possible implementation, the virtual SIM 112b is created by the card account management 108b in the device 10B after obtaining the first information from the SIM card information of the SIM card actually used in another device. The virtual SIM 112b is a memory space in the memory of the device 10B, which is used to store the SIM card information of the physical SIM card actually used in another device (e.g., device 10A) that establishes a communication connection with the device 10B.

[0183] Alternatively, in some examples, device 10B may not create virtual SIM 112b to save memory space. Alternatively, device 10B may create virtual SIM 112b, but virtual SIM 112b does not cache the first information from the SIM card information of a physical SIM card actually used by another device (e.g., device 10A) that has established a communication connection with device 10B. Card account management 108b only needs to recognize that a virtual SIM card exists in device 10B at this time.

[0184] It is understandable that because device 10B does not have a physical SIM card inserted or does not have SIM card capabilities, the card account management 108b in device 10B does not contain card account information related to the physical SIM card. When device 10B establishes a communication connection with another device and obtains the first information in the SIM card information of the other device, the first information in the SIM card information of the other device can be stored in the virtual SIM 112b, and the card account information related to the SIM card of the other device can be stored in the card account management 108b.

[0185] It can be understood that when device 10B obtains the SIM card information of other devices (taking device 10A as an example below), the cellular network communication capability, telephone communication capability and SMS communication capability in the cellular network service 109b, telephone service 110b and SMS service 111b in device 10B are provided by the physical SIM card corresponding to the SIM card information in the other device.

[0186] It is understood that device 10B can obtain SIM card information of one or more physical SIM cards in other devices. When device 10B obtains SIM card information of N physical SIM cards, device 10B will have N virtual SIM cards that respectively store the first information in the SIM card information of these N SIM cards. In other words, one virtual SIM card in device 10B can store the first information of the SIM card information of one physical SIM card. This embodiment of the present application does not limit the number of virtual SIM cards.

[0187] The HAL may include a distributed radio interface layer (RIL) 113b, a Bluetooth communication element 114b, a WLAN communication element 115b, and the like.

[0188] The distributed RIL 113b may map the first information in the SIM card information stored in the physical SIM corresponding to the physical SIM card in other devices to the virtual SIM 112b in the device 10B, and map the communication capability corresponding to the physical SIM card to the device 10B.

[0189] The device 10B may establish a communication connection with another device (eg, the device 10A) via a communication element such as the Bluetooth communication element 114 b or the WLAN communication element 115 b .

[0190] It is understandable that the device 10B may include more or fewer modules or elements, and the embodiments of the present application are not limited to this.

[0191] like Figure 1As shown, device 10B can access the local RIL 114a in device 10A through the distributed RIL 113b, obtain the first information of the SIM card information of the physical SIM card in device 10A, and map the communication capabilities of the physical SIM card in device 10A to device 10B. In this way, when no SIM card is inserted in device 10B, device 10B can share the communication capabilities of the physical SIM card in device 10A without removing the SIM card in device 10A and inserting it into device 10B.

[0192] Scenario 2: Device 20A has dual SIM cards inserted, and device 20B has no SIM cards inserted. Device 20A maps the dual SIM cards to device 20B.

[0193] Figure 2 1 shows a system structure diagram of the communication sharing system 20. Figure 2 As shown, the communication sharing system 20 may include a device 20A and a device 20B. Device 20A has dual SIM cards inserted, while device 20B has no SIM cards inserted. Device 20A maps the dual SIM cards to device 20B.

[0194] The device 20A may include an application layer, a service layer, and a hardware abstraction layer (HAL).

[0195] The application layer in device 20A may include a series of application packages.

[0196] like Figure 2 As shown, the application package may include application programs (also referred to as applications) such as camera 200a, calendar 201a, map 202a, WLAN 203a, gallery 204a, call 205a, and Bluetooth 206a.

[0197] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0198] like Figure 2 As shown, the service layer of device 20A may include a communication interface 207a, a card account management 208a, a cellular network service 209a, a phone service 210a, a text messaging service 211a, a physical SIM 212a, and a physical SIM 213a.

[0199] The communication interface 207a can provide the system communication capability to the application in the application layer. Figure 1 The description of the communication interface 107a shown in FIG will not be repeated here.

[0200] Card account management 208a may be used to manage SIM card account information in device 20A.

[0201] Optionally, as devices and future communication protocols evolve, if device 20A supports more than two SIM cards, then if device 20A has two physical SIM cards, device 20A can also map physical SIM cards in other devices to virtual SIM cards in device 20A. Card account management 208a can then be used to manage SIM card account information of other devices (i.e., devices in the vicinity of device 20A that have established a communication connection with device 20A) using secure near-field transmission.

[0202] The cellular network service 209a can be used to provide cellular network communication capabilities to the device 20A and other devices in the near field (i.e., devices in the vicinity of the device 20A that have established a communication connection with the device 20A). The cellular network service 209a supports the device 20A or other devices in the near field to use the cellular network to transmit network data.

[0203] The phone service 210a may be used to provide the device 20A and other devices in the near field with phone communication capabilities. The phone service 210a may support the device 20A and other devices in the near field to make and receive calls using the phone communication capabilities.

[0204] The SMS service 211a can be used to provide SMS communication capabilities to the device 20A and other devices in the near field. The SMS service 211a can support the device 20A and other devices in the near field to send and receive SMS using the SMS communication capabilities.

[0205] Physical SIM 212a is the SIM card information of one of the dual SIM cards actually used in device 20A (referred to as SIM card 1). For example, this SIM card information may include at least one of the following: ICCID, IMSI, MSISDN, as well as contact phone numbers and names stored on the SIM card, and information such as an authentication key, operator root key, and authentication algorithm used for authentication with network devices (e.g., base stations). Applications in device 20A can obtain information about physical SIM card 1 through communication interface 207a.

[0206] Physical SIM 213a is the SIM card information of the other physical SIM card (referred to as SIM card 2) in the dual SIM cards actually used in device 20A. For example, this SIM card information may include at least one of the following: ICCID, IMSI, MSISDN, as well as contact phone numbers and names stored on the SIM card, and information such as an authentication key, operator root key, and authentication algorithm used for authentication with network devices (e.g., base stations). Applications in device 20A can obtain information about physical SIM card 2 through communication interface 207a.

[0207] The physical SIM 212a and the physical SIM 213a can refer to the above description. Figure 1 The description of the physical SIM 112a shown in FIG will not be repeated here.

[0208] The HAL may include a local RIL 214a, a local RIL 215a, a modem 216a, a Bluetooth communication element 217a, a WLAN communication element 218a, and the like.

[0209] The local RIL 214a may be a wireless communication interface layer corresponding to the physical SIM 212a. Other devices may access and obtain the first information in the SIM card information of the physical SIM card 1 stored in the physical SIM 212a in the device 20A through the local RIL 214a, and use the communication capabilities of the physical SIM card 1 corresponding to the physical SIM 212a.

[0210] The local RIL 215a may be a wireless communication hardware interface layer corresponding to the physical SIM 213a. Other devices may access and obtain the first information of the SIM card information of the physical SIM card 2 stored in the physical SIM 213a in the device 20A through the local RIL 215a, and use the communication capabilities of the physical SIM card 2 corresponding to the physical SIM 213a.

[0211] Modem 216a can refer to the above description of modem 115a, which will not be repeated here.

[0212] The Bluetooth communication element 217a can refer to the above description of the Bluetooth communication element 116a, which will not be repeated here.

[0213] The WLAN communication element 218a may refer to the above description of the WLAN communication element 117a, which will not be repeated here.

[0214] It is understandable that the device 20A may include more or fewer modules or elements, and the embodiments of the present application are not limited to this.

[0215] Device 20B may include an application layer, a service layer, and a HAL.

[0216] The application layer in device 20B may include a series of application packages.

[0217] like Figure 2 As shown, the application package may include application programs (also referred to as applications) such as camera 200b, calendar 201b, map 202b, WLAN 203b, gallery 204b, call 205b, and Bluetooth 206b.

[0218] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0219] like Figure 2 As shown, the service layer of device 20B may include a communication interface 207b, a card account management 208b, a cellular network service 209b, a phone service 210b, a text messaging service 211b, a virtual SIM 212b, and a virtual SIM 213b.

[0220] The communication interface 207b can provide the system communication capability to the application in the application layer. Figure 1 The description of the communication interface 107a shown in FIG will not be repeated here.

[0221] The card account management 208b can be used to manage the SIM card account information in the device 20B, and manage the SIM card account information of other devices (ie, devices in the vicinity of the device 20B that have established a communication connection with the device 20B) under secure near-field transmission.

[0222] The cellular network service 209b can be used to provide the device 20B with cellular network communication capabilities. The cellular network service 209b supports the device 20B to transmit network data using a cellular network.

[0223] The phone service 210b may be used to provide the device 20B with phone communication capabilities. The phone service 210a may support the device 20A to make and receive calls using the phone communication capabilities.

[0224] The SMS service 211b may be used to provide the device 20B with SMS communication capabilities. The SMS service 211b may support the device 20B in sending and receiving SMS messages using the SMS communication capabilities.

[0225] Virtual SIM 212b can be used to store the first information of the SIM card information of the physical SIM card 1 actually used in another device (e.g., device 20A) that establishes a communication connection with device 20B. Virtual SIM 212b maps the first information in the SIM card information of the other device to the device itself and presents it to the outside world in the form of the SIM card information of the device itself. When an application in device 20B accesses a SIM card-related communication interface (e.g., communication interface 207b), the SIM card information in the virtual SIM can be returned to the application based on the current service requirements. In other words, the first information in the SIM card information of SIM card 1 stored in the physical SIM 212a of device 20A can be mapped to the virtual SIM 212b.

[0226] Virtual SIM 213b can be used to store the first information in the SIM card information of the physical SIM card 2 actually used in another device (e.g., device 20A) that establishes a communication connection with device 20B. Virtual SIM 213b maps the first information in the SIM card information of the other device to the device itself and presents it to the outside in the form of the SIM card information of the device itself. When an application in device 20B accesses a SIM card-related communication interface (e.g., communication interface 207b), the virtual SIM card information in the virtual SIM (i.e., the first information in the SIM card information of SIM card 2) can be returned to the application based on the current service requirements. In other words, the SIM card information of SIM card 2 stored in the physical SIM 213a of device 20A can be mapped to virtual SIM 213b.

[0227] For the relevant description of this module in the service layer, please refer to the description of the various modules in the service layer of device 10B above, which will not be repeated here.

[0228] The HAL may include a distributed RIL 214b, a distributed RIL 215b, a Bluetooth communication element 216b, and a WLAN communication element 217b, among others.

[0229] The distributed RIL 214b may map the first information in the SIM card information of the physical SIM card corresponding to one of the physical SIM 212a and the physical SIM 213a in the device 20A to the virtual SIM 212b, and map the communication capability corresponding to the physical SIM card to the device 20B. Figure 2 As shown, the distributed RIL 214b maps the first information in the SIM card information in the physical SIM 213a in the device 20A to the virtual SIM 212b, and maps the communication capability of the entity SIM2 corresponding to the physical SIM 213a to the device 20B.

[0230] The distributed RIL 215b can map the first information in the SIM card information of the physical SIM card corresponding to the other physical SIM of the physical SIM 212a and the physical SIM 213a in the device 20A to the virtual SIM 213b, and map the communication capability corresponding to the physical SIM card to the device 20B. Figure 2 As shown, the distributed RIL 215b maps the SIM card information in the physical SIM 212a in the device 20A to the virtual SIM 213b, and maps the communication capability of the entity SIM1 corresponding to the physical SIM 212a to the device 20B.

[0231] The Bluetooth communication element 216b can refer to the above description of the Bluetooth communication element 116a, which will not be repeated here.

[0232] The WLAN communication element 217b may refer to the above description of the WLAN communication element 117a, which will not be repeated here.

[0233] like Figure 2 As shown, device 20B can access the local RIL 215a in device 20A through the distributed RIL 214b, obtain the first information in the SIM card information of the physical SIM card 2 corresponding to the physical SIM card 213a in device 20A, and map the communication capabilities of the physical SIM card 2 in device 20A to device 20B. Device 20B can also access the local RIL 214a in device 20A through the distributed RIL 215b, obtain the first information in the SIM card information of the physical SIM card 1 corresponding to the physical SIM card 212a in device 20A, and map the communication capabilities of the physical SIM card 1 in device 20A to device 20B. In this way, even if no SIM card is inserted in device 20B, device 20B can share the communication capabilities of the physical SIM card in device 20A without having to remove the SIM card in device 20A and insert it into device 10B. Furthermore, device 20B can have two virtual SIM cards and, similar to device 20A with dual physical SIM cards, dynamically switch the SIM card to be used.

[0234] Scenario 3: Device 30A is inserted with dual SIM cards, and device 30B is inserted with a single SIM card. Device 30A maps the first SIM card in the dual SIM cards to device 30B.

[0235] Figure 3 1 shows a system structure diagram of the communication sharing system 30. Figure 3 As shown, the communication sharing system 30 may include a device 30A and a device 30B. Device 30A is inserted with dual SIM cards, and device 30B is inserted with a single SIM card. Device 30A can map any one of the dual SIM cards to device 30B.

[0236] Device 30A may include an application layer, a service layer, and a HAL.

[0237] The application layer in device 30A may include a series of application packages.

[0238] like Figure 3 As shown, the application package may include application programs (also referred to as applications) such as camera 300a, calendar 301a, map 302a, WLAN 303a, gallery 304a, call 305a, and Bluetooth 306a.

[0239] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0240] like Figure 3 As shown, the service layer of device 30A may include a communication interface 307a, a card account management 308a, a cellular network service 309a, a phone service 310a, a text messaging service 311a, a physical SIM 312a, and a physical SIM 313a.

[0241] The communication interface 307a can provide the system communication capability to the application programs in the application program layer. Detailed descriptions of the communication interface 107a can be referred to above and will not be repeated here.

[0242] Card account management 308a may be used to manage SIM card account information in device 30A.

[0243] The cellular network service 309a can be used to provide cellular network communication capabilities to the device 30A and other devices in the near field (i.e., devices in the vicinity of the device 10A that have established a communication connection with the device 10A). The cellular network service 309a supports the device 30A or other devices in the near field to use the cellular network to transmit network data.

[0244] The phone service 310a may be used to provide the device 30A and other devices in the near field with phone communication capabilities. The phone service 310a may support the device 30A and other devices in the near field to make and receive calls using the phone communication capabilities.

[0245] The SMS service 311a can be used to provide SMS communication capabilities to the device 30A and other devices in the near field. The SMS service 311a can support the device 30A and other devices in the near field to send and receive SMS using the SMS communication capabilities.

[0246] Physical SIM card 312a is the SIM card information of one of the two physical SIM cards actually used in device 30A (referred to as physical SIM card 1). For example, the SIM card information may include at least one of the following: ICCID, IMSI, MSISDN, as well as contact phone numbers and names stored on the SIM card, and information such as an authentication key, operator root key, and authentication algorithm used for authentication with network devices (e.g., a base station). Applications in device 30A can obtain information about physical SIM card 1 through communication interface 307a.

[0247] Physical SIM 313a is the SIM card information of the other SIM card (referred to as physical SIM card 2) of the two physical SIM cards actually used in device 30A. For example, this SIM card information may include at least one of the following: ICCID, IMSI, MSISDN, as well as contact phone numbers and names stored on the SIM card, and information such as an authentication key, operator root key, and authentication algorithm used for authentication with network equipment (e.g., a base station). Applications in device 30A can obtain information about physical SIM card 2 via communication interface 307a.

[0248] The HAL may include a local RIL 314a, a local RIL 315a, a modem 316a, a Bluetooth communication element 317a, a WLAN communication element 318a, and the like.

[0249] The local RIL 314a may be a wireless communication hardware interface layer corresponding to the physical SIM 312a. Other devices may access and obtain the first information in the SIM card information of the physical SIM card 1 stored in the physical SIM 312a in the device 30A through the local RIL 314a, and use the communication capabilities of the physical SIM card 1 corresponding to the physical SIM 312a.

[0250] The local RIL 315a may be a wireless communication hardware interface layer corresponding to the physical SIM 313a. Other devices may access and obtain the first information in the SIM card information of the physical SIM card 2 stored in the physical SIM 313a in the device 30A through the local RIL 315a, and use the communication capabilities of the physical SIM card 2 corresponding to the physical SIM 313a.

[0251] Modem 316a can refer to the above description of modem 115a, which will not be repeated here.

[0252] The Bluetooth communication element 317a can refer to the above description of the Bluetooth communication element 116a, which will not be repeated here.

[0253] The WLAN communication element 318a may refer to the above description of the WLAN communication element 117a, which will not be repeated here.

[0254] It is understandable that the device 30A may include more or fewer modules or elements, and the embodiments of the present application are not limited to this.

[0255] Device 30B may include an application layer, a service layer, and a HAL.

[0256] The application layer in device 30B may include a series of application packages.

[0257] like Figure 3 As shown, the application package may include application programs (also referred to as applications) such as camera 300b, calendar 301b, map 302b, WLAN 303b, gallery 304b, call 305b, and Bluetooth 306b.

[0258] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0259] like Figure 3 As shown, the service layer of device 30B may include a communication interface 307b, card account management 308b, cellular network service 309b, phone service 310b, SMS service 311b, physical SIM 312b, and virtual SIM 313b.

[0260] The communication interface 307b can provide the system communication capability to the application in the application layer. Figure 1 The description of the communication interface 107a shown in FIG will not be repeated here.

[0261] The card account management 308b can be used to manage the SIM card account information in the device 30B, and manage the SIM card account information of other devices (ie, devices in the vicinity of the device 30B that have established a communication connection with the device 30B) under secure near-field transmission.

[0262] The cellular network service 309b can be used to provide the device 30B with cellular network communication capabilities. The cellular network service 309b supports the device 30B to transmit network data using a cellular network.

[0263] The phone service 310b may be used to provide the device 30B with a phone communication capability. The phone service 310b may support the device 30B in making and receiving calls using the phone communication capability.

[0264] The SMS service 311b may be used to provide the device 30B with SMS communication capabilities. The SMS service 311b may support the device 30B in sending and receiving SMS messages using the SMS communication capabilities.

[0265] Physical SIM 312b can be used to store SIM card information of the physical SIM card actually used in device 30B. For example, the SIM card information may include at least one of the following: ICCID, IMSI, MSISDN, as well as contact phone numbers and names stored on the SIM card, and information such as an authentication key, operator root key, and authentication algorithm used for authentication with network devices (e.g., base stations). Applications in device 30B can obtain the physical SIM card information through communication interface 307b.

[0266] The virtual SIM 313b can be used to store the first information in the SIM card information of the physical SIM card actually used in other devices (e.g., device 20A) that establish a communication connection with device 30B. The virtual SIM 313b can map the first information in the SIM card information of the other device to the current device and present it to the outside in the form of the SIM card information of the current device. When the application in device 30B accesses the communication interface related to the SIM card (e.g., communication interface 307b), the virtual SIM card information in the virtual SIM (i.e., the first information in the SIM card information of the other device) can be returned to the application based on the current business needs. For example, the first information in the SIM card information of SIM card 1 or SIM card 2 stored in the physical SIM 313a in device 30A can be mapped to the virtual SIM 313b.

[0267] For the relevant description of this module in the service layer, please refer to the description of the various modules in the service layer of device 10B above, which will not be repeated here.

[0268] The HAL may include a local RIL 314b, a distributed RIL 315b, a Bluetooth communication element 316b, and a WLAN communication element 317b, among others.

[0269] The local RIL 314b may be a wireless communication hardware interface layer corresponding to the physical SIM 312b. Other devices may access and obtain the SIM card information of the physical SIM card stored in the physical SIM 312b in the device 30B through the local RIL 314b, and use the communication capabilities of the physical SIM card corresponding to the physical SIM 312b.

[0270] The distributed RIL 315b can map the first information in the SIM card information of the physical SIM card corresponding to either the physical SIM 312a or the physical SIM 313a in the device 30A to the virtual SIM 313b, and map the communication capability corresponding to the physical SIM card to the device 30B. Figure 3 As shown, the distributed RIL 315b maps the first information in the SIM card information in the physical SIM 312a in the device 30A to the virtual SIM 313b, and maps the communication capability of the entity SIM1 corresponding to the physical SIM 312a to the device 30B.

[0271] The Bluetooth communication element 316b can refer to the above description of the Bluetooth communication element 116a, which will not be repeated here.

[0272] The WLAN communication element 317b may refer to the above description of the WLAN communication element 117a, which will not be repeated here.

[0273] like Figure 3 As shown, device 30B can access the local RIL 314a in device 30A through the distributed RIL 315b, obtain the first information from the SIM card information of the physical SIM card 1 corresponding to the physical SIM card 312a in device 30A, and map the communication capabilities of the physical SIM card 1 in device 30A to device 30B. In this way, device 30B can become a dual-SIM device with one physical SIM card and one virtual SIM card. Like device 30A with dual physical SIM cards, device 30B can dynamically switch the SIM card to be used based on network conditions. For example, in some scenarios, the physical SIM card in device 30B has no network service, while the physical SIM card in device 30A has network service. Device 30B can switch from using the network service of the physical SIM card to using the network service of the virtual SIM card. It is understood that the carrier corresponding to the physical SIM card in device 30A is different from the carrier corresponding to the physical SIM card in device 30B.

[0274] Scenario 4: A single SIM card is inserted into device 40A, and a single SIM card is inserted into device 40B. Device 40A maps the single SIM card to device 40B, and device 40B maps the single SIM card to device 40A.

[0275] Figure 4 4 shows a system architecture diagram of the communication sharing system 40. Figure 4As shown, the communication sharing system 40 may include a device 40A and a device 40B. A single SIM card is inserted into device 40A, and a single SIM card is inserted into device 40B. Device 40A can map the single SIM card to device 40B, and device 40B can also map the single SIM card to device 40A.

[0276] Device 40A may include an application layer, a service layer, and a HAL.

[0277] The application layer in device 40A may include a series of application packages.

[0278] like Figure 4 As shown, the application package may include application programs (also referred to as applications) such as camera 400a, calendar 401a, map 402a, WLAN 403a, gallery 404a, call 405a, and Bluetooth 406a.

[0279] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0280] like Figure 4 As shown, the service layer of device 40A may include a communication interface 407a, card account management 408a, cellular network service 409a, phone service 410a, SMS service 411a, physical SIM 412a, and virtual SIM 413a.

[0281] The communication interface 407a can provide the system communication capability to the application programs in the application program layer. Detailed descriptions of the communication interface 107a can be referred to above and will not be repeated here.

[0282] Card account management 408a can be used to manage SIM card account information in device 40A and manage SIM card account information of other devices (ie, devices in the vicinity of device 40A that have established communication connections with device 40A) under secure near-field transmission.

[0283] Cellular network service 409a can be used to provide cellular network communication capabilities to device 40A and other devices in the near field (i.e., devices in the vicinity of device 40A that have established a communication connection with device 40A). The cellular network service 409a supports device 40A or other devices in the near field to use a cellular network to transmit network data.

[0284] Telephone service 410a can be used to provide telephone communication capabilities to device 40A and other devices in the near field. The telephone service 410a can support device 40A and other devices in the near field to make and receive calls using the telephone communication capabilities.

[0285] The SMS service 411a can be used to provide SMS communication capabilities to the device 40A and other devices in the near field. The SMS service 411a can support the device 40A and other devices in the near field to send and receive SMS using the SMS communication capabilities.

[0286] Physical SIM 412a is the SIM card information of the physical SIM card actually used in device 40A. For example, the SIM card information may include at least one of the following items: ICCID, IMSI, MSISDN, as well as contact phone numbers and contact names stored on the SIM card, and information such as an authentication key, operator root key, and authentication algorithm used for authentication with network devices (e.g., base stations). Applications in device 40A can obtain the physical SIM card information through communication interface 407a.

[0287] Virtual SIM 413a can be used to store the first information in the SIM card information of the physical SIM card actually used in other devices (e.g., device 40B) that establish a communication connection with device 40A. The virtual SIM 413a can map the first information in the SIM card information of the other device to the current device and present it to the outside in the form of the SIM card information of the current device. When the application in device 40A accesses the communication interface related to the SIM card (e.g., communication interface 307b), the virtual SIM card information in the virtual SIM (the first information in the SIM card information of the other device) can be returned to the application according to the current business needs. For example, the first information in the SIM card information of the physical SIM card stored in device 40B can be mapped to the virtual SIM 413a.

[0288] The HAL may include a local RIL 414a, a distributed RIL 415a, a modem 416a, a Bluetooth communication element 417a, a WLAN communication element 418a, and the like.

[0289] The local RIL 414a may be a wireless communication hardware interface layer corresponding to the physical SIM 412a. Other devices may access and obtain the first information in the SIM card information of the physical SIM card stored in the physical SIM 412a in the device 40A through the local RIL 414a, and use the communication capabilities of the physical SIM card corresponding to the physical SIM 412a.

[0290] The distributed RIL 415a may map the first information in the SIM card information stored in the physical SIM corresponding to the physical SIM card in other devices to the virtual SIM 413a in the device 40A, and map the communication capability corresponding to the physical SIM card to the device 40A.

[0291] Modem 416a can refer to the above description of modem 115a, which will not be repeated here.

[0292] The Bluetooth communication element 417a can refer to the above description of the Bluetooth communication element 116a, which will not be repeated here.

[0293] The WLAN communication element 418a may refer to the above description of the WLAN communication element 117a, which will not be repeated here.

[0294] It is understandable that the device 40A may include more or fewer modules or elements, and this embodiment of the present application is not limited to this.

[0295] Device 40B may include an application layer, a service layer, and a HAL.

[0296] The application layer in device 40B may include a series of application packages.

[0297] like Figure 4 As shown, the application package may include application programs (also referred to as applications) such as camera 400b, calendar 401b, map 402b, WLAN 403b, gallery 404b, call 405b, and Bluetooth 406b.

[0298] The service layer can provide cellular wireless communication related interfaces and system services for applications in the application layer.

[0299] like Figure 4 As shown, the service layer of device 30B may include a communication interface 407b, card account management 408b, cellular network service 409b, phone service 410b, SMS service 411b, physical SIM 412b, and virtual SIM 413b.

[0300] The communication interface 407b can provide the system communication capability to the application in the application layer. Figure 1 The description of the communication interface 107a shown in FIG will not be repeated here.

[0301] Card account management 408b can be used to manage SIM card account information in device 40B, and manage SIM card account information of other devices (ie, devices in the vicinity of device 40B that have established communication connections with device 40B) under secure near-field transmission.

[0302] The cellular network service 409b can be used to provide the device 40B with cellular network communication capabilities. The cellular network service 409b supports the device 40B to transmit network data using a cellular network.

[0303] The phone service 410b may be used to provide the device 40B with a phone communication capability. The phone service 410b may support the device 40B in making and receiving calls using the phone communication capability.

[0304] The SMS service 411b may be used to provide the device 40B with SMS communication capabilities. The SMS service 411b may support the device 40B in sending and receiving SMS messages using the SMS communication capabilities.

[0305] Physical SIM 412b can be used to store SIM card information of the physical SIM card actually used in device 30B. For example, the SIM card information may include at least one of the following: ICCID, IMSI, MSISDN, as well as contact phone numbers and names stored on the SIM card, and information such as an authentication key, operator root key, and authentication algorithm used for authentication with network devices (e.g., base stations). Applications in device 40B can obtain the physical SIM card information through communication interface 407b.

[0306] The virtual SIM 413b can be used to store the first information in the SIM card information of the physical SIM card actually used in other devices (e.g., device 20A) that establish a communication connection with device 40B. The virtual SIM 413b can map the first information in the SIM card information of the other device to the current device and present it to the outside in the form of the SIM card information of the current device. When the application in device 40B accesses the communication interface related to the SIM card (e.g., communication interface 407b), the virtual SIM card information in the virtual SIM (i.e., the first information in the SIM card information of the other device) can be returned to the application according to the current business needs. For example, the first information in the SIM card information of the SIM card stored in the physical SIM 412a in device 30A can be mapped to the virtual SIM 413b.

[0307] For the relevant description of this module in the service layer, please refer to the description of the various modules in the service layer of device 10B above, which will not be repeated here.

[0308] The HAL may include a local RIL 414b, a distributed RIL 415b, a Bluetooth communication element 416b, and a WLAN communication element 417b, among others.

[0309] The local RIL 414b can be a wireless communication hardware interface layer corresponding to the physical SIM 412b. Other devices can access and obtain the first information in the SIM card information of the physical SIM card stored in the physical SIM 412b in the device 40B through the local RIL 414b, and use the communication capabilities of the physical SIM card corresponding to the physical SIM 412b.

[0310] The distributed RIL 415b may map the first information in the SIM card information of the physical SIM card corresponding to the physical SIM 312a in the device 40A to the virtual SIM 413b, and map the communication capability corresponding to the physical SIM card to the device 40B.

[0311] The Bluetooth communication element 416b can refer to the above description of the Bluetooth communication element 116a, which will not be repeated here.

[0312] The WLAN communication element 417b may refer to the above description of the WLAN communication element 117a, which will not be repeated here.

[0313] like Figure 4 As shown, device 40B can access the local RIL 414a in device 40A through the distributed RIL 415b, obtain the first information in the SIM card information of the physical SIM card corresponding to the physical SIM 412a in device 40A, and map the communication capabilities of the physical SIM card in device 40A to device 40B. Device 40A can access the local RIL 414b in device 40B through the distributed RIL 415a, obtain the first information in the SIM card information of the physical SIM card corresponding to the physical SIM 412b in device 40B, and map the communication capabilities of the physical SIM card in device 40B to device 40A. In this way, device 40A can become a dual-SIM device with one physical SIM card and one virtual SIM card. Device 40B can also become a dual-SIM device with one physical SIM card and one virtual SIM card. Devices 40A and 40B dynamically switch the SIM card to be used based on network conditions. For example, when the physical SIM card in device 40A is out of network service, and the SIM card in device 40B is in network service, device 40A can switch to a cellular network using the virtual SIM card.

[0314] The following describes, with reference to the accompanying drawings, a schematic diagram of a user interface for sharing the communication capability of a SIM card in one device with another device.

[0315] The following description will be made by taking the example of the mobile phone 40 sharing the communication capability of the SIM card in the mobile phone 40 with the tablet 50. For example, it is assumed that the tablet 50 has no SIM card inserted and the mobile phone 40 has a SIM card inserted.

[0316] Figure 5-Figure 37 The diagram exemplarily shows the user interface diagrams of the mobile phone 40 and the tablet 50 during the process of sharing the communication capability of the SIM card in the mobile phone 40 with the tablet 50 .

[0317] The following first describes in detail how the tablet 50 obtains the communication capability of the SIM card in the mobile phone 40 through the received user operation.

[0318] Figure 5-Figure 21 The diagram exemplarily shows a schematic diagram of a related user interface in the tablet 50 when the tablet 50 is in the process of obtaining the communication capability of the SIM card shared by the mobile phone 40 .

[0319] In the embodiment of the present application, the user can enable the tablet 50 to obtain the communication capability of the SIM card shared by the mobile phone 40 in two ways.

[0320] Method 1: Figure 5-Figure 11 The user uses the super terminal card in the tablet 50 to enable the tablet 50 to obtain the communication capability of the SIM card shared by the mobile phone 40.

[0321] Figure 5 The user interface 500 of the tablet 50 is shown as an example. Figure 5 As shown, the user interface 500 is the main interface for displaying installed applications on the tablet 50. The user interface 500 may include a status bar 501 and application icons 502. Among them, the status bar 501 may include: a Bluetooth indicator, one or more signal strength indicators of wireless fidelity (Wi-Fi) signals, a battery status indicator, and a time indicator. The application icon 502 may include icons of multiple applications, for example, a settings icon, a gallery icon, a music icon, etc. The embodiment of the present application does not limit the type and number of application icons specifically included in the application icon 502.

[0322] like Figure 5 As shown, the tablet 50 may receive a downward sliding operation from the right side of the top of the tablet 50 by the user. In response to the sliding operation of the user, the tablet 50 may display the user interface 600 .

[0323] Figure 6 The user interface 600 of the tablet 50 is shown as an example. Figure 6 As shown, the user interface 600 may include a WLAN icon 601, a Bluetooth icon 602, and shortcut icons 603 for multiple functions (for example, a screenshot icon, an automatic rotation icon, a screen projection icon, a flashlight icon, a brightness adjustment bar, etc.).

[0324] like Figure 6 As shown, the user interface 600 may also include a hyperterminal card 604. Card 604 displays a control 605 and a prompt 606. Prompt 606 may be used to prompt the user to click control 605 to search for nearby devices with which a collaborative connection can be established. The user may click control 605, and in response to the user's operation, tablet 50 may display user interface 700.

[0325] Figure 7 The user interface 700 of the tablet 50 is shown as an example. Figure 7 As shown, the user interface 700 may include an icon 701 of the tablet 50. Optionally, the user interface 700 may also include the name of the tablet 50, "Tablet 50". The user interface 700 may also include icons of candidate devices that can be detected by the tablet 50 and can establish a collaborative connection with the tablet 50. Optionally, the user interface 700 may also include the names and / or models of the above-mentioned candidate devices. For example, the icon 702 and the name "Computer 10" of the computer 10, the icon 703 and the name "Projector 20" of the projector, the icon 704 and the name "Speaker 30" of the speaker, and the icon 705 and the name "Mobile Phone 40" of the mobile phone 40. It can be understood that the embodiment of the present application does not limit the shape of the icon of the tablet 50 and the name of the tablet 50, as well as the shape of the icons of the above-mentioned candidate devices and the names of the above-mentioned candidate devices.

[0326] Alternatively, as Figure 7 As shown, the user interface 700 may further include a control 707 for closing the user interface 700 .

[0327] For example, the icon and name of the tablet 50 may be located in the preset area 1 ( Figure 7 The icons of the candidate devices may be located in a preset area 2 surrounding the icons of the tablet 50 (eg, Figure 7 The embodiment of the present application does not limit the shapes and positions of the above-mentioned preset areas 1 and 2.

[0328] like Figure 7 As shown, the user can slide the icon 705 of the mobile phone 40 into the preset area 1, or slide it close to the icon 701 of the tablet 50. In response to the above user operation, the tablet 50 can display the user interface 800.

[0329] Figure 8 The user interface 800 of the tablet 50 is shown as an example. Figure 8 As shown, user interface 800 shows that icon 705 of mobile phone 40 has been attached to icon 701 of tablet 50. User interface 800 may include prompt information 801 and control 802. Prompt information 801 may be used to inform the user that tablet 50 and mobile phone 40 have been coordinated. The user may click control 802, and in response to the user's operation, tablet 50 may display user interface 900.

[0330] Figure 9 The user interface 900 of the tablet 50 is shown as an example. Figure 9As shown, user interface 900 may include an option box 901, which may display an option bar 902 and an option bar 903. Option bar 902 may be used to select whether tablet 50 and mobile phone 40 perform multi-screen collaboration. Option bar 903 may be used to select whether tablet 50 uses the mobile communication capabilities of mobile phone 40. Option bar 903 may display a control 904 and a mobile communication sharing icon 905. The user may use control 904 to select whether tablet 50 uses the mobile communication capabilities of mobile phone 40.

[0331] In a feasible example, after the user clicks the control 904 , if the tablet 50 successfully shares the mobile communication capability of the mobile phone 40 , the tablet 50 may display the user interface 1000 .

[0332] Figure 10 The user interface 1000 of the tablet 50 is shown as an example. Figure 10 As shown, the user interface 1000 may include an icon 1001, a prompt message 1002, and a status bar 1003. The shape of the icon 1001 is the same as the mobile communication sharing icon 905 in the user interface 900, and is used to indicate that the mobile phone 40 is sharing mobile communication capabilities with the tablet 50. The prompt message 1002 can be used to prompt the user that the tablet 50 is sharing or using the mobile communication capabilities of the mobile phone 40. The status bar 1003 may include a signal strength indicator 1004 of the mobile communication signal (also known as a cellular signal or cellular network signal) or the operator name "China Mobile" 1005, and the network standard (e.g., 5G).

[0333] Optionally, the user interface 1000 may further include an icon for indicating that mobile communication capability sharing is in progress. For example, the icon may be Figure 27 The same as the icon 2702 shown in FIG. Figure 27 The description in , will not be repeated here.

[0334] Optionally, in another feasible example, after the user clicks the control 904 , if the tablet 50 fails to share the mobile communication capability of the mobile phone 40 , the tablet 50 may display the user interface 1100 .

[0335] Figure 11 The user interface 1100 of the tablet 50 is shown as an example. Figure 11As shown, the user interface 1100 may include an option box 901, and the option box 901 may display a prompt message 1101. The prompt message 1101 may be used to prompt the user that the tablet 50 has failed to successfully share the mobile communication capability of the mobile phone 40. For example, the content of the prompt message 1101 may specifically be "Connection failed". It is understood that the embodiment of the present application does not limit the content of the prompt message 1101. For a detailed description of the option box 901, please refer to the above description of Figure 9 The description is not repeated here.

[0336] Method 2: Figure 12-15 The user uses the setting interface in the tablet 50 to enable the tablet 50 to obtain the communication capability of the SIM card shared by the mobile phone 40.

[0337] Figure 12 The user interface 500 of the tablet 50 is shown as an example. The user interface 500 may be specifically referred to as Figure 5 The description in , will not be repeated here. Figure 12 As shown, the user can click on the icon of the setting application in the user interface 500. In response to the user operation, the tablet 50 can display the user interface 1300.

[0338] Figure 13 The user interface 1300 of the tablet 50 is shown as an example. The user interface 1300 may be a settings interface of the tablet 50. The user interface 1300 may include a settings bar for setting up WLAN, Bluetooth, mobile network, HyperTerminal, etc. The user may click on the settings bar 1301 for HyperTerminal settings. In response to the user operation, the tablet 50 may display the user interface 1400.

[0339] It is understandable that the user can not only click on the icon of the settings application to enter the settings interface of the tablet 50. The user can also click on other controls or icons in the tablet 50 for entering the settings interface, and the tablet 50 can display the settings interface in response to the user operation, such as Figure 13 User interface 1300 is shown.

[0340] Figure 14 The user interface 1400 of the tablet 50 is shown as an example. Figure 14As shown, the user interface 1400 may include a control 1401, and multiple setting items, such as setting item 1402, setting item 1403, setting item 1404, setting item 1405, and setting item 1406. Control 1401 can be used to return to the previous page. Setting item 1402 can be used to display relevant information of the local device, that is, the tablet 50. Setting item 1403 is used to display relevant information of devices near the tablet 50 that can establish a collaborative connection, such as a mobile phone 40. Setting item 1404 can be used to turn on or off the multi-device gallery browsing function. Setting item 1405 can be used to set up mobile communication sharing between multiple devices. Setting item 1406 can be used to turn on or off the service flow recommendation function. The user can click on the setting item 1405, and in response to the user operation, the tablet 50 can display the user interface 1500.

[0341] It is understandable that when the setting item 1403 displays relevant information of multiple devices that can establish a collaborative connection with the tablet 50, the user can select one device from the multiple devices that can establish a collaborative connection with the tablet 50 to establish a collaborative connection with the tablet 50.

[0342] In some feasible examples, if the mobile phone 40 has previously established a collaborative connection with the tablet 50, the tablet 50 may default to establishing a collaborative connection with the mobile phone 40 this time. Optionally, the user may also change the device for establishing a collaborative connection with the tablet 50 in the setting item 1403.

[0343] Figure 15 The user interface 1500 of the tablet 50 is shown as an example. Figure 15 As shown, user interface 1500 may include control 1501, icon 1502, icon 1503, icon 1504, icon 1505, prompt information 1506, option bar 1507, and option box 1509. Icon 1502 may be used to indicate that mobile phone 40 and tablet 50 are sharing mobile communications. Icon 1503 may be used to indicate that mobile phone 40 and tablet 50 can share SMS communication capabilities. Icon 1504 may be used to indicate that mobile phone 40 and tablet 50 can share phone communication capabilities. Icon 1505 may be used to indicate that mobile phone 40 and tablet 50 can share cellular network communication capabilities. Prompt information 1506 may be used to inform the user of the function of the multi-device mobile communication sharing function and how to operate to implement the mobile communication sharing function, etc. The present embodiment of the application does not limit the specific prompt content contained in prompt information 1506.

[0344] like Figure 15As shown, a control 1508 may be displayed in option bar 1507. This control 1508 can be used to select whether to automatically connect to the mobile communication network of nearby devices or not. When automatic connection is selected, tablet 50 can connect to nearby devices with the same account as tablet 50 and use the mobile communication network of this device to browse the Internet, make calls, send and receive text messages, etc.

[0345] like Figure 15 As shown, option box 1509 may include controls 1510, 1511, and 1512. Control 1510 may be used to select whether to use the collaborative device, namely, the cellular network of mobile phone 40. Control 1511 may be used to select whether to use the collaborative device, namely, the phone communication capability of mobile phone 40. Control 1512 may be used to select whether to use the collaborative device, namely, the SMS communication capability of mobile phone 40. In other words, through controls 1510, 1511, and 1512, the user can select whether tablet 50 shares one or more of the cellular network communication capability, phone communication capability, and SMS communication capability of mobile phone 40.

[0346] Furthermore, in some feasible examples, when the tablet 50 successfully shares the mobile communication capabilities of the mobile phone 40, a card in the hyperterminal of the tablet 50 may indicate that the tablet 50 is sharing the mobile communication capabilities of the mobile phone 40, and a mobile communication signal strength indicator and the operator name may appear in the status bar. For details, see user interface 1600 of the tablet 50.

[0347] Figure 16 The user interface 1600 of the tablet 50 is shown as an example. Figure 16 As shown, user interface 1600 may include a status bar 1601 and a hyperterminal card 1604. Status bar 1601 may display a mobile communication signal strength indicator 1602, and / or the operator name "China Mobile" 1603 and the network standard. Hyperterminal card 1604 may display an icon 1605 and text message 1608. Icon 1605 may include an icon 1606 of mobile phone 40 and an icon 1607 indicating that mobile phone 40 is sharing mobile communication capabilities. Text message 1608 displays the name of mobile phone 40, "Mobile Phone 40."

[0348] After the tablet 50 successfully shares the mobile communication capabilities of the mobile phone 40, if the communication connection between the tablet 50 and the mobile phone 40 is disconnected (for example, the Bluetooth of the tablet 50 is turned off, resulting in the disconnection of the Bluetooth connection between the tablet 50 and the mobile phone 40), the mobile communication signal strength indicator and / or the operator name and network standard originally displayed in the status bar of the tablet 50 user interface will no longer be displayed. In addition, the icon in the hyperterminal card in the tablet 50 user interface that originally displayed that the mobile phone 40 was sharing its mobile communication capabilities with the tablet 50 will no longer be displayed. For details, please refer to the user interface 1700 of the tablet 50.

[0349] Figure 17 The user interface 1700 of the tablet 50 is shown as an example. Figure 17 As shown, the user interface 1700 may include a status bar 1701, a Bluetooth icon 1702, and a hyperterminal card 604. The status bar 1701 does not display a Bluetooth indicator, indicating that the tablet 50 has disconnected the Bluetooth connection. The Bluetooth icon 1702 is used to indicate that the tablet 50 has not turned on Bluetooth. The hyperterminal card 604 no longer displays the icon that the mobile phone 40 is sharing mobile communication capabilities with the tablet 50. The hyperterminal card 604 can be specifically referred to above. Figure 6 The description is not repeated here.

[0350] Optionally, in some feasible examples, the user may also choose not to automatically connect in the user interface 1500 of the tablet 50, that is, the tablet 50 no longer automatically connects to nearby compatible devices and shares the mobile communication capabilities of the devices. Figure 18 As shown, the user may click on control 1508 in user interface 1500 , and in response to the user operation, tablet 50 may display user interface 1900 .

[0351] Figure 19 The user interface 1900 of the tablet 50 is shown as an example. Figure 19 As shown, user interface 1900 may include an option box 1901, which may display controls 1902, 1903, and 1904. Control 1902 may be used to select whether tablet 50 automatically connects to nearby compatible devices and automatically shares the mobile communication capabilities of the devices. Control 1903 may be used to select whether tablet 50 automatically connects to nearby compatible devices and automatically shares the mobile communication capabilities of the devices. Control 1904 is used to cancel the user's selection of automatic connection or non-automatic connection.

[0352] After the user clicks control 1903 to select "not automatically connect," if tablet 50 is not connected to WLAN, tablet 50 may pop up a prompt when the user opens an application that requires network access, prompting the user whether to connect to the mobile communication network of mobile phone 40 to surf the Internet, make calls, or send and receive messages. For details, see user interface 2000 of tablet 50.

[0353] Figure 20 The user interface 2000 of the tablet 50 is shown as an example. Figure 20 As shown, user interface 2000 may include prompt box 2001. Prompt box 2001 may display prompt information 2002, prompt information 2003, control 2004, control 2005, and control 2006. Prompt information 2002 may prompt the user whether to connect to the mobile communication network of mobile phone 40 for Internet access, making and receiving calls, and sending and receiving messages. Prompt information 2003 may be used to instruct the user on how to access the HyperTerminal interface and select to share the mobile communication capabilities of mobile phone 40. Control 2004 may be used to select automatic connection next time. Control 2005 may be used to cancel the display of prompt box 2001. Control 2006 may be used to select to connect to the mobile communication network of mobile phone 40 for Internet access, making and receiving calls, and sending and receiving messages.

[0354] In some feasible examples, when the user clicks control 2005 to cancel, the tablet 50 no longer displays the prompt box 2001 within the preset time length T1. For example, the preset time length T1 can be 24 hours or 12 hours. The embodiment of the present application does not limit the value of the preset time length T1.

[0355] Furthermore, in some feasible examples, when the tablet 50 detects that the user has clicked the control 2005 a cumulative number of times reaching a preset number, the tablet 50 no longer displays the prompt box 2001 during the entire life cycle. For example, the preset number of times can be 3 or 5. The embodiment of the present application does not limit the value of the preset number of times.

[0356] Optionally, in some feasible examples, after the user clicks control 2006 to connect this time, or changes the setting to "automatically connect" (for example, in the above user interface 1900, click control 1902 to select automatic connection to collaborative devices near the tablet 50 and automatically share the mobile communication capabilities of the device), the setting is changed to "Do not automatically connect" next time, then the tablet 50 can display the prompt box 2001 when there is no network.

[0357] Optionally, in some feasible examples, after resetting the tablet 50 (for example, restoring the tablet 50 to factory settings) or clearing relevant setting data in the tablet 50, the prompt box 2001 may pop up when the tablet 50 is not connected to the network.

[0358] Optionally, in some feasible examples, if the user does not click any control in prompt box 2001 within the timeout period, prompt box 2001 in tablet 50 disappears. After a preset time period T2, tablet 50 re-displays prompt box 2001. The preset time period T2 can be 5 minutes, 1 hour, 2 hours, etc., and the specific value of the preset time period T2 is not limited in this embodiment of the application.

[0359] Optionally, in a feasible example, the tablet 50 may display the prompt box 2001 only once during a preset time period T3. The preset time period T3 may be 12 hours, 24 hours, etc., and the specific value of the preset time period T3 is not limited in this embodiment of the application.

[0360] Optionally, in a feasible example, the tablet 50 can switch between dark and light modes while displaying the prompt box 2001. After the switch, the prompt box 2001 restarts the countdown from a preset time. The preset countdown time can be 60 seconds, 90 seconds, etc., and the specific value of the preset countdown time is not limited in the embodiment of the present application.

[0361] In some scenarios, tablet 50 has successfully shared the mobile communication capabilities of phone 40. When tablet 50 uses the cellular network shared by phone 40, tablet 50 may display a notification box that prompts the user that tablet 50 is consuming the mobile data of the shared cellular network data of phone 40. For more details, see user interface 2100 of tablet 50.

[0362] Figure 21 The user interface 2100 of the tablet 50 is shown as an example. Figure 21 As shown, user interface 2100 displays a currently playing video and a notification box 2101. Notification box 2101 may display prompts 2102, 2103, 2104, and a control 2105. Prompt 2102 may inform the user that tablet 50 is using mobile communication sharing. Prompt 2103 may inform the user that tablet 50 is using the network of mobile phone 40. Prompt 2104 may inform the user that tablet 50 has consumed mobile data shared with mobile phone 40, such as "100MB of mobile data from mobile phone 40 has been consumed." Control 2105 may be used to stop tablet 50 from sharing the cellular network provided by mobile phone 40.

[0363] In the embodiment of the present application, the user can not only set up the tablet 50 so that the tablet 50 obtains the mobile communication capabilities provided by the mobile phone 40, but also set up the mobile phone 40 so that the mobile phone 40 shares the mobile communication capabilities of the mobile phone 40 with the tablet 50.

[0364] The following will describe in detail how the mobile phone 40 shares the communication capability of the SIM card in the mobile phone 40 with the tablet 50 based on the received user operation.

[0365] Figures 22-37 The diagram exemplarily shows a schematic diagram of a related user interface in the mobile phone 40 when the mobile phone 40 is sharing the communication capability of the SIM card with the tablet 50 .

[0366] In the embodiment of the present application, the user can not only configure the super terminal card in the mobile phone 40 to enable the mobile phone 40 to share the mobile communication capability with the tablet 50, but also configure the setting interface in the mobile phone 40 to enable the mobile phone 40 to share the mobile communication capability with the tablet 50.

[0367] Method 1: Figures 22-28 The user uses the super terminal card in the mobile phone 40 to make the mobile phone 400 share the mobile communication capability with the agent 50.

[0368] Figure 22 The user interface 2200 of the mobile phone 40 is shown as an example. Figure 22 As shown, the user interface 2200 is the main interface of the mobile phone 40 for displaying installed applications. The user interface 2200 may include: a status bar 2201, a calendar indicator 2202, a weather indicator 2203, a tray 2204 with common application icons, and other application icons 2205.

[0369] The status bar 2201 may include: one or more signal strength indicators of mobile communication signals, an operator name (eg, "China Mobile"), one or more signal strength indicators of Wi-Fi signals, a battery status indicator, and a time indicator.

[0370] User interface 2200 may also include a page indicator 2206. Other application icons may be distributed across multiple pages, and page indicator 2206 may be used to indicate which page of applications the user is currently viewing. The user may swipe left or right on the area containing other application icons to view application icons on other pages.

[0371] like Figure 22 As shown, the mobile phone 40 may receive a sliding operation performed by the user on the status bar 2201 , and in response to the sliding operation, the mobile phone 40 may display the user interface 2300 .

[0372] Figure 23 The user interface 2300 of the mobile phone 40 is shown as an example. Figure 23As shown, the user interface 2300 may include shortcut icons 2301 for multiple commonly used functions (eg, a WLAN icon, a Bluetooth icon, a flashlight icon, an NFC icon, a brightness adjustment bar, etc.).

[0373] like Figure 23 As shown, user interface 2300 may include a hyperterminal card 2302 and a control 2305. Control 2305 may be used to access the settings interface of mobile phone 40. Hyperterminal card 2302 may display prompt information 2304 and a control 2303. Prompt information 2304 may be used to indicate that the user can click control 2303 to search for nearby devices with which a collaborative connection can be established. The user can click control 2303, and in response to the user's operation, mobile phone 40 may display user interface 2400.

[0374] Figure 24 The user interface 2400 of the mobile phone 40 is shown as an example. Figure 24 As shown, the user interface 2400 may include an icon 2401 of the mobile phone 40 and the name "mobile phone 40". The user interface 2400 may also include icons of candidate devices that can be detected by the mobile phone 40 and can establish a collaborative connection with the mobile phone 40, as well as the names and / or models of the above-mentioned candidate devices. For example, the icon 2402 and the name "tablet 50" of the tablet 50, the icon 2403 and the name "computer 10" of the computer 10, the icon 2404 and the name "speaker 30" of the speaker, and the icon 2405 and the name "projector 20" of the projector. It will be understood that the embodiment of the present application does not limit the shape of the icon of the mobile phone 40 and the name of the mobile phone 40, as well as the shape of the icons of the above-mentioned candidate devices and the names of the above-mentioned candidate devices.

[0375] It is understandable that the user interface 2400 can refer to the above description of the user interface 700 and will not be repeated here.

[0376] like Figure 24 As shown, the user can slide the icon of the tablet 50 into the circular area where the icon of the mobile phone 40 is located, or slide it to an icon close to the mobile phone 40. In response to the user operation, the mobile phone 40 can display the user interface 2500.

[0377] Figure 25 The user interface 2500 of the mobile phone 40 is shown as an example. Figure 25 As shown, user interface 2500 shows that icon 2402 of tablet 50 has been attached to icon 2401 of mobile phone 40. User interface 2500 may include prompt information 2501 and control 2502. Prompt information 2501 may be used to indicate that mobile phone 40 and tablet 50 have been coordinated. The user may click control 2502, and in response to the user operation, mobile phone 40 may display user interface 2600A.

[0378] Figure 26A The user interface 2600A of the mobile phone 40 is shown as an example. Figure 26A As shown, user interface 2600A may include an option box 2601, which may display an option bar 2602 and an option bar 2603. Option bar 2602 may be used to select whether mobile phone 40 and tablet 50 perform multi-screen collaboration. Option bar 2603 may be used to select whether mobile phone 40 shares mobile communication capabilities with tablet 50. Option bar 2603 may display a control 2604 and a mobile communication sharing icon 2605. The user may use control 2604 to select whether mobile phone 40 shares mobile communication capabilities with tablet 50. The user may click control 2604, and in response to this user operation, mobile phone 40 may display user interface 2600B.

[0379] Figure 26B The user interface 2600B of the mobile phone 40 is shown as an example. Figure 26B As shown, the user interface 2600B may include prompt information 2606. The prompt information 2606 may be used to prompt the user that the mobile phone 40 is establishing a connection with the tablet 50.

[0380] In a feasible example, when the mobile phone 40 successfully establishes a connection with the tablet 50 , the mobile phone 40 may display the user interface 2700 .

[0381] Figure 27 The user interface 2700 of the mobile phone 40 is shown as an example. Figure 27 As shown, user interface 2700 may include icons 2701 and 2702, as well as prompt information 2703. Icon 2701 may be located within icon 2402 and may indicate that mobile phone 40 is sharing mobile communication capabilities with tablet 50. Icon 2702 may be located in the status bar and may be used to indicate that mobile phone 40 is sharing mobile communication capabilities. Prompt information 2703 may be used to prompt the user that mobile phone 40 is sharing mobile communication capabilities with tablet 50.

[0382] Optionally, the shape of icon 2701 may be the same as that of icon 2702 , and the size of icon 2701 may be different from or the same as that of icon 2702 , which is not limited in this embodiment of the present application.

[0383] Furthermore, in some feasible examples, the shape of the icon 2701 and the shape of the icon 2702 may be the same as the shape of the mobile communication sharing icon 905 and the shape of the mobile communication sharing icon 2605 .

[0384] Optionally, in another feasible example, when the user clicks the control 2604 and the mobile phone 40 fails to establish a connection with the tablet 50 , that is, the mobile phone 40 fails to share the communication capability with the tablet 50 , the mobile phone 40 may display the user interface 2800 .

[0385] Figure 28 The user interface 2800 of the mobile phone 40 is shown as an example. Figure 28 As shown, the user interface 2800 may include an option box 2601, and a prompt message 2801 may be displayed in the option box 2601. The prompt message 2801 may be used to prompt the user that the mobile phone 40 has failed to successfully share the mobile communication capability with the tablet 50. For example, the content of the prompt message 2801 may specifically be "Connection Failed". It is understood that the embodiment of the present application does not limit the content of the prompt message 2801. For a detailed description of the option box 2801, please refer to the above description of the Figure 26A The description is not repeated here.

[0386] Method 2: Figures 29-34 The user uses the setting interface of the mobile phone 40 to enable the mobile phone 40 to share the mobile communication capability with the tablet 50.

[0387] Figure 29 The user interface 2200 of the mobile phone 40 is shown as an example. The user interface 2200 can refer to Figure 22 The description in , will not be repeated here. Figure 29 As shown, the user may click on the icon for setting the application in the user interface 2200 , and in response to the user operation, the mobile phone 40 may display the user interface 3000 .

[0388] Figure 30 The user interface 3000 of the mobile phone 40 is shown as an example. The user interface 3000 may be a settings interface of the mobile phone 40. The user interface 3000 may include a settings bar for setting up WLAN, Bluetooth, mobile network, HyperTerminal, etc. The user may click on the settings bar 3001 for setting up the HyperTerminal. In response to the user operation, the mobile phone 40 may display the user interface 3100.

[0389] It is understandable that the user can not only click on the icon of the setting application to make the mobile phone 40 enter the setting interface. The user can also click on other controls in the mobile phone 40 for entering the setting interface (for example, Figure 23 The mobile phone 40 may display a setting interface in response to a user operation, such as the control 2305 shown in FIG. Figure 30 User interface 3000 is shown.

[0390] Figure 31 The user interface 3100 of the mobile phone 40 is shown as an example. Figure 31As shown, the user interface 3100 may include a control 3101, and multiple setting items, such as setting item 3103, setting item 3104, setting item 3105, setting item 3106, and setting item 3107. Control 3101 can be used to return to the previous page. Setting item 3103 can be used to display relevant information of the local device, that is, mobile phone 40. Setting item 3104 is used to display relevant information of devices near mobile phone 40 that can establish collaborative connections, such as tablet 50. Setting item 3105 can be used to turn on or off the multi-device gallery browsing function. Setting item 3106 can be used to set mobile communication sharing between multiple devices. Setting item 3107 can be used to turn on or off the service flow recommendation function.

[0391] Optionally, the user interface 3100 may further include prompt information 3102. The prompt information 3102 may be used to prompt the user that the mobile phone 40 can form a hyper terminal with nearby devices.

[0392] Specifically, the user interface 3100 can refer to the above description of the user interface 1400, which will not be repeated here.

[0393] like Figure 31 As shown, the user can click on the setting item 3106 , and in response to the user operation, the mobile phone 40 can display the user interface 3200 .

[0394] Figure 32 The user interface 3200 of the mobile phone 40 is shown as an example. Figure 32 As shown, user interface 3200 may include controls 3201, icons 3202, 3203, 3204, 3205, prompt information 3206, option bar 3207, option bar 3208, option bar 3209, option bar 3210, and option bar 3211. Icon 3202 may be used to indicate that mobile phone 40 and tablet 50 are sharing mobile communication capabilities. Icon 3203 may be used to indicate that mobile phone 40 and tablet 50 can share SMS communication capabilities. Icon 3204 may be used to indicate that mobile phone 40 and tablet 50 can share phone communication capabilities. Icon 3205 may be used to indicate that mobile phone 40 and tablet 50 can share cellular network communication capabilities. Prompt information 3206 may be used to prompt the user that other devices logged into the same account as mobile phone 40 can share mobile phone 40's mobile communication network for surfing the Internet, making and receiving calls, sending and receiving text messages, and so on. The present embodiment does not limit the specific content of prompt information 3206.

[0395] like Figure 32As shown, option bar 3207 is used to select mobile phone 40 to share network data with nearby devices that have established a collaborative connection, such as tablet 50. Option bar 3207 can also display the mobile data usage of mobile phone 40 by nearby devices this month, such as 100MB. Option bar 3208 can be used to select mobile phone 40 to share phone communication capabilities with nearby devices that have established a collaborative connection, such as tablet 50. Option bar 3209 can be used to select mobile phone 40 to share SMS communication capabilities with nearby devices that have established a collaborative connection, such as tablet 50.

[0396] Optionally, the user can also set the mobile traffic that the mobile phone 40 can share every month in the mobile phone 40. Figure 32 As shown, option bar 3210 is used to set unlimited mobile traffic that can be shared by mobile phone 40 each month. Option bar 3211 can be used to customize the mobile traffic that can be shared by mobile phone 40 each month.

[0397] When the user completes the settings in the user interface 3200, the mobile phone 40 may display a notification box, which may be used to prompt the mobile phone 40 that the mobile communication capability sharing is in progress. Figure 33 User interface 3300 is shown.

[0398] Figure 33 The user interface 3300 of the mobile phone 40 is shown as an example. Figure 33 As shown, the user interface 3300 may include an icon 3301 and a notification box 3302. The icon 3301 may be located in the status bar of the mobile phone 40, and the icon 3301 may be used to indicate that the mobile phone 40 is performing mobile communication capability sharing.

[0399] like Figure 33 As shown, the notification box 3302 may include a notification bar 3303 and a notification bar 3306. The notification bar 3303 may include a prompt message 3304 and a control 3305. The prompt message 3304 may be used to prompt the user that the mobile phone 40 is sharing the network with the tablet 50. Optionally, the prompt message 3304 may also be used to prompt the tablet 50 that the 100MB of mobile traffic shared by the mobile phone 40 has been consumed this month. The user can click the control 3305 to set the mobile traffic that the mobile phone 40 can share with the tablet 50. The notification bar 3306 may be used to prompt the user that the mobile phone 40 is at time T0 (for example, Figure 33 The mobile communication capability is shared with the tablet 50 , and the tablet 50 can use the mobile communication network of the mobile phone 40 to surf the Internet, make calls, and send and receive text messages.

[0400] In one possible example, the user can Figure 32In the user interface 3200 shown in FIG, the user can customize the mobile data flow that the mobile phone 40 can share with the tablet 50 every month. After the user sets it, the mobile phone 40 can display the mobile data flow set by the user. Specifically, please refer to the user interface 3400 of the mobile phone 40.

[0401] Figure 34 The user interface 3400 of the mobile phone 40 is shown as an example. Figure 34 As shown, the user interface 3400 may display prompt information 3401 , which is used to display the mobile traffic that the mobile phone 40 can share with the tablet 50 each month, for example, 500 MB, which is customized by the user.

[0402] Furthermore, when the mobile data shared by the mobile phone 40 with the tablet 50 reaches the user-defined monthly mobile data that the mobile phone 40 can share with the tablet 50, the mobile phone 40 can stop sharing the cellular network with the tablet 50. For details, please refer to the user interface 3500 of the mobile phone 40.

[0403] Figure 35 The user interface 3500 of the mobile phone 40 is shown as an example. Figure 35 As shown, user interface 3500 may include a control 3501 and a notification box 3502. Control 3501 may be used to indicate that mobile phone 40 is currently sharing mobile communication capabilities. Notification box 3502 may include prompts 3503 and 3504. Prompt 3503 may be used to inform the user that mobile phone 40 has stopped sharing the cellular network with tablet 50. Prompt 3504 may be used to inform the user that tablet 50 has reached the upper limit of 500MB of mobile data shared with mobile phone 40 this month.

[0404] It is understood that when the mobile phone 40 stops sharing the cellular network with the tablet 50, the mobile phone 40 can still continue to share other mobile communication capabilities, such as phone communication capabilities and text message communication capabilities, with the tablet 50. In other words, the tablet 50 can still make and receive calls and send and receive text messages via the mobile phone 40's mobile communication network.

[0405] Optionally, in some feasible examples, after the user completes the settings in the user interface 3200, the mobile phone 40 can display in the hyperterminal card of the mobile phone 40 that the mobile phone 40 is sharing the mobile communication capability with the tablet 50. For details, please refer to the user interface 3600 of the mobile phone 40.

[0406] Figure 36 The user interface 3600 of the mobile phone 40 is shown as an example. Figure 36As shown, user interface 3600 may include a hyperterminal card 3601 and controls 3603. Hyperterminal card 3601 may include an icon 3602, which may include an icon of tablet 50 and an icon indicating that mobile communication capability sharing is in progress. Icon 3602 may be used to prompt the user that mobile phone 40 is sharing mobile communication capabilities with tablet 50. Icon 3602 may be located in the status bar and may be used to indicate that mobile phone 40 is sharing mobile communication capabilities.

[0407] It is understandable that when the user sets up the mobile phone 40 or tablet 50 so that the mobile phone 40 shares the mobile communication capability with the tablet 50, the user interface of the mobile phone 40 and the tablet 50 will display the relevant icon or relevant prompt information of the mobile phone 40 sharing the mobile communication capability with the tablet 50. Figure 10 The user interface 1000 of the tablet 50 is shown. Figure 16 The user interface 1600 of the tablet 50 is shown. Figure 27 The user interface 2700 of the mobile phone 40 is shown and Figure 36 The user interface 3600 of the mobile phone 40 is shown and will not be described in detail here.

[0408] Similarly, when the mobile phone 40 and the tablet 50 change from the state of sharing mobile communication capabilities to stopping or disconnecting the mobile communication capabilities sharing, the icons previously displayed in the mobile phone 40 and the tablet 50 to indicate that the mobile phone 40 and the tablet 50 are sharing mobile communication capabilities will no longer be displayed.

[0409] Optionally, in some feasible examples, when the mobile phone 40 switches from the cellular network to the Wi-Fi network, the cellular network shared by the mobile phone 40 with the tablet 50 is disconnected, that is, the mobile phone 40 can suspend sharing the cellular network with the tablet 50. The mobile phone 40 can display a prompt to prompt the user to suspend sharing the cellular network with the tablet 50. For details, see the user interface 3700 of the mobile phone 40.

[0410] Figure 37 The user interface 3700 of the mobile phone 40 is shown as an example. Figure 37 As shown, user interface 3700 may include a control 3701 and a notification box 3702. Control 3701 may be used to indicate that mobile phone 40 is currently sharing its mobile communication capabilities. Notification box 3702 may include prompts 3703 and 3704. Prompt 3703 may be used to inform the user that mobile phone 40 has suspended sharing of the cellular network with tablet 50. Prompt 3704 may be used to inform the user that mobile phone 40 is already connected to Wi-Fi. If the user wishes to continue sharing the cellular network with tablet 50, they may first disconnect the Wi-Fi connection to mobile phone 40.

[0411] Alternatively, in other examples, when the mobile phone 40 switches from the cellular network to the Wi-Fi network, the mobile phone 40 can continue to share the cellular network with the tablet 50 .

[0412] In some scenarios, when the car computer has no network, it can automatically connect to the device currently connected to the car computer via Bluetooth and obtain the mobile communication capabilities shared by the device.

[0413] Figures 38-43 The diagram shows an example of the interface for the vehicle computer to obtain the cellular network of the mobile phone.

[0414] Figure 38 The user interface 3800 of the vehicle computer 60 is shown as an example. Figure 38 As shown, user interface 3800 may include a status bar 3801, a calendar indicator 3802, multiple application icons 3803, and a main menu control 3804. Status bar 3801 may include a Bluetooth indicator, one or more signal strength indicators of Wi-Fi signals, a time indicator, and a logged-in account icon, etc. Multiple application icons 3803 may include icons for a navigation application, a phone application, a music application, a video application, etc. Main menu control 3804 is used to open the main menu.

[0415] like Figure 38 As shown, the user can click on the icon of the setting application, and in response to the user operation, the vehicle computer 60 can display the user interface 3900.

[0416] Figure 39 The user interface 3900 of the vehicle computer 60 is shown as an example. Figure 39 As shown, the user interface 3900 may include a settings menu bar 3901. When the user clicks on the settings item 3902 in the settings menu bar 3901, the user interface 3900 may display settings items 3903, 3904, 3905, 3906, 3907, and 3908. Settings item 3903 may be used to set the car machine 60 to connect to Bluetooth, such as Figure 39 As shown, the car computer 60 has currently established a Bluetooth connection with the mobile phone 40. Setting item 3904 can be used to set the car computer 60 to connect to WLAN, such as Figure 39 As shown, the WLAN function of the car machine 60 has been turned on, but the car machine 60 has not yet connected to the WLAN provided by other devices. Setting item 3905 can be used to set the hotspot of the car machine 60. Setting item 3906 can be used to set the car machine 60 for wireless charging. Setting item 3907 can be used to set the car machine 60 to connect to Hicar. Setting item 3908 can be used to set the network sharing function of the car machine 60, such as Figure 39As shown, the network sharing function of the vehicle computer 60 has been turned on, but the vehicle computer 60 has not yet shared the network with other devices.

[0417] When the vehicle computer 60 has no available network and network sharing is enabled, the vehicle computer 60 can automatically connect to the device with which it has established a Bluetooth connection and share the device's cellular network. Furthermore, the vehicle computer 60 can display a notification box indicating that the cellular network has been automatically connected and shared. For details, see the user interface 4000 of the vehicle computer 60.

[0418] Figure 40 The user interface 4000 of the vehicle computer 60 is shown as an example. Figure 40 As shown, the user interface may include a notification box 4001 and an icon 4002. The notification box 4001 may be used to prompt the user that when the vehicle computer has no network available, the vehicle computer 60 may automatically use the network of the mobile phone 40. The icon 4002 may be located in the status bar of the vehicle computer 60 to indicate that the vehicle computer is performing network sharing.

[0419] Optionally, in some feasible examples, the notification box 4001 may no longer be displayed after a certain period of time. When the vehicle computer no longer displays the notification box 4001, the vehicle computer 60 may display an icon indicating that the vehicle computer is currently sharing the network and other relevant prompt information. For details, please refer to the user interface 4100 of the vehicle computer 60.

[0420] Figure 41 The user interface 4100 of the vehicle computer 60 is shown as an example. Figure 41 As shown, the user interface 4100 may include an icon 4002 and a prompt message 4101. The icon 4002 may be used to indicate that the vehicle computer 60 is performing network sharing. The prompt message 4101 may be used to remind the user that the vehicle computer 60 is connected to the mobile phone 40 and is sharing the cellular network provided by the mobile phone 40.

[0421] When the car computer 60 is performing network sharing, the car computer 60 will display an icon in the status bar to indicate that the car computer 60 is performing network sharing. Figure 42 As shown, an icon 4202 is displayed in the status bar of the user interface 4200 shown by the vehicle computer 60. The icon 4202 can be used to indicate that the vehicle computer 60 is performing network sharing.

[0422] In some feasible examples, the user can click the icon 4202 to perform network sharing related settings. Figure 42 As shown, the user can click icon 4202, and in response to the user operation, the vehicle computer 60 can display the user interface 4300.

[0423] Figure 43 The user interface 4300 of the vehicle computer 60 is shown as an example. Figure 43 As shown, user interface 4300 may display a settings box 4301. Settings box 4301 may display prompt information 4302, prompt information 4303, controls 4304, and controls 4305. Prompt information 4302 may be used to inform the user that vehicle computer 60 is using the network of mobile phone 40. Prompt information 4303 may be used to inform the user that vehicle computer 60 has consumed the mobile data of mobile phone 40, for example, 100MB. The user can click control 4304 to stop sharing. The user can also click control 4305 to set up network sharing.

[0424] In some scenarios, when a physical SIM card already exists in device 1 and the SIM card information mapped by another device is obtained, a device with a physical SIM card and a virtual SIM card is formed. The user can select the default SIM card for making calls in device 1.

[0425] Taking mobile phone 40 as an example, mobile phone 40 contains a physical SIM card. Mobile phone 70 maps the SIM card information of the physical SIM card in mobile phone 70 to mobile phone 40. Based on the mapped SIM card information of the physical SIM card in mobile phone 70, mobile phone 40 creates a virtual SIM card. Ultimately, mobile phone 40 can become a dual-SIM device with one physical SIM card and one virtual SIM card. Mobile phone 40 can dynamically switch SIM cards based on network conditions.

[0426] Figure 44-45 It is exemplarily shown that the user sets the default dial card, the default SIM card displayed for outgoing calls, etc. in the mobile phone 40.

[0427] Figure 44 The user interface 4400 of the mobile phone 40 is shown as an example. Figure 44 As shown, the user interface 4400 may include a control 4401, a setting item 4402, a setting item 4404, a setting item 4406, a setting item 4409, a setting item 4412, and a setting item 4414. The control 4401 is used to return to the previous page.

[0428] like Figure 44 As shown, setting item 4402 can be used to set relevant information of SIM card 1, such as card name, card number, etc. Setting item 4402 can include prompt information 4403, which can be used to remind the user that the SIM card is the SIM card of mobile phone 40.

[0429] like Figure 44As shown, setting item 4404 can be used to set relevant information of SIM card 2. Setting item 4404 can include prompt information 4405, which can be used to remind the user that SIM card 2 is a distributed SIM card (also called a virtual SIM card in this embodiment of the application) from mobile phone 70.

[0430] like Figure 44 As shown, setting item 4406 can be used to set which SIM card provides mobile data by default. Setting item 4406 may include controls 4407 and 4408. The user can use control 4407 to set SIM card 1 as the default for providing mobile data. The user can use control 4408 to set SIM card 2 as the default for providing mobile data. Figure 44 The setting item 4406 is set to default SIM card 1 to provide mobile data.

[0431] like Figure 44 As shown, setting item 4409 can be used to set whether to enable the smart switching network card function of mobile phone 40. The setting item 4409 may include a control 4410 and a control 4411. The user can enable or disable the smart switching network card function through control 4410. Figure 44 The setting item 4409 shown in FIG has enabled the smart switching network card function. The user can set the package limit of card 2 through control 4411, such as the upper limit of available traffic.

[0432] like Figure 44 As shown, the setting item 4412 can be used to set the default dial card of the mobile phone 40. The setting item 4412 can include a control 4413, which can be used to set SIM card 1 or SIM card 2 as the default dial card of the mobile phone 40. Figure 44 As shown, SIM card 1 has been set as the default dial-up card of mobile phone 40.

[0433] like Figure 44 As shown, setting item 4414 can be used to set the default outgoing call display card of mobile phone 40. That is, when mobile phone 40 makes an outgoing call, the device receiving the call will display the number of the SIM card set as the default outgoing call display card in mobile phone 40. The setting item 4414 may include a control 4415, which can be used to set SIM card 1 or SIM card as the default outgoing call display card of mobile phone 40. Figure 44 As shown, SIM card 1 has been set as the default outgoing call display card for mobile phone 40. That is, no matter whether the user dials a call through SIM card 1 or SIM card 2, the caller ID displayed on the call recipient is the mobile phone number corresponding to SIM card 1 in mobile phone 40.

[0434] like Figure 44As shown, the user may click on control 4415 , and in response to the user operation, mobile phone 40 may display user interface 4500 .

[0435] Figure 45 The user interface 4500 of the mobile phone 40 is shown as an example. Figure 45 As shown, user interface 4500 may include a settings box 4501. Settings box 4501 may include controls 4502 and 4503. The user may click control 4502 to set SIM card 1 as the default card for outgoing calls displayed on mobile phone 40. The user may click control 4503 to set SIM card 2 as the default card for outgoing calls displayed on mobile phone 40.

[0436] It is understandable that the above Figure 5-Figure 45 The user interfaces 500 to 4500 shown are merely examples. The user interfaces 500 to 4500 mentioned above may include more or fewer interface elements, and the embodiments of the present application are not limited thereto.

[0437] Through the user interface described above, device 1 (e.g., tablet 50 or car computer 60) can access the mobile communication capabilities shared by device 2 (e.g., mobile phone 40). The following describes how device 1 uses the mobile communication capabilities shared by device 2 to access the internet, make calls, and send and receive text messages.

[0438] In the embodiment of the present application, device 1 establishes a communication connection with device 2, and device 2 can share the SIM card information of device 1. Device 2 can access the Internet, make calls, and send and receive text messages based on the SIM card information of device 1.

[0439] The following describes how device 2 specifically shares the SIM card information of device 1 with reference to the accompanying drawings.

[0440] Figure 46 The following is an example of a flow chart showing how device 2 shares the SIM card information of device 1. Figure 46 As shown, device 2 shares the SIM card information of device 1, which may specifically include the following steps:

[0441] S4601: The physical SIM in device 1 may register its SIM card information in the card account management.

[0442] When a physical SIM card 1 (also referred to as a physical SIM card 1 or simply SIM card 1) is inserted into a device 1, the device 1 can save the SIM card information of the SIM card 1 to the physical SIM. The physical SIM can register the SIM card information saved in the physical SIM in the card account management.

[0443] Step S4602-Step S4604: Device 1 establishes a communication connection with device 2

[0444] Device 1 can establish a communication connection with device 2, and the communication connection between device 1 and device 2 can be established by Wi-Fi, Bluetooth, distributed soft bus, etc. The embodiment of the present application does not limit the communication connection between device 1 and device 2.

[0445] In some feasible examples, the process of establishing a communication connection between device 1 and device 2 may include steps such as device discovery, security verification, and transmission establishment, etc. Specifically, steps S4602 to S4604 may be described below.

[0446] Device 1 may be the above Figure 1-Figure 4 The device 10A, device 20A, device 30A, or device 40A shown in FIG, device 2 may be the above Figure 1-Figure 4 Device 10B, device 20B, device 30B, or device 40B is shown in FIG. Device 1 may have one or two physical SIM cards inserted, or, as future protocols and devices evolve, multiple physical SIM cards may be inserted into device 1. Device 2 may have no SIM card inserted or one SIM card inserted.

[0447] S4602: The near-field secure transmission module in device 1 and the near-field secure transmission module in device 2 perform device discovery.

[0448] S4603: The near-field secure transmission module in device 1 and the near-field secure transmission module in device 2 perform security verification.

[0449] S4604: The near-field secure transmission module in device 1 establishes a transmission with the near-field secure transmission module in device 2.

[0450] The near-field secure transmission module in device 1 may be a module for near-field device communication, such as a Wi-Fi communication module or a Bluetooth communication module. Similarly, the near-field secure transmission module in device 2 may be a module for near-field device communication, such as a Wi-Fi communication module or a Bluetooth communication module.

[0451] Device 1 can discover nearby devices through the near-field secure transmission module, and device 2 can also discover nearby devices through the near-field secure transmission module. In this embodiment of the present application, device 1 and device 2 can discover each other through the near-field secure transmission module in their respective devices, that is, device 1 can discover device 2 through the near-field secure transmission module. Device 2 can also discover device 1 through the near-field secure transmission module.

[0452] When device 1 and device 2 establish a connection for the first time, the near-field security transmission module in device 1 and the near-field security transmission module in device 2 can be security-verified. When the security verification is successful, the near-field security transmission module in device 1 can establish a transmission channel with the near-field security transmission module in device 2. For example, the Bluetooth communication module can realize device discovery nearby (for example, within a range of 50 meters). In the Bluetooth communication protocol, the first pairing between devices requires user consent and authorization. After the user's first consent and authorization, the Bluetooth communication module automatically verifies the communicating parties and establishes a transmission channel. The embodiment of the present application does not limit the manner in which the near-field security transmission module in device 1 and the near-field security transmission module in device 2 perform security verification.

[0453] It is understood that after the transmission channel is established between device 1 and device 2, device 1 can send the device identification of device 1 (e.g., device ID of device 1, unique device identifier (UDID) of device 1, etc.) to device 2 through the near-field secure transmission module in device 1. Device 2 can also send the device identification of device 2 (e.g., device ID of device 2, UDID of device 2, etc.) to device 1 through the near-field secure transmission module in device 2.

[0454] S4605a: The near-field secure transmission module in device 2 notifies the card account management module in device 2 of the device discovery result.

[0455] The near-field secure transmission module in device 2 may notify the card account management module in device 2 of the device discovery result, and send the device identification of device 1 to the card account management module in device 2 .

[0456] S4605b: The near-field secure transmission module in device 1 notifies the card account management module in device 1 of the device discovery result.

[0457] The near-field secure transmission module in device 1 may notify the card account management module in device 1 of the device discovery result, and send the device identification of device 2 to the card account management module in device 1 .

[0458] S4606 : The card account management module in device 2 obtains SIM card information D1 of SIM card 1 in device 1 from the card account management module in device 1 .

[0459] The card account management module in device 2 obtains the SIM card information D1 of SIM card 1 in device 1 from the card account management module in device 1. Specifically, the card account management module in device 2 may send a request for obtaining SIM card information D1 to the card account management in device 1 through the near-field secure transmission module in device 2, and the request may carry the identification of device 2. Device 1 may receive the request for obtaining SIM card information D1 sent by device 2 through the near-field secure transmission module in device 1, and send the request to the card account management module in device 1. The card account management module in device 1 may receive the request for obtaining SIM card information D1 sent by device 2, and send the SIM card information D1 of SIM card 1 stored in the card account management module to the card account management module in device 2 through the near-field secure transmission module.

[0460] SIM card information D1 is the first part of the complete SIM card information of SIM card 1. SIM card information D1 includes SIM card 1's integrated circuit card identification code (ICCID), IMSI, and mobile subscriber number (MSISDN). SIM card information D1 does not include information such as the authentication key, operator root key, and authentication algorithm found in the SIM card information of SIM card 1. It is understood that information such as the authentication key, operator root key, and authentication algorithm found in the SIM card information of a physical SIM card is restricted access data and is generally not accessible to other devices.

[0461] In some examples, the SIM card information D1 may also be referred to as the first information in the SIM card information of SIM card 1 .

[0462] When only one physical SIM card is inserted into device 1, the SIM card is SIM card 1. When multiple SIM cards are inserted into device 1, SIM card 1 can be the primary card in device 1, or the default data flow card, default call outgoing card, etc. in device 1.

[0463] It is understandable that when the user selects to share the mobile communication capability of device 1 in device 2, the card account management module of device 2 obtains the SIM card information D1 of SIM card 1 in device 1 from the card account management module in device 1. For how the user selects to share the mobile communication capability of device 1 in device 2, please refer to the above Figure 5-Figure 21 The specific process of the tablet 50 sharing the mobile communication capability of the mobile phone 40 will not be described here in detail.

[0464] It is understandable that when the user chooses to share the mobile communication capability of device 1 with device 2 in device 1, the card account management module of device 2 can obtain the SIM card information D1 of SIM card 1 in device 1 provided by the card account management module in device 1. For how the user chooses to share the mobile communication capability of device 1 with device 2, please refer to the above Figures 22-37 The specific process of the mobile phone 40 sharing the mobile communication capability with the tablet 50 will not be described here.

[0465] S4607: The card account management module in device 2 creates a virtual SIM module.

[0466] S4608 : The virtual SIM module in device 2 caches the SIM card information of SIM card 1 .

[0467] Optionally, the card account management module in device 2 may create a virtual SIM module and cache the acquired SIM card information D1 of SIM card 1 in the virtual SIM module. The card account management module in device 2 may use the SIM card information D1 of SIM card 1 as the SIM card information of the virtual SIM card 1 of device 2.

[0468] Optionally, in some embodiments, in order to save memory of device 2 , the card account management of device 2 may not create a virtual SIM module, or may cache the acquired SIM card information D1 of SIM card 1 in the virtual SIM module.

[0469] In one possible implementation, after device 2 obtains the SIM card information D1 of SIM card 1 in device 1, device 2 can generate a virtual SIM card and display the virtual SIM card and related information of the virtual SIM card (e.g., mobile phone number, corresponding operator name, etc.). Figure 44 SIM card 2 is shown in the SIM card management interface.

[0470] S4609: Application A in device 2 calls the communication interface to query the SIM card information in the card account management module.

[0471] Application A in device 2 can call the communication interface in device 2 to query the SIM card information in the card account management module. Application A can be a phone app, a text messaging app, an instant messaging app, a video playback app, an audio playback app, or a browser app, etc. This embodiment of the application does not limit the type of application A or the specific application type of application A.

[0472] When the user opens application A or logs in on the login interface of application A, application A can call the communication interface in device 2 to query the SIM card information in the card account management module.

[0473] S4610: The card account management module in device 2 determines that device 2 uses the virtual SIM card in the virtual SIM module.

[0474] S4611: The card account management module in device 2 instructs the use of the virtual SIM card in the virtual SIM module.

[0475] In some feasible examples, when the card account management module in device 2 only stores the SIM card information D1 of SIM card 1 of device 1, the card account management module in device 2 determines the SIM card information of the virtual SIM card in the virtual SIM module used in device 2 (i.e., the SIM card information D1 of SIM card 1 of device 1).

[0476] Optionally, in some feasible examples, when the card account management module in device 2 stores both the SIM card information of the physical SIM card in device 2 and the SIM card information of the virtual SIM card (i.e., the SIM card information D1 of SIM card 1 in device 1), and the user sets the virtual SIM card as the default data flow card and the default outgoing call card, etc., the card account management module in device 2 determines to use the SIM card information of the virtual SIM card cached in the virtual SIM module.

[0477] Optionally, in some feasible examples, device 2 may preset some whitelist applications that can use the SIM card information of the virtual SIM card. If application A is a whitelist application, the card account management module in device 2 may indeed use the virtual SIM card.

[0478] Optionally, in some feasible examples, when device 2 determines that the current foreground interface of application A is at the login interface, the card account management module in device 2 may determine to use the SIM card information of the virtual SIM card in the virtual SIM module.

[0479] Optionally, in some feasible examples, when the SIM card information of the virtual SIM card is saved in the card account management module of device 2, no matter what kind of application A is, the card account management determines to use the SIM card information of the virtual SIM card in the virtual SIM module, and instructs the virtual SIM module to send the SIM card information of the virtual SIM card to the application, that is, the SIM card information D1 of SIM card 1 in device 1.

[0480] S4612 : The virtual SIM module in device 2 determines the SIM card information D1 of the existing SIM card 1 .

[0481] S4613 : The virtual SIM module in device 2 returns SIM card information D1 to application A in device 2 .

[0482] When the virtual SIM module in device 2 receives an instruction from the card account management module to return SIM card information to the application, the virtual SIM module may first determine whether SIM card information is stored. If SIM card information D1 is stored in the virtual SIM module, the virtual SIM module may send the stored SIM card information to application A via the communication interface. If SIM card information is not stored in the virtual SIM, the virtual SIM module may send a reply message to the card account management module, indicating that no SIM card information is stored in the virtual SIM. The card account management module in device 2 may then obtain SIM card information D1 of SIM card 1 in device 1 from device 1.

[0483] Alternatively, optionally, in some feasible examples, the card account management module in the device 2 may also send the SIM card information D1 of the SIM card 1 stored in the card account management module to the application A through the communication interface.

[0484] After Application A obtains SIM card information D1, if Application A is an application with a login interface, it can use the obtained SIM card information D1 to log in and verify. If Application A is an instant messaging, video playback, audio playback, or browser application, Application A can access the Internet and cellular data network based on the obtained SIM card information D1. If Application A is a phone app, Application A can use the obtained SIM card information D1 to make and receive calls. If Application A is an SMS app, Application A can use the obtained SIM card information D1 to send and receive text messages. That is, after step S4606, Device 2 can use the obtained SIM card information D1 of SIM card 1 in Device 1 to access the Internet, make and receive calls, and send and receive text messages.

[0485] The following takes application A as an application that requires a cellular mobile data network (for example, an instant messaging application, a video playback application, an audio playback application, etc.) as an example to specifically describe how application A in device 2 accesses the Internet and obtains a cellular mobile data network through the SIM card information D1 of SIM card 1 of device 1 obtained by device 2.

[0486] Figure 47 The following is an example of an interactive diagram showing an application A in device 2 accessing the Internet through the SIM card information D1 of the SIM card 1 of device 1 obtained by device 2. Figure 47 As shown, how application A in device 2 accesses the Internet through SIM card information D1 of SIM card 1 of device 1 obtained by device 2 may specifically include the following steps:

[0487] S4701a. Application A in device 2 sends a request to the communication interface in device 2 to establish a cellular mobile data network.

[0488] S4701b. The communication interface in device 2 sends a request to establish a cellular mobile data network to the cellular network service module in device 2.

[0489] When application A in device 2 receives an instant message from the user, or plays an online video or audio, application A in device 2 can send a request to establish a cellular mobile data network to the cellular network service module in device 2 through the communication interface in device 2.

[0490] S4702: The cellular network service module in device 2 determines to use the SIM card information of virtual SIM card 1 to establish a cellular mobile data network.

[0491] After the cellular network service module in device 2 receives the request to establish a cellular mobile data network from application A, it may query the card account management module in device 2 for SIM card information. If the card account management module only contains the SIM card information for virtual SIM card 1 (i.e., SIM card information D1 for SIM card 1 in device 1), the cellular network service module determines to use the SIM card information for virtual SIM card 1 to establish the cellular mobile data network. If the card account management module contains SIM card information for multiple SIM cards, but virtual SIM card 1 has been set as the default data traffic card by the user, the cellular network service module determines to use the SIM card information for virtual SIM card 1 to establish the cellular mobile data network.

[0492] When the cellular network service module in device 2 receives the request from application A to establish a cellular mobile data network, the cellular network service module needs to first confirm whether there is a SIM card in device 2. If there is a SIM card in device 2 and only virtual SIM card 1 exists, or if there is a virtual SIM card and the virtual SIM card is set as the default data traffic card, the cellular network service module in device 2 can determine to use the SIM card information of virtual SIM card 1 to establish a cellular mobile data network.

[0493] It is understood that the cellular network service module can only provide cellular network services to the device if the cellular network service module determines that the device has a SIM card (physical SIM card or virtual SIM card). If the cellular network service module determines that the device does not have a SIM card, the cellular network service module may not provide cellular network-related services to the application in the device, for example, establishing a cellular mobile data network for the application.

[0494] Because the virtual SIM card's SIM card information doesn't include relevant information such as the authentication key and operator root key, the cellular network service module in device 2 cannot directly use the virtual SIM card's SIM card information to authenticate with the operator's network equipment and establish a cellular mobile data network. The cellular network service module in device 2 must notify the cellular network service module in device 1, which provided the virtual SIM card's SIM card information, to establish a cellular mobile data network.

[0495] S4703a. The cellular network service module in device 2 notifies device 1 to establish a cellular mobile data network through the near-field secure transmission module in device 2.

[0496] S4703b: The near-field secure transmission module in device 2 notifies the near-field secure transmission module in device 1 of establishing a cellular mobile data network.

[0497] S4703c: The near-field secure transmission module in device 1 notifies the cellular network service module in device 1 of establishing a cellular mobile data network.

[0498] The cellular network service module in device 2 can notify the cellular network service module in device 1 to establish a cellular mobile data network using the SIM card information of SIM card 1 corresponding to the SIM card information of virtual SIM card 1. Specifically, the cellular network service module in device 2 notifies device 1, through the near-field secure transmission module in device 2, to establish a cellular mobile data network using SIM card 1. The near-field secure transmission module in device 2 then notifies the near-field secure transmission module in device 1 of the establishment of the cellular mobile data network. Subsequently, the near-field secure transmission module in device 1 notifies the cellular network service module in device 1 of the establishment of the cellular mobile data network.

[0499] S4704: The cellular network service module in device 1 sends SIM card information to the base station and requests to establish a cellular mobile data network.

[0500] The cellular network service module in device 1 sends the SIM card information of SIM card 1 to the base station and requests to establish a cellular mobile data network. How the base station establishes the cellular mobile data network using the SIM card information of SIM card 1 can be referred to the specific steps for establishing a cellular mobile data network (also referred to as a cellular network or mobile network) in existing communication protocols, and will not be repeated here.

[0501] The SIM card information of the SIM card 1 may include an integrated circuit card identification code ICCID, an IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, an authentication algorithm and other information.

[0502] S4705a: The base station notifies the cellular network service module in device 1 that the cellular mobile data network service has been established.

[0503] S4705b. The cellular network service module in device 1 notifies the near-field secure transmission module in device 1 that the cellular mobile data network service has been established.

[0504] S4705c: The near-field secure transmission module in device 1 notifies the near-field secure transmission module in device 2 that the cellular mobile data network service has been established.

[0505] S4705d: The near-field secure transmission module in device 2 notifies the cellular network service module in device 2 that the cellular mobile data network service has been established.

[0506] After the base station successfully establishes the cellular mobile data network service based on the SIM card information of SIM card 1, the base station can notify the cellular network service module in device 1. After receiving the notification sent by the base station, the cellular network service module in device 1 can notify the cellular network service module in device 2 that the cellular mobile data network service has been established. Specifically, the cellular network service module in device 1 notifies the near-field secure transmission module in device 1 that the cellular mobile data network service has been established. Then, the near-field secure transmission module in device 1 notifies the near-field secure transmission module in device 2 that the cellular mobile data network service has been established. Next, the near-field secure transmission module in device 2 notifies the cellular network service module in device 2 that the cellular mobile data network service has been established.

[0507] S4706a. The cellular network service module in device 2 sends an instruction for obtaining network data packet 1 of application A to the communication interface in device 2.

[0508] S4706b. The communication interface in device 2 sends an instruction for obtaining network data packet 1 of application A to the application in device 2.

[0509] The cellular network service module in device 2 can send an instruction to obtain network data packet 1 of application A to application A through the communication interface in device 2. Specifically, the cellular network service module in device 2 sends an instruction to obtain network data packet 1 of application A to the communication interface in device 2. Then, the communication interface in device 2 sends an instruction to obtain network data packet 1 of application A to the application in device 2.

[0510] S4707a. The application in device 2 sends network data packet 1 to the communication interface.

[0511] S4707b. The communication interface in device 2 sends network data packet 1 to the cellular network service module in device 2.

[0512] After application A in device 2 receives the instruction sent by the cellular network service module in device 2, application A in device 2 can send network data packet 1 through the communication interface. Specifically, the application in device 2 can send network data packet 1 to the communication interface. Then, the communication interface in device 2 can send network data packet 1 to the cellular network service module in device 2.

[0513] S4707c. The cellular network service module in device 2 sends network data packet 1 to the near-field secure transmission module in device 2.

[0514] S4707d. The near-field secure transmission module in device 2 sends network data packet 1 to the near-field secure transmission module in device 1.

[0515] S4707e. The near-field secure transmission module in device 1 sends network data packet 1 to the cellular network service module in device 1.

[0516] S4707f. The cellular network service module in device 1 sends network data packet 1 to the base station.

[0517] After receiving network data packet 1, the cellular network service module in device 2 can send network data packet 1 to the cellular network service module in device 1 via the near-field secure transmission module in device 2. Specifically, the cellular network service module in device 2 can send network data packet 1 to the near-field secure transmission module in device 2. Then, the near-field secure transmission module in device 2 can send network data packet 1 to the near-field secure transmission module in device 1. Next, the near-field secure transmission module in device 1 can send network data packet 1 to the cellular network service module in device 1.

[0518] Then, after the cellular network service module in the device 1 receives the network data packet 1 , the cellular network service module in the device 1 may send the network data packet 1 to the base station.

[0519] S4708a: The base station responds with a network data packet 2 to the cellular network service module in device 1.

[0520] The base station can parse network data packet 1, which can carry the identifier of the target device. The base station can obtain network data packet 2 from the target device. The target device can be the server corresponding to application A, or the target device can also be the receiving device of network data packet 1. For example, if application A is a video playback application, then network data packet 1 can be the video information that the user wants to play (for example, the name of the video, the number of episodes of the video, etc.), and network data packet 2 is the video stream corresponding to the video information replied by the server corresponding to application A. The server corresponding to application A is the target device. If application A is an instant messaging application, network data packet 1 is the instant messaging information of the user of device 3 sent by the user of device 1 through application A. Then network data packet 2 can be the instant messaging information replied by device 3 to device 1. Device 3 is the target device.

[0521] The base station may reply with a network data packet 2 to the cellular network service module in the device 1 .

[0522] S4708b. The cellular network service module in device 1 replies with network data packet 2 to the near-field secure transmission module in device 1.

[0523] S4708c. The near-field secure transmission module in device 1 replies with network data packet 2 to the near-field secure transmission module in device 2.

[0524] S4708d. The near-field secure transmission module in device 2 replies with network data packet 2 to the cellular network service module in device 2.

[0525] The cellular network service module in device 1 can send network data packet 2 to the cellular network service module in device 2 via the near-field secure transmission module in device 1. Specifically, the cellular network service module in device 1 can reply network data packet 2 to the near-field secure transmission module in device 1. Then, the near-field secure transmission module in device 1 replies network data packet 2 to the near-field secure transmission module in device 2. Next, the near-field secure transmission module in device 2 replies network data packet 2 to the cellular network service module in device 2.

[0526] S4708e. The cellular network service module in device 2 replies with network data packet 2 to the communication interface in device 2.

[0527] S4708f. The cellular network service module in device 2 replies with network data packet 2 to application A in device 2.

[0528] After receiving network data packet 2, the cellular network service module in device 2 may send network data packet 2 to application A through the communication interface in device 2. Specifically, the cellular network service module in device 2 responds with network data packet 2 to the communication interface in device 2. Then, the cellular network service module in device 2 responds with network data packet 2 to application A in device 2.

[0529] When application A needs to continuously obtain cellular network service data, it can again send a network data packet to the cellular network service module in device 2. The cellular network service module in device 2 then transmits the network data packet to the base station via the cellular network service module in device 1. The cellular network service module in device 1 then transmits the network data packet received in response from the base station to the cellular network service module in device 2. Finally, the cellular network service module in device 2 sends the network data packet to application A in device 2. In other words, steps S4707a through S4708f are repeatedly executed.

[0530] In this way, the application A in the device 2 can access the Internet and obtain cellular mobile data network services by means of the communication capability of the SIM card in the device 1.

[0531] Taking application A as a phone APP as an example, the following describes in detail how application A in device 2 makes a call using SIM card information D1 of SIM card 1 of device 1 obtained by device 2.

[0532] Figure 48A The following is an example of an interaction diagram showing how the phone APP in device 2 makes a call by acquiring the SIM card information D1 of the SIM card 1 of device 1. Figure 48A As shown, the phone APP in device 2 makes a call by obtaining the SIM card information D1 of SIM card 1 of device 1, which may specifically include the following steps:

[0533] S4801a. The phone APP in device 2 sends a call request to the communication interface in device 2.

[0534] S4801b. The communication interface in device 2 sends a call request to the telephone service module in device 2.

[0535] When a user makes a call through the phone APP in device 2, the phone APP in device 2 can send a call request to the phone service module in device 2 through the communication interface.

[0536] S4802: The telephone service module in device 2 determines to use the SIM card information of virtual SIM card 1 to make a call.

[0537] When the phone service module in device 2 receives a call request from the phone app in device 2, it queries the card account management in device 2. If the card account management in device 2 only contains the SIM card information of virtual SIM card 1 (i.e., SIM card information D1 of SIM card 1 in device 1), the phone service module in device 2 determines to use the SIM card information of virtual SIM card 1 to make the call. If the card account management in device 2 contains SIM card information of multiple SIM cards, but virtual SIM card 1 is set by the user as the default outgoing call card, the phone service in device 2 determines to use the SIM card information of virtual SIM card 1 to make the call.

[0538] When the phone service module in device 2 receives a call request from the phone APP, the phone service module needs to first confirm whether there is a SIM card in device 2. If there is a SIM card in device 2 and only virtual SIM card 1 exists, or if there is a virtual SIM card and the virtual SIM card is set as the default outgoing phone card, the phone service module in device 2 can determine to use the SIM card information of virtual SIM card 1 to make the call.

[0539] It is understood that the phone service module can only provide the device with call services if the phone service module determines that the device has a SIM card (physical SIM card or virtual SIM card). If the phone service module determines that the device does not have a SIM card, the phone service module may not provide the phone app in the device with call services.

[0540] Because the virtual SIM card's SIM card information doesn't include authentication keys, carrier root keys, and other related information, the phone service module in device 2 can't directly use the virtual SIM card's SIM card information to authenticate with the carrier's network equipment and make a call. The phone service module in device 2 needs to notify the phone service module in device 1, which provided the virtual SIM card's SIM card information, to make the call.

[0541] S4803a. The telephone service module in device 2 sends a notification message M1 to the near field secure transmission module in device 2. The notification message M1 is used to notify device 1 to make a call using the physical SIM card corresponding to the SIM card information of virtual SIM card 1.

[0542] S4803b: The near field secure transmission module in device 2 sends a notification message M1 to the near field secure transmission module in device 1. The notification message M1 is used to notify device 1 to make a call using the physical SIM card corresponding to the SIM card information of virtual SIM card 1.

[0543] S4803c. The near-field secure transmission module in device 1 sends a notification message M1 to the telephone service module in device 1. The notification message M1 is used to notify device 1 to make a call using the physical SIM card corresponding to the SIM card information of virtual SIM card 1.

[0544] The telephone service module in device 2 can send a notification message M1 to the telephone service module in device 1 via the near-field secure transmission module in device 2. This notification message M1 is used to notify device 1 to use the physical SIM card corresponding to the SIM card information of virtual SIM card 1 to make a call. Specifically, the telephone service module in device 2 sends a notification message M1 to the near-field secure transmission module in device 2. This notification message M1 is used to notify device 1 to use the physical SIM card corresponding to the SIM card information of virtual SIM card 1 to make a call. Then, the near-field secure transmission module in device 2 sends the notification message M1 to the near-field secure transmission module in device 1. Next, the near-field secure transmission module in device 1 sends the notification message M1 to the telephone service module in device 1.

[0545] S4804a. The telephone service module in device 1 notifies the near-field secure transmission module in device 1 of the dialing result.

[0546] S4804b. The near-field secure transmission module in device 1 notifies the near-field secure transmission module in device 2 of the dialing result.

[0547] S4804c. The near-field secure transmission module in device 2 notifies the telephone service module in device 2 of the dialing result.

[0548] S4804d. The telephone service module in device 2 notifies the communication interface in device 2 of the dialing result.

[0549] S4804e. The communication interface in device 2 notifies the phone APP in device 2 of the dialing result.

[0550] After receiving the notification message M1, the telephone service module in device 1 can make a call through SIM card 1. Here, how device 1 makes a call through SIM card 1 can refer to the description in the prior art and will not be repeated here. Then, the telephone service in device 1 can notify the telephone service module in device 2 of the dialing result through the near-field secure transmission module in device 1. Specifically, the telephone service module in device 1 can notify the near-field secure transmission module in device 1 of the dialing result. Then, the near-field secure transmission module in device 1 can notify the near-field secure transmission module in device 2 of the dialing result. Then, the near-field secure transmission module in device 2 can notify the telephone service module in device 2 of the dialing result. Then, the telephone service module in device 2 can notify the communication interface in device 2 of the dialing result. Finally, the communication interface in device 2 can notify the telephone APP in device 2 of the dialing result.

[0551] It is understandable that the dialing result may be dialing success or dialing failure, or the other party is busy, etc., which is not limited here.

[0552] S4805a. The phone APP in device 2 sends audio data packet 1 to the communication interface.

[0553] S4805b. The communication interface in device 2 sends audio data packet 1 to the telephone service in device 2.

[0554] When the phone APP in device 2 determines that the dialing is successful, the phone APP in device 2 can send the audio data packet 1 to the phone service module of device 2 through the communication interface.

[0555] S4805c. The telephone service module in device 2 sends audio data packet 1 to the near-field secure transmission module in device 2.

[0556] S4805d. The near-field secure transmission module in device 2 sends audio data packet 1 to the near-field secure transmission module in device 1.

[0557] S4805e. The near-field secure transmission module in device 1 sends audio data packet 1 to the telephone service module in device 1.

[0558] S4805f. The telephone service module in device 1 sends audio data packet 1 to the base station.

[0559] After receiving the audio data packet 1, the telephone service module in device 2 can send the audio data packet 1 to the telephone service module in device 1 via the near-field secure transmission in device 2. Specifically, the telephone service module in device 2 can send the audio data packet 1 to the near-field secure transmission module in device 2. Then, the near-field secure transmission module in device 2 can send the audio data packet 1 to the near-field secure transmission module in device 1. Then, the near-field secure transmission module in device 1 can send the audio data packet 1 to the telephone service in device 1.

[0560] After receiving the audio data packet 1 , the telephone service module in the device 1 may send the audio data packet 1 to the base station.

[0561] S4806. The base station sends the audio data packet 1 to the target device, and obtains the audio data packet 2 replied by the target device.

[0562] After receiving the audio data packet 1, the base station can send the audio data packet 1 to the target device. The target device is the phone answering device. The base station can also obtain the audio data packet 2 replied by the target device.

[0563] S4807a: The base station responds with audio data packet 2 to the telephone service module in device 1.

[0564] S4807b. The telephone service module in device 1 replies with audio data packet 2 to the near-field secure transmission module in device 1.

[0565] S4807c: The near-field secure transmission module in device 1 replies with audio data packet 2 to the near-field secure transmission module in device 2.

[0566] S4807d. The near-field secure transmission module in device 2 replies with audio data packet 2 to the telephone service module in device 2.

[0567] S4807e. The telephone service module in device 2 replies with audio data packet 2 to the communication interface in device 2.

[0568] S4807f. The communication interface in device 2 replies audio data packet 2 to the phone APP in device 2.

[0569] The base station can send the reply audio data packet 2 to the phone app in device 2 via the phone service module in device 1. Specifically, the base station can reply audio data packet 2 to the phone service module in device 1. Then, the phone service module in device 1 can reply audio data packet 2 to the near-field secure transmission module in device 1. Next, the near-field secure transmission module in device 1 can reply audio data packet 2 to the near-field secure transmission module in device 2. Next, the near-field secure transmission module in device 2 can reply audio data packet 2 to the phone service module in device 2. Next, the phone service module in device 2 can reply audio data packet 2 to the communication interface in device 2. Finally, the communication interface in device 2 can reply audio data packet 2 to the phone app in device 2.

[0570] When device 2 continuously dials the target device using SIM card 1 in device 1, the phone app in device 2 can continuously transmit audio data via the phone service module in device 1 to the base station, which then transmits it to the target device. The base station then transmits the target device's reply audio data to the phone service module in device 1, which then transmits it to the phone service module in device 2 via the phone service module in device 1, and then to the phone app in device 2. In other words, devices 1, 2, and the base station can repeatedly perform steps S4805a through S4807f.

[0571] In some possible examples, when device 2 obtains SIM card information D1 of SIM card 1 of device 1, device 2 may display the identification information of the virtual SIM card generated from SIM card information D1 of SIM card 1 in the dialing interface. When a user dials using the identification information of the virtual SIM card, the telephone service module of device 2 may determine to use the SIM card information of the virtual SIM card for dialing. After the telephone service module of device 2 determines that the SIM card information of the virtual SIM card is stored in the virtual SIM module, it may instruct the telephone service module of device 1 to dial using SIM card 1 corresponding to the SIM card information of the virtual SIM card.

[0572] For example, Figure 48B As shown, the dialing interface 4800 of the mobile phone 40 may include a dialing control 4801 and a dialing control 4802. The dialing control 4801 may include a virtual SIM card in the mobile phone 40, that is, Figure 44 The identification information of the distributed SIM card 2 shown in FIG40 , such as the operator name and user number corresponding to the virtual SIM card, etc. This application does not limit the identification information of the virtual SIM card shown in the dialing control 4801. The user can click the dialing control 4801, and in response to the user operation, the mobile phone 40 can dial using the SIM information of the virtual SIM card.

[0573] In this way, when no SIM card is inserted into device 2, or the SIM card inserted into device 2 has no service, device 2 can make and receive calls with the SIM card of device 1. Moreover, the SIM card in device 1 does not need to be removed and inserted into device 2.

[0574] The following takes application A as an SMS APP as an example to describe in detail how application A in device 2 sends a short message using SIM card information D1 of SIM card 1 of device 1 obtained by device 2.

[0575] Figure 49A The following is an example of an interaction diagram showing that the phone APP in the device 2 sends a text message by acquiring the SIM card information D1 of the SIM card 1 of the device 1. Figure 49A As shown, the phone APP in device 2 sends a short message by obtaining the SIM card information D1 of SIM card 1 of device 1, which may specifically include the following steps:

[0576] S4901a. The SMS app in device 2 sends SMS data packet 1 to the communication interface in device 2.

[0577] S4901b. The communication interface in device 2 sends SMS data packet 1 to the SMS service module in device 2.

[0578] When a user sends a text message through the SMS APP in the device 2 , the SMS APP in the device 2 may send a text message data packet 1 to the SMS service module in the device 2 through the communication interface.

[0579] S4902: The SMS service module in device 2 determines to use the SIM information of virtual SIM card 1 to send SMS data packet 1.

[0580] After receiving SMS data packet 1 sent by the SMS app in device 2, the SMS service module in device 2 can query the card account management in device 2. If the card account management in device 2 only contains the SIM card information of virtual SIM card 1 (i.e., SIM card information D1 of SIM card 1 in device 1), the SMS service module in device 2 determines to use the SIM card information of virtual SIM card 1 to send SMS data packet 1. If the card account management module in device 2 contains SIM card information of multiple SIM cards, but virtual SIM card 1 is set as the primary card by the user, the SMS service module in device 2 determines to use the SIM card information of virtual SIM card 1 to send SMS data packet 1.

[0581] When the SMS service module in device 2 receives the SMS data packet from the SMS APP, the SMS service module needs to first confirm whether there is a SIM card in device 2. If there is a SIM card in device 2 and only virtual SIM card 1 exists, or if there is a virtual SIM card and the virtual SIM card is set as the primary card, the SMS service module in device 2 can determine to use the SIM card information of virtual SIM card 1 to send the SMS.

[0582] It is understood that the SMS service module can only provide the device with SMS sending and receiving services when the SMS service module determines that the device has a SIM card (physical SIM card or virtual SIM card). If the SMS service module determines that the device does not have a SIM card, the SMS service module may not provide SMS sending and receiving related services to the SMS app in the device.

[0583] Because the virtual SIM card's SIM card information doesn't include authentication keys, carrier root keys, and other related information, the SMS module in device 2 can't directly use the virtual SIM card's SIM card information to authenticate with the carrier's network equipment and send SMS messages directly to the network equipment. The SMS module in device 2 needs to notify the SMS module in device 1, which provided the virtual SIM card's SIM card information, to send and receive SMS messages.

[0584] S4903a. The SMS service module in device 2 sends SMS data packet 1 and notification message M2 to the near-field secure transmission module in device 2. The communication message M2 is used to notify device 1 to use the physical SIM card 1 corresponding to the SIM card information of the virtual SIM card 1 to send SMS data packet 1.

[0585] S4903b. The near-field secure transmission module in device 2 sends SMS data packet 1 and notification message M2 to the near-field secure transmission module in device 1. The communication message M2 is used to notify device 1 to use the physical SIM card 1 corresponding to the SIM card information of the virtual SIM card 1 to send SMS data packet 1.

[0586] S4903c. The near-field secure transmission module in device 1 sends SMS data packet 1 and notification message M2 to the SMS service module in device 1. The communication message M2 is used to notify device 1 to use the physical SIM card 1 corresponding to the SIM card information of the virtual SIM card 1 to send SMS data packet 1.

[0587] The SMS module in device 2 can send a notification message M2 to the SMS module in device 1 via the near-field secure transmission module in device 2. This communication message M2 is used to notify device 1 to use the physical SIM card 1 corresponding to the SIM card information of virtual SIM card 1 to send SMS data packet 1. Specifically, the SMS module in device 2 sends SMS data packet 1 and a notification message M2 to the near-field secure transmission module in device 2. This communication message M2 is used to notify device 1 to use the physical SIM card 1 corresponding to the SIM card information of virtual SIM card 1 to send SMS data packet 1. Then, the near-field secure transmission module in device 2 sends SMS data packet 1 and notification message M2 to the near-field secure transmission module in device 1. Subsequently, the near-field secure transmission module in device 1 sends SMS data packet 1 and notification message M2 to the SMS module in device 1.

[0588] S4904 , the SMS service module in device 1 sends SMS data packet 1 to the base station through physical SIM card 1 .

[0589] After receiving the SMS data packet 1 and the notification message M2 , the SMS service module in the device 1 may send the SMS data packet 1 to the base station via the physical SIM card 1 .

[0590] S4905. The base station sends SMS data packet 1 to the target device and replies with data packet 2.

[0591] After receiving SMS data packet 1, the base station can parse it and determine the target device for SMS data packet 1. The base station then sends SMS data packet 1 to the target device. After completing the transmission, the base station can reply with data packet 2. Data packet 2 can be used to indicate whether SMS data packet 1 was sent successfully or failed.

[0592] S4906a: The base station replies with data packet 2 to the SMS module in device 1.

[0593] S4906b. The SMS service module in device 1 replies with data packet 2 to the near-field secure transmission module in device 1.

[0594] S4906c: The near-field secure transmission module in device 1 replies with data packet 2 to the near-field secure transmission module in device 2.

[0595] S4906d. The near-field secure transmission module in device 2 replies with data packet 2 to the SMS service module in device 2.

[0596] S4906e. The SMS service module in device 2 replies with data packet 2 to the communication interface in device 2.

[0597] S4906f. The communication interface in device 2 replies with data packet 2 to the SMS APP in device 2.

[0598] The base station can send the reply data packet 2 to the SMS app in device 2 via the SMS service module in device 1. Specifically, the base station can reply data packet 2 to the SMS service module in device 1. Then, the SMS service module in device 1 can reply data packet 2 to the near-field secure transmission module in device 1. Next, the near-field secure transmission module in device 1 can reply data packet 2 to the near-field secure transmission module in device 2. Next, the near-field secure transmission module in device 2 can reply data packet 2 to the SMS service module in device 2. Next, the SMS service module in device 2 can reply data packet 2 to the communication interface in device 2. Finally, the communication interface in device 2 can reply data packet 2 to the SMS app in device 2.

[0599] The target device may also reply to the device 2 with a text message. Specifically, the target device may send the reply text message data packet to the base station, which then sends the reply text message packet to the device 2 via the device 1. Reference may be made to the above steps S4906a to S4906f.

[0600] In some feasible examples, after device 2 obtains SIM card information D1 of SIM card 1 in device 1, it can display the identification information of the virtual SIM card generated from SIM card information D1 of SIM card 1 in the SMS sending interface. A user can use the identification information of the virtual SIM card to select device 2 to send a text message using the virtual SIM card. In response to this user operation, the SMS service module in device 2 can determine to send the text message using the SIM card information of the virtual SIM card. When the SMS service module determines that the virtual SIM card information of the virtual SIM card is stored in the SMS module, the SMS service module in device 2 can send a text message data packet to device 1 where SIM card 1 corresponding to the virtual SIM card is located. The SMS service module in device 1 then sends the text message data packet to the base station.

[0601] For example, Figure 49B The text message sending interface 4900 of mobile phone 40 is shown. This text message sending interface 4900 may include tabs 4901 and 4902. Tab 4901 may include identification information of the local SIM card in mobile phone 40. Tab 4902 may include identification information of the virtual SIM card. A user may select tab 4902. In response to this user operation, the SMS service module in mobile phone 40 may determine to send a text message data packet using the SIM card information of the virtual SIM card.

[0602] In this way, when no SIM card is inserted into device 2, or the SIM card inserted into device 2 has no service, device 2 can send and receive text messages with the SIM card of device 1. Moreover, the SIM card in device 1 does not need to be removed and inserted into device 2.

[0603] The following introduces an exemplary electronic device 5000 provided in an embodiment of the present application.

[0604] Figure 50 It is a structural diagram of the electronic device 5000 provided in an embodiment of the present application.

[0605] The following embodiments are described in detail using electronic device 5000 as an example. It should be understood that electronic device 5000 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0606] The electronic device 5000 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air 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.

[0607] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 5000. In other embodiments of the present application, the electronic device 5000 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0608] 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 memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0609] The controller may be the nerve center and command center of the electronic device 5000. The controller may generate an operation control signal based on the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0610] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0611] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may 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 subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0612] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C busses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby enabling touch functionality in the electronic device 5000.

[0613] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0614] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0615] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0616] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 5000. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 5000.

[0617] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0618] The SIM interface can be used to communicate with the SIM card interface 195 to implement the function of transmitting data to the SIM card or reading data in the SIM card.

[0619] USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 130 can be used to connect a charger to charge electronic device 5000, or to transfer data between electronic device 5000 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.

[0620] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 5000. In other embodiments of the present application, the electronic device 5000 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0621] The charging management module 140 is configured to receive charging input from a charger, which may be a wireless charger or a wired charger.

[0622] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

[0623] The wireless communication function of the electronic device 5000 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0624] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 5000 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0625] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 5000. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0626] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0627] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 5000. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0628] In some embodiments, antenna 1 of electronic device 5000 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 5000 can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0629] Electronic device 5000 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0630] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 5000 can include one or N display screens 194, where N is a positive integer greater than one.

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

[0632] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and color. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0633] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 5000 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0634] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 5000 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0635] Video codecs are used to compress or decompress digital video. Electronic device 5000 may support one or more video codecs. This allows electronic device 5000 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0636] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications in electronic devices 5000, such as image recognition, face recognition, speech recognition, and text comprehension.

[0637] 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 5000. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0638] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 5000 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data created during the use of the electronic device 5000 (such as face information template data, fingerprint information template, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0639] The electronic device 5000 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0640] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0641] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 5000 can listen to music or listen to hands-free calls through the speaker 170A.

[0642] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 5000 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0643] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 5000 can be provided with at least one microphone 170C. In other embodiments, the electronic device 5000 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 5000 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.

[0644] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0645] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 5000 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 5000 detects the intensity of the touch operation using pressure sensor 180A. Electronic device 5000 can also calculate the location of the touch based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0646] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 5000. In some embodiments, the angular velocity of the electronic device 5000 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 5000 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 5000 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0647] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 5000 calculates altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0648] The magnetic sensor 180D includes a Hall sensor. The electronic device 5000 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 5000 is a flip phone, the electronic device 5000 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Based on the detected opening and closing status of the leather case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0649] Accelerometer 180E can detect the magnitude of acceleration of electronic device 5000 in all directions (generally three axes). When electronic device 5000 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0650] The distance sensor 180F is used to measure distance. The electronic device 5000 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 5000 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0651] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 5000 emits infrared light outward through the light emitting diode. The electronic device 5000 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 5000. When insufficient reflected light is detected, the electronic device 5000 can determine that there is no object near the electronic device 5000. The electronic device 5000 can use the proximity light sensor 180G to detect when the user holds the electronic device 5000 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0652] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 5000 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 5000 is in a pocket to prevent accidental touches.

[0653] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 5000 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0654] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 5000 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 5000 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 5000 heats the battery 142 to prevent the electronic device 5000 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 5000 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0655] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 5000, in a location different from that of the display screen 194.

[0656] The buttons 190 include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 5000 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 5000.

[0657] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0658] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0659] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the electronic device 5000 by inserting it into or removing it from the SIM card interface 195. The electronic device 5000 can support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 5000 interacts with the network through the SIM card to implement functions such as calls and data communications.

[0660] The electronic device 5000 may be the aforementioned device A, device 10A, device 20A, device 30A, device 40A, device 30B, device 40B, and device 1. Optionally, the electronic device 5000 may not have a SIM interface. When the electronic device 5000 does not have a SIM card or does not have SIM card capability, the electronic device 5000 may be device B, device 2, device 10B, or device 20B.

[0661] like Figure 51 As shown, the embodiment of the present application may further provide a device 5100, which may include a processor 5101, a memory 5102, and a communication module 5103.

[0662] The processor 5101 may be configured to instruct the communication module 5103 to obtain SIM card information of the SIM card 1 of another device.

[0663] The processor 5101 may also be configured to instruct the memory 5102 to store the acquired SIM card information of the SIM card 1 .

[0664] The processor 5101 may also be configured to obtain the SIM card information of the SIM card 1 stored in the memory 5102 based on a request from an application in the device 5100 to query the SIM card information.

[0665] The processor 5101 can also be used to instruct the communication module 5103 to send an indication message 1 to the device corresponding to the SIM card information of SIM card 1 based on a request for establishing a cellular mobile data network by an application in the device 5100. The indication message 1 is used to instruct the device corresponding to the SIM card information of SIM card 1 to establish a cellular mobile data network service through the SIM card information of SIM card 1.

[0666] The processor 5101 may also be configured to instruct the communication module 5103 to send indication information 2 to a device corresponding to the SIM card information of the SIM card 1 . The indication information 2 is configured to instruct the device corresponding to the SIM card information of the SIM card 1 to make a call through the SIM card 1 .

[0667] The processor 5101 may also be configured to instruct the communication module 5103 to send indication information 3 to the device corresponding to the SIM card information of SIM card 1 , where the indication information 3 is configured to instruct the device corresponding to the SIM card information of SIM card 1 to send a text message data packet to the base station via SIM card 1 .

[0668] The memory 5102 can be used to store SIM card information of the SIM card 1 in other devices.

[0669] The communication module 5103 can be used to obtain SIM card information of the SIM card 1 of other devices.

[0670] The communication module 5103 may also be used to send indication information 1, indication information 2, and indication information 3.

[0671] Optionally, in some feasible examples, the apparatus 5100 may be the above-mentioned device 10B, device 20B, device 30B, device 40B, or device 2.

[0672] The embodiment of the present application further provides a communication sharing system 5200. The communication sharing system 5200 may include apparatus 5201, apparatus 5202, and apparatus 5203.

[0673] When the device 5202 is turned on, the distributed networking management module 52023 in the device 5202 can detect whether the device 5201 can provide a network connection to the device 5202 and the network quality of the cellular mobile data network provided by the device 5201.

[0674] When device 5201 is able to provide a network connection and the network quality of the cellular mobile data network provided by device 5201 is good (for example, the network data transmission delay is less than a first threshold, or the data transmission rate is greater than a second threshold, etc.), the communication module 52011 in device 5201 can transmit network data to the application 52021 in device 5202 through the network interface 52012 and the network interface 52022 in device 5202.

[0675] When the device 5201 is unable to provide a network connection, and the network quality of the cellular mobile data network provided by the device 5201 is poor (for example, the network data transmission delay is greater than a first threshold, or the data transmission rate is less than a second threshold, etc.), the distributed networking management module 52023 in the device 5202 instructs the Wi-Fi module 52024 in the device 5202 to establish a connection with the Wi-Fi module 52032 in the device 5203. Exemplarily, the Wi-Fi module 52024 and the Wi-Fi module 52032 can establish a communication connection via Wi-Fi point-to-point (P2P). The Wi-Fi module 52024 can obtain the network provided by the communication module 52031 through the Wi-Fi module 52032. Then, the Wi-Fi module 52024 can transmit the network provided by the communication module 52031 to the application 52021.

[0676] Regarding how the device 5202 specifically uses the network provided by the device 5203, please refer to the above Figure 47 The description of device 2 sharing the cellular mobile data network of device 1 is not repeated here.

[0677] In one possible implementation, the device 5201 may be a telematic box (T-BOX) in a car, the device 5202 may be a cockpit domain controller (CDC) in a car, and the device 5203 may be a smart phone.

[0678] In some examples, the device 5201 and the device 5202 are combined into one device, which can be called a vehicle computer.

[0679] An embodiment of the present application provides a communication sharing method, which can be applied to a communication sharing system, the system including a first device, a second device, and a network device, the method comprising: the first device displays a first collaborative interface, the first collaborative interface displaying an icon of the first device and an icon of the second device; the first device detects a first operation, the first operation being used to move the icon of the second device close to the icon of the first device; in response to the first operation, the first device displays a first option box, the first option box being used to select sharing of mobile communication capabilities of the second device; the first device detects a second operation, the second operation being used to select the first device to share the mobile communication capabilities of the second device; in response to the second operation, the first device obtains first information from SIM card information of a first SIM card of the second device; the first device receives a first request from a first application; the first device sends the first request from the first application to the second device, and instructs the second device to send the first request to the network device based on the first SIM card corresponding to the first information; the second device sends the first request to the network device; the network device sends a first response to the second device based on the first request; and the second device sends the first response to the first device. In this way, the first device can share the mobile communication capabilities provided by the first SIM card of the second device with the help of the first information in the first SIM card information of the second device. In this way, when the first device is not inserted with a SIM card or has no SIM card capability, the first device can still use the mobile communication network with the help of the first SIM card in the first device to surf the Internet, make calls, send and receive text messages, etc.

[0680] Figure 53 A flow chart of a communication sharing method is shown as an example. Figure 53 As shown, a communication sharing method provided in an embodiment of the present application may include the following steps:

[0681] S5301: The first device displays a first collaborative interface, where the first collaborative interface displays an icon of the first device and an icon of the second device.

[0682] S5302: The first device detects a first operation, where the first operation is used to move the icon of the second device close to the icon of the first device.

[0683] S5303: In response to the first operation, the first device displays a first option box for selecting to share the mobile communication capability of the second device.

[0684] S5304: The first device detects a second operation, where the second operation is used to select the first device to share the mobile communication capability of the second device.

[0685] S5305: In response to the second operation, the first device obtains first information in the SIM card information of the first SIM card of the second device.

[0686] S5306. The first device receives a first request from the first application.

[0687] S5307: The first device sends a first request of the first application to the second device, and instructs the second device to send the first request to the network device using the first SIM card corresponding to the first information.

[0688] S5308. The second device sends the first request to the network device.

[0689] S5309. The network device sends a first response to the second device based on the first request.

[0690] S5310. The second device sends a first response to the first device.

[0691] In the embodiment of the present application, the first device may be the device 2 mentioned above, or the tablet 50 mentioned above, or the device 5202 mentioned above. The second device may be the device 1 mentioned above, or the device 5203 mentioned above. The network device may be the base station mentioned above.

[0692] In the above Figure 5-Figure 37 In the example shown, the tablet 50 can share the mobile communication capability provided by the mobile phone 40. In this scenario, the mobile phone 40 can also be referred to as the second device.

[0693] In the above Figure 44 、 Figure 45 In the example shown, mobile phone 40 can share the mobile communication capabilities provided by mobile phone 70. In this scenario, mobile phone 40 can be referred to as a first device, and mobile phone 70 can be referred to as a second device.

[0694] The SIM card information of the first SIM card includes at least one of the following items: an integrated circuit card identification code ICCID, an international mobile subscriber identity code IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, and an authentication algorithm; the first information includes at least one of the following items: the integrated circuit card identification code ICCID, the international mobile subscriber identity code IMSI, and the mobile subscriber number MSISDN in the SIM card information of the first SIM card.

[0695] In an embodiment of the present application, the first device may also automatically establish a connection with the second device and obtain the first information in the SIM information of the first SIM card in the second device. For example, when the first device has no network service or the network quality deteriorates, the first device may automatically connect to the second device and obtain the first information in the SIM information of the first SIM card in the second device, and use the mobile communication network with the help of the mobile communication capability provided by the first SIM card in the second device. For example, reference may be made here to Figure 52The description of the device 5202 using the mobile communication network of the device 5203 to access the Internet is not repeated here.

[0696] In some feasible examples, the user can also manually connect the first device or the second device so that the first device can obtain the first information in the SIM information of the first SIM card in the second device. For example, the operation process shown in the above steps S5301-S5305. That is, the user can establish a connection between the first device and the second device in the first collaborative interface of the first device so that the first device can obtain the first information in the SIM information of the first SIM card in the second device. The first collaborative interface can be the above Figure 7 700 shown in FIG. How does the user establish a connection between the first device and the second device in the first collaborative interface? For example, please refer to the above Figure 5-Figure 11 The description in , will not be repeated here.

[0697] Optionally, in a possible implementation, the user can also establish a connection between the first device and the second device in the setting interface of the first device, so that the first device obtains the first information in the SIM information of the first SIM card in the second device. Figure 12-15 The description in , will not be repeated here.

[0698] Optionally, in a possible implementation, the user can also establish a connection between the first device and the second device in the second collaborative interface of the second device, so that the first device obtains the first information in the SIM information of the first SIM card in the second device. Figures 22-28 The description in , will not be repeated here.

[0699] Optionally, in a possible implementation, the user can also establish a connection between the first device and the second device in the setting interface of the second device, so that the first device obtains the first information in the SIM information of the first SIM card in the second device. Figures 29-37 The description in , will not be repeated here.

[0700] Optionally, in a possible implementation, the first device may automatically pop up a prompt box, and the user may choose to establish a connection between the first device and the second device through the prompt box, so that the first device obtains the first information in the SIM information of the first SIM card in the second device. For example, please refer to Figure 20 The description in , will not be repeated here.

[0701] When the first device establishes a connection with the second device and the first device obtains the first information in the SIM information of the first SIM card in the second device, the first device may display indication information to prompt that the first device is sharing the mobile communication capability of the second device.

[0702] In one possible implementation, when a first device establishes a connection with a second device, and the first device obtains the first information in the SIM information of the first SIM card in the second device, the status bar in the first device may display a first prompt message, and the first prompt message includes at least one of the following items: the signal strength of the mobile communication provided by the first SIM card, the name of the operator corresponding to the first SIM card, and the network standard corresponding to the first SIM card. For example, Figure 10 As shown, the status bar of the tablet 50 displays a signal strength indicator 1004 of a mobile communication signal or the operator name "China Mobile" 1005. Figure 10 The description in , will not be repeated here.

[0703] In a possible implementation, the first device displays a second prompt message, where the second prompt message is used to indicate that the first device is using the mobile communication capability of the second device. Figure 16 As shown, the tablet 50 may display an icon 1605 in the hyperterminal card 1604. Figure 16 The description in , will not be repeated here.

[0704] After the first device is disconnected from the second device, the first device stops displaying the indication information for prompting that the first device is sharing the mobile communication capability of the second device.

[0705] In a possible implementation, the first device is disconnected from the second device, and the first device stops displaying the first prompt information. Figure 17 The tablet 50 shown in FIG. 1 no longer displays the signal strength indicator 1004 of the mobile communication signal or the operator name "China Mobile" 1005. Figure 17 The description in , will not be repeated here.

[0706] In a possible implementation, the first device stops displaying the second prompt information. Figure 17 The hyperterminal card 604 of the tablet 50 shown in FIG. 5 no longer displays the icon related to the mobile phone 40 sharing the mobile communication capability with the tablet 50. Figure 17 The description in , will not be repeated here.

[0707] In a possible implementation, when a first device establishes a connection with a second device, after the first device obtains the first information in the SIM information of the first SIM card in the second device, the second device will also display indication information to indicate that the second device is sharing mobile communication capabilities. For example, Figure 27 Icon 2702 in the user interface 2700 of the mobile phone 40 shown in FIG. Figure 36 The icon 3602 in the user interface 3600 of the mobile phone 40 is shown in FIG. Figure 27 and Figure 36 The description in , will not be repeated here.

[0708] In a possible implementation, the first device may further display a first notification box, which is used to display the traffic value of the mobile communication network provided by the second device used by the first device. Figure 21 The notification box 2101 is displayed in . Figure 21 The description in , will not be repeated here.

[0709] In a possible implementation, the second device displays a second notification box, which is used to display the traffic value of the mobile communication network provided by the second device used by the first device. Figure 33 The notification box 3302 is displayed in . Figure 33 The description in , will not be repeated here.

[0710] Optionally, in a possible implementation, the user can also customize the mobile traffic that the second device can share with the first device every month in the second device. Figure 34 The prompt information 3401 shown in . For details, please refer to Figure 34 The description in , will not be repeated here.

[0711] Optionally, in a possible implementation, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, the first device may also generate a virtual SIM card based on the first information in the SIM card information of the first SIM card, and display the virtual SIM card in the SIM card management interface. For example, Figure 44 For details, please refer to the card 2 shown in Figure 44 The description in , will not be repeated here.

[0712] In one possible implementation, the first request is used to request the establishment of a cellular mobile data network, and the first response is used to indicate that the establishment of the cellular mobile data network is successful. Specifically, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, how to obtain the cellular mobile network data through the first information in the SIM card information of the first SIM card can be specifically referred to above. Figure 47 The description in , will not be repeated here.

[0713] In one possible implementation, the first request is used to request a call, and the first response is used to indicate that the call was successfully made. Specifically, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, how to make a call through the first information in the SIM card information of the first SIM card can be specifically referred to above. Figure 48A The description in , will not be repeated here.

[0714] In a possible implementation, the first request is used to request the sending of the first SMS data, the first request carries the first SMS data, and the first response is used to indicate that the first SMS data has been sent successfully. Specifically, after the first device obtains the first information in the SIM card information of the first SIM card of the second device, how to send the SMS through the first information in the SIM card information of the first SIM card can be specifically referred to above. Figure 49A The description in , will not be repeated here.

[0715] In this embodiment of the present application, the second device uses or sends the first request to the network device via the first SIM card corresponding to the first information, which means that the second device uses the first SIM card corresponding to the first information to authenticate with the network device. After successful authentication and establishment of the data transmission channel, the second device can send the first request to the network device.

[0716] Thus, through the communication sharing method provided in the embodiments of the present application, a first device can share the mobile communication capabilities provided by the first SIM card in the second device by means of the first information in the first SIM card information of the second device. In this way, when the first device does not have a SIM card inserted or has no SIM card capability, the first device can still use the first SIM card in the first device to use the mobile communication network to access the Internet, make calls, send and receive text messages, etc.

[0717] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0718] As used in the above embodiments, the term “when…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0719] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. 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 one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).

[0720] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A communication sharing method, the method being applied to a communication sharing system, the system comprising a first device, a second device, and a network device, characterized in that: The method comprises: The first device displays a first option box, where the first option box is used to select sharing the mobile communication capability of the second device; The first device detects a second operation, where the second operation is used to select the first device to share the mobile communication capability of the second device; In response to the second operation, the first device obtains first information in the SIM card information of the first SIM card of the second device; The first device receives a first request from a first application; The first device sends the first request of the first application to the second device, and instructs the second device to send the first request to the network device using the first SIM card; The second device sends the first request to the network device; The network device sends a first response to the second device based on the first request; The second device sends the first response to the first device.

2. The method according to claim 1, characterized in that The method further comprises: The first device displays first prompt information in a status bar of the first device, where the first prompt information includes at least one of the following items: the signal strength of mobile communication provided by the first SIM card, the name of the operator corresponding to the first SIM card, and the network standard corresponding to the first SIM card.

3. The method according to claim 2, characterized in that After the first device displays the first prompt information in the status bar of the first device, the method further includes: The first device is disconnected from the second device, and the first device stops displaying the first prompt information.

4. The method according to claim 3, characterized in that The method further comprises: The first device displays second prompt information, where the second prompt information is used to indicate that the first device is using the mobile communication capability of the second device.

5. The method according to claim 4, characterized in that After the first device displays the second prompt information, the method further includes: The first device is disconnected from the second device, and the first device stops displaying the second prompt information.

6. The method according to claim 5, characterized in that The second prompt information includes an icon of the second device and a mobile communication capability sharing icon.

7. The method according to claim 1, characterized in that The method further comprises: The second device displays third prompt information in a status bar of the second device, where the third prompt information is used to indicate that the second device is sharing mobile communication capabilities.

8. The method according to claim 7, characterized in that After the second device displays the third prompt information in the status bar of the second device, the method further includes: The first device is disconnected from the second device; The second device stops displaying the third prompt information.

9. The method according to claim 8, characterized in that The third prompt information includes the mobile communication capability sharing icon.

10. The method according to claim 1, characterized in that The method further comprises: The second device displays fourth prompt information, where the fourth prompt information is used to prompt the second device to share mobile communication capabilities with the first device.

11. The method according to claim 10, characterized in that After the second device displays the fourth prompt information, the method further includes: The first device is disconnected from the second device; The second device stops displaying the fourth prompt information.

12. The method according to claim 11, characterized in that The fourth prompt information includes the icon of the first device and the mobile communication capability sharing icon.

13. The method according to claim 1, wherein The method further comprises: The first device displays a first prompt box, where the first prompt box is used to indicate whether the user chooses the first device to use the mobile communication capability of the second device; The first device detects a third operation, where the third operation is used to select, in the first prompt box, that the first device uses the mobile communication capability of the second device; In response to the third operation, the first device obtains first information in the SIM card information of the first SIM card of the second device.

14. The method according to claim 1, wherein In response to the first operation, the first device displays a first option box, which specifically includes: In response to the first operation, the first device displays a first control; The first device detects a fourth operation acting on the first control; In response to the fourth operation, the first device displays a first option box.

15. The method according to claim 11, characterized in that The method further comprises: The second device displays a first setting bar, where the first setting bar is used to set and display a limit on the traffic volume of the mobile communication network that the second device can provide to the first device.

16. The method according to claim 15, characterized in that The method further comprises: When the traffic value of the mobile communication network provided by the second device to the first device reaches the limit of the traffic of the mobile communication network that the second device can provide to the first device, the second device stops providing the mobile communication network to the first device.

17. The method according to claim 1, wherein The method further comprises: The first device displays a first notification box, where the first notification box is used to display a traffic value of the mobile communication network provided by the second device used by the first device.

18. The method according to claim 1, wherein The method further comprises: The second device displays a second notification box, where the second notification box is used to display a traffic value of the first device using the mobile communication network provided by the second device.

19. The method according to claim 1, wherein The method further comprises: A first dialing control is displayed in the call dialing interface of the first device, and the first dialing control is used to instruct the first device to dial a number using the first SIM card of the second device.

20. The method according to claim 1, wherein The method further comprises: A first tab is displayed in the SMS sending interface of the first device, and the first tab is used to select the first device to send SMS using the first SIM card of the second device.

21. The method according to claim 19 or 20, characterized in that There is a second SIM card in the first device, and the method further includes: A second control is displayed in the call dialing interface of the first device, and the second control is used to select the first SIM card in the second device or the second SIM card in the first device; and / or, A second control is displayed in the SMS sending interface of the first device, and the second control is used to select the first SIM card in the second device or the second SIM card in the first device.

22. The method according to claim 1, wherein After the first device acquires the first information in the SIM card information of the first SIM card of the second device in response to the second operation, the method further includes: A first virtual SIM card is displayed in the SIM card management interface of the first device, where the first virtual SIM card is generated by the first device based on the first information.

23. The method according to claim 22, characterized in that There is a second SIM card in the first device, and the method further includes: The SIM card management interface of the first device displays a smart switching option, where the smart switching option is used to turn on or off the first device's intelligent selection of using the first virtual SIM card or the second SIM card for mobile communication.

24. The method according to any one of claims 1 to 20, characterized in that The SIM card information of the first SIM card includes at least one of the following items: an integrated circuit card identification code ICCID, an international mobile subscriber identity code IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, and an authentication algorithm; the first information includes at least one of the following items: the integrated circuit card identification code ICCID, the international mobile subscriber identity code IMSI, and the mobile subscriber number MSISDN in the SIM card information of the first SIM card.

25. The method according to claim 24, characterized in that The first request is used to request establishment of a cellular mobile data network, and the first response is used to indicate successful establishment of the cellular mobile data network; After the second device sends the first response to the first device, the method further includes: The first device sends the first network data of the first application to the second device; The second device sends the first network data to the network device; The network device sends second network data to the second device based on the first network data; The second device sends the received second network data to the first device.

26. The method according to claim 24, characterized in that The first request is used to request to make a call, and the first response is used to indicate that the call was successfully made; After the second device sends the first response to the first device, the method further includes: The first device sends the first call data of the first application to the second device; The second device sends the first call data to the network device through the first SIM card; The network device sends the first call data to the target device.

27. The method according to claim 24, characterized in that The first request is used to request the sending of first SMS data, the first request carries the first SMS data, and the first response is used to indicate that the first SMS data is sent successfully.

28. The method according to claim 26, characterized in that The method comprises: The first device detects a seventh operation of the user, where the seventh operation is used to use a first virtual SIM card generated based on the first information as a default dial-up card; In response to the seventh operation, the first device sets the first virtual SIM card as a default dial-up card in the first device.

29. The method according to claim 28, characterized in that A second SIM card is inserted into the first device, and the method further includes: The first device detects an eighth operation of the user, where the eighth operation is used to set the second SIM card as the default outgoing call display card; In response to the eighth operation, the first device sets the second SIM card as a default outgoing call display card; The network device sending the first call data to the target device includes: The network device sends the first call data to the target device through the second SIM card.

30. A communication sharing method, the method being applied to a first device, characterized in that: The method comprises: The first device displays a first option box, where the first option box is used to select sharing the mobile communication capability of the second device; The first device detects a second operation, where the second operation is used to select the first device to share the mobile communication capability of the second device; In response to the second operation, the first device obtains first information in the SIM card information of the first SIM card of the second device; The first device receives a first request from a first application; The first device sends the first request of the first application to the second device, and instructs the second device to send the first request to the network device using the first SIM card; The first device receives a first response sent by the second device, where the first response is sent by the network device to the second device after the network device receives the first request sent by the second device.

31. The method according to claim 30, wherein The method further comprises: The first device displays first prompt information in a status bar of the first device, where the first prompt information includes at least one of the following items: the signal strength of mobile communication provided by the first SIM card, the name of the operator corresponding to the first SIM card, and the network standard corresponding to the first SIM card.

32. The method according to claim 31, characterized in that After the first device displays the first prompt information in the status bar of the first device, the method further includes: The first device is disconnected from the second device, and the first device stops displaying the first prompt information.

33. The method according to claim 32, characterized in that The method further comprises: The first device displays second prompt information, where the second prompt information is used to indicate that the first device is using the mobile communication capability of the second device.

34. The method according to claim 33, wherein After the first device displays the second prompt information, the method further includes: The first device is disconnected from the second device, and the first device stops displaying the second prompt information.

35. The method according to claim 34, wherein The second prompt information includes an icon of the second device and a mobile communication capability sharing icon.

36. The method according to claim 30, wherein The method further comprises: The first device displays a first prompt box, where the first prompt box is used to indicate whether the user chooses the first device to use the mobile communication capability of the second device; The first device detects a third operation, where the third operation is used to select, in the first prompt box, that the first device uses the mobile communication capability of the second device; In response to the third operation, the first device obtains first information in the SIM card information of the first SIM card of the second device.

37. The method according to claim 30, wherein In response to the first operation, the first device displays a first option box, which specifically includes: In response to the first operation, the first device displays a first control; The first device detects a fourth operation acting on the first control; In response to the fourth operation, the first device displays a first option box.

38. The method according to claim 30, wherein The method further comprises: The first device displays a first notification box, where the first notification box is used to display a traffic value of the mobile communication network provided by the second device used by the first device.

39. The method according to claim 30, wherein The method further comprises: A first dialing control is displayed in the call dialing interface of the first device, and the first dialing control is used to instruct the first device to dial a number using the first SIM card of the second device.

40. The method according to claim 30, wherein The method further comprises: A first tab is displayed in the SMS sending interface of the first device, and the first tab is used to select the first device to send SMS using the first SIM card of the second device.

41. The method according to claim 30, wherein The method further comprises: A first virtual SIM card is displayed in the SIM card management interface of the first device, where the first virtual SIM card is generated by the first device based on the first information.

42. The method according to claim 41, wherein There is a second SIM card in the first device, and the method further includes: The SIM card management interface of the first device displays a smart switching option, where the smart switching option is used to turn on or off the first device's intelligent selection of using the first virtual SIM card or the second SIM card for mobile communication.

43. The method according to any one of claims 30 to 42, characterized in that The SIM card information of the first SIM card includes at least one of the following items: an integrated circuit card identification code ICCID, an international mobile subscriber identity code IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, and an authentication algorithm; the first information includes at least one of the following items: the integrated circuit card identification code ICCID, the international mobile subscriber identity code IMSI, and the mobile subscriber number MSISDN in the SIM card information of the first SIM card.

44. The method according to claim 43, wherein The first request is used to request establishment of a cellular mobile data network, and the first response is used to indicate successful establishment of the cellular mobile data network.

45. The method according to claim 43, wherein The first request is used to request to make a call, and the first response is used to indicate that the call was successfully made.

46. The method according to claim 43, wherein The first request is used to request the sending of first SMS data, the first request carries the first SMS data, and the first response is used to indicate that the first SMS data is sent successfully.

47. The method according to claim 45, wherein Before the first device receives the first request of the first application, the method includes: The first device detects a seventh operation of the user, where the seventh operation is used to use a first virtual SIM card generated based on the first information as a default dial-up card; In response to the seventh operation, the first device sets the first virtual SIM card as a default dial-up card in the first device.

48. The method according to claim 47, wherein A second SIM card is inserted into the first device, and the method further includes: The first device detects an eighth operation of the user, where the eighth operation is used to set the second SIM card as the default outgoing call display card; In response to the eighth operation, the first device sets the second SIM card as a default outgoing call display card.

49. A communication sharing method, the method being applied to a second device, characterized in that: The method comprises: The second device displays a second option box, where the second option box is used to select sharing the mobile communication capability of the second device with the first device; The second device detects a sixth operation, where the sixth operation is used to select the second device to share the mobile communication capability of the second device with the first device; In response to the sixth operation, the second device sends the first information in the SIM card information of the first SIM card of the second device to the first device; The second device receives the first request and second indication information of the first application sent by the first device; the second indication information is used to instruct the second device to use the first SIM card corresponding to the first information to send the first request to the network device; The second device sends the first request to the network device; The second device receives the first response sent by the network device, and sends the first response to the first device.

50. The method according to claim 49, wherein The method further comprises: The second device displays third prompt information in a status bar of the second device, where the third prompt information is used to indicate that the second device is sharing mobile communication capabilities.

51. The method according to claim 50, characterized in that After the second device displays the third prompt information in the status bar of the second device, the method further includes: The second device is disconnected from the first device; The second device stops displaying the third prompt information.

52. The method according to claim 51, characterized in that The third prompt information includes the mobile communication capability sharing icon.

53. The method according to claim 50, characterized in that The method further comprises: The second device displays fourth prompt information, where the fourth prompt information is used to prompt the second device to share mobile communication capabilities with the first device.

54. The method according to claim 53, wherein After the second device displays the fourth prompt information, the method further includes: The second device is disconnected from the first device; The second device stops displaying the fourth prompt information.

55. The method according to claim 54, characterized in that The fourth prompt information includes the icon of the first device and the mobile communication capability sharing icon.

56. The method according to claim 50, wherein The method further comprises: The second device displays a first setting bar, where the first setting bar is used to set and display a limit on the traffic volume of the mobile communication network that the second device can provide to the first device.

57. The method according to claim 56, characterized in that The method further comprises: When the traffic value of the mobile communication network provided by the second device to the first device reaches the limit of the traffic of the mobile communication network that the second device can provide to the first device, the second device stops providing the mobile communication network to the first device.

58. The method according to claim 50, wherein The method further comprises: The second device displays a second notification box, where the second notification box is used to display a traffic value of the first device using the mobile communication network provided by the second device.

59. The method according to any one of claims 49 to 58, wherein: The SIM card information of the first SIM card includes at least one of the following items: an integrated circuit card identification code ICCID, an international mobile subscriber identity code IMSI, a mobile subscriber number MSISDN, an authentication key, an operator root key, and an authentication algorithm; the first information includes at least one of the following items: the integrated circuit card identification code ICCID, the international mobile subscriber identity code IMSI, and the mobile subscriber number MSISDN in the SIM card information of the first SIM card.

60. The method according to claim 59, wherein The first request is used to request establishment of a cellular mobile data network, and the first response is used to indicate successful establishment of the cellular mobile data network.

61. The method according to claim 59, wherein The first request is used to request to make a call, and the first response is used to indicate that the call was successfully made.

62. The method according to claim 60, wherein The first request is used to request the sending of first SMS data, the first request carries the first SMS data, and the first response is used to indicate that the first SMS data is sent successfully.

63. An electronic device, characterized in that The electronic device comprises a memory and a processor, wherein the memory and the processor are electrically coupled, the memory is used to store program instructions, and the processor is configured to call all or part of the program instructions stored in the memory so that the electronic device executes the method according to any one of claims 30 to 48.

64. An electronic device, characterized in that It includes a memory and a processor, the memory and the processor are electrically coupled, the memory is used to store program instructions, and the processor is configured to call all or part of the program instructions stored in the memory so that the electronic device executes the method as described in any one of claims 49-62.

65. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 30 to 48.

66. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 49 to 62.

Citation Information

Patent Citations

  • Method and device for sharing user identification card

    CN101742731A

  • Method of sharing SIM card and mobile terminals

    CN108419232A

  • Method for using cellular communication function and related device

    CN113630910A

  • Mobile terminal and control method thereof

    US20160117076A1