一种双卡双待通话方法、装置及终端Dual card dual standby call method, device and terminal技术领域Technical field本发明涉及终端通讯技术领域,尤其涉及一种双卡双待通话方法、装置及终端。The present invention relates to the field of terminal communication technologies, and in particular, to a dual card dual standby call method, device and terminal.
背景技术Background technique在一台智能终端同时运行2个独立的操作系统(Operating System,简称OS),2个系统的应用也相互独立,并且两张SIM(Subscriber Identity Module客户识别模块)卡在两个系统中都能使用。Two intelligent operating systems (OS) are run simultaneously on one intelligent terminal, and the applications of the two systems are independent of each other, and two SIM (Subscriber Identity Module) cards can be used in both systems. use.
当来电时,系统将在当前运行的操作系统中接听来电,这样一些安全需求低的电话可能在安全级别高的操作系统中接听,而一些安全需求高的电话可能在安全级别低的操作系统中接听。所以,通话会存在一定的不安全性。而且,在现有方案中用户不能设置某个号码的来电只在一个操作系统中接听,因为在哪个操作系统中接听的概率是随机的,给用户带来不好的体验。When a call comes in, the system will answer the call in the currently running operating system, so that some phones with low security requirements may be answered in a high-security operating system, and some phones with high security requirements may be in a low-security operating system. Answer. Therefore, there will be some insecurities in the call. Moreover, in the existing solution, the user cannot set a call of a certain number to be answered only in one operating system, because the probability of answering in which operating system is random, brings a bad experience to the user.
发明内容Summary of the invention
本发明要解决的技术问题是,提供一种双卡双待通话方法、装置及终端,基于操作系统解决安全通话的问题。The technical problem to be solved by the present invention is to provide a dual card dual standby call method, device and terminal, and solve the problem of secure call based on an operating system.
本发明采用的技术方案是,所述双卡双待通话方法,包括:The technical solution adopted by the present invention is that the dual card dual standby calling method includes:
在具备双操作系统和双SIM卡的终端中,将每个SIM卡均与对应的一个操作系统绑定;In a terminal with dual operating systems and dual SIM cards, each SIM card is bound to a corresponding operating system;
在双操作系统同时运行时,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话。When the dual operating system is running at the same time, according to the SIM card to which the caller ID belongs, switch to the corresponding operating system to answer the call.
进一步的,所述将每个SIM卡均与对应的一个操作系统绑定,包括:将双操作系统设置为:安全等级高的安全操作系统和安全等级低的普通操作系统;将双SIM卡设置为:用于保存安全等级高的联系人电话号码的安全SIM卡、以及用于保存安全等级低的联系人电话号码的普通SIM卡;Further, each SIM card is bound to a corresponding operating system, including: setting the dual operating system to: a security operating system with a high security level and a common operating system with a low security level; setting the dual SIM card a: a secure SIM card for storing a contact phone number with a high security level, and a normal SIM card for storing a contact phone number with a low security level;
将安全SIM卡与安全操作系统绑定使用,将普通SIM卡与普通操作系统绑定使用。Bind the secure SIM card to the secure operating system and bind the normal SIM card to the normal operating system.
进一步,双操作系统同时运行,包括:Further, dual operating systems run simultaneously, including:
由开机引导程序加载虚拟层模块;The virtual layer module is loaded by the boot loader;
通过虚拟层模块对内存及硬件资源进行分配,来加载运行双操作系统。Load and run dual operating systems by allocating memory and hardware resources through the virtual layer module.
进一步的,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话,包括:Further, according to the SIM card to which the caller ID belongs, switch to the corresponding operating system to answer the call, including:
通过虚拟层模块查找来电号码所属的SIM卡;Find the SIM card to which the caller number belongs through the virtual layer module;
通过虚拟层模块对CPU时间、内存及硬件资源的分配,以切换到查找出的SIM卡对应的操作系统下接听电话。Through the virtual layer module to allocate CPU time, memory and hardware resources, to switch to the operating system corresponding to the found SIM card to answer the call.
进一步的,所述方法,还包括:当来电号码为陌生来电号码,切换到普通操作系统下接听电话;Further, the method further includes: when the caller number is a strange caller number, switching to the normal operating system to answer the call;
当发生以下情况之一时切换到安全操作系统下接听电话:Switch to the secure operating system to answer the call when one of the following occurs:
1)来电号码同时属于两个SIM卡;1) The caller number belongs to two SIM cards at the same time;
2)来电号码未保存在双SIM卡中但保存在终端的存储设备中。2) The caller number is not saved in the dual SIM card but is stored in the storage device of the terminal.
本发明还提供一种双卡双待通话装置,包括:The invention also provides a dual card dual standby device, comprising:
绑定单元,用于在具备双操作系统和双SIM卡的终端中,将每个SIM卡均与对应的一个操作系统绑定;a binding unit, configured to bind each SIM card to a corresponding operating system in a terminal having dual operating systems and dual SIM cards;
接听控制单元,用于在双操作系统同时运行时,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话。The answering control unit is configured to switch to the corresponding operating system to answer the call according to the SIM card to which the caller ID belongs when the dual operating system is running at the same time.
进一步的,所述绑定单元,用于将双操作系统设置为:安全等级高的安全操作系统和安全等级低的普通操作系统;将双SIM卡设置为:用于保存安全等级高的联系人电话号码的安全SIM卡、以及用于保存安全等级低的联系人电话号码的普通SIM卡;Further, the binding unit is configured to set the dual operating system to: a security operating system with a high security level and a common operating system with a low security level; and the dual SIM card is configured to: save a contact with a high security level a secure SIM card for the phone number, and a normal SIM card for storing the phone number of the contact with a low security level;
将安全SIM卡与安全操作系统绑定使用,将普通SIM卡与普通操作系统绑定使用。Bind the secure SIM card to the secure operating system and bind the normal SIM card to the normal operating system.
进一步,所述装置,还包括:Further, the device further includes:
双操作系统运行单元,用于通过开机引导程序加载虚拟层模块,通过虚拟层模块对内存及硬件资源进行分配,来加载运行双操作系统。The dual operating system running unit is configured to load the virtual layer module through the booting boot program, and allocate the memory and hardware resources through the virtual layer module to load and run the dual operating system.
所述接听控制单元,用于:通过虚拟层模块查找来电号码所属的SIM卡;通过虚拟层模块对CPU时间、内存及硬件资源的分配,以切换到查找出的SIM卡对应的操作系统下接听电话。The answering control unit is configured to: search for a SIM card to which the caller ID belongs by using the virtual layer module; and allocate the CPU time, memory, and hardware resources through the virtual layer module to switch to the operating system corresponding to the found SIM card. phone.
进一步的,所述接听控制单元,还用于:当来电号码为陌生来电号码,切换到普通操作系统下接听电话;Further, the answering control unit is further configured to: when the incoming call number is a strange incoming call number, switch to an ordinary operating system to answer the call;
当发生以下情况之一时切换到安全操作系统下接听电话:Switch to the secure operating system to answer the call when one of the following occurs:
1)来电号码同时属于两个SIM卡;1) The caller number belongs to two SIM cards at the same time;
2)来电号码未保存在双SIM卡中但保存在终端的存储设备中。2) The caller number is not saved in the dual SIM card but is stored in the storage device of the terminal.
本发明还提供一种终端,具备双操作系统和双SIM卡,该终端包括一处理器:The invention also provides a terminal with dual operating systems and dual SIM cards, the terminal comprising a processor:
所述处理器,用于将每个SIM卡均与对应的一个操作系统绑定;在双操作系统同时运行时,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话。The processor is configured to bind each SIM card to a corresponding operating system; when the dual operating system is running at the same time, switch to the corresponding operating system to answer the call according to the SIM card to which the incoming call number belongs.
采用上述技术方案,本发明至少具有下列优点:With the above technical solution, the present invention has at least the following advantages:
本发明所述双卡双待通话方法、装置及终端,引入一种在双操作系统下通话的双卡双待方案,该方案通过将每张卡绑定到一个系统,使得用户可以更好更安全地管理联系人电话号码。用户可以将安全需求低的联系人电话号码存储在安全级别低的系统对应的SIM卡上,而将安全需求高的联系人电话号码存储在安全级别高的系统对应的SIM卡。当来电时由虚拟层来控制转入哪个系统,这样的处理不仅安全可靠,而且提高了办事效率,节约用户宝贵的时间,同时使得终端更加智能化,更符合用户的需求,从某种程度上也提高了用户体验。The dual card dual standby call method, device and terminal of the invention introduce a kind under dual operating systemA dual card dual standby solution for calling, which allows users to manage contact phone numbers better and more securely by binding each card to a system. The user can store the contact phone number with low security requirement on the SIM card corresponding to the system with low security level, and store the contact phone number with high security requirement in the SIM card corresponding to the system with high security level. When the incoming call is controlled by the virtual layer, which process is not only safe and reliable, but also improves the efficiency of the work, saves the valuable time of the user, and makes the terminal more intelligent and more suitable for the user's needs, to some extent. It also improves the user experience.
附图说明DRAWINGS图1为本发明第一实施例的双卡双待通话方法流程图;1 is a flowchart of a dual card dual standby call method according to a first embodiment of the present invention;
图2为本发明第二实施例的双卡双待通话装置组成结构示意图;2 is a schematic structural diagram of a dual card dual standby device according to a second embodiment of the present invention;
图3为本发明第三实施例的终端组成示意图;3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention;
图4为本发明第四实施例的虚拟层对来电进行控制的原理示意图;4 is a schematic diagram of a principle of controlling an incoming call by a virtual layer according to a fourth embodiment of the present invention;
图5为本发明第四实施例的虚拟层对来电进行控制的流程示意图。FIG. 5 is a schematic flowchart of controlling a call by a virtual layer according to a fourth embodiment of the present invention.
具体实施方式detailed description为更进一步阐述本发明为达成预定目的所采取的技术手段及功效,以下结合附图及较佳实施例,对本发明进行详细说明如后。The present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.
本发明第一实施例,一种双卡双待通话方法,如图1所示,包括以下具体步骤:A first embodiment of the present invention, a dual card dual standby call method, as shown in FIG. 1, includes the following specific steps:
步骤S101,在具备双操作系统和双SIM卡的终端中,将每个SIM卡均与对应的一个操作系统绑定;Step S101: In a terminal having a dual operating system and a dual SIM card, each SIM card is bound to a corresponding operating system;
具体的,该步骤S101包括:首先,将双操作系统设置为:安全等级高的安全操作系统和安全等级低的普通操作系统;将双SIM卡设置为:用于保存安全等级高的联系人电话号码的安全SIM卡、以及用于保存安全等级低的联系人电话号码的普通SIM卡;Specifically, the step S101 includes: firstly, setting the dual operating system to: a security operating system with a high security level and a common operating system with a low security level; setting the dual SIM card to: for storing a contact phone with a high security level a secure SIM card for the number, and a normal SIM card for storing the telephone number of the contact with a low security level;
然后,将安全SIM卡与安全操作系统绑定使用,将普通SIM卡与普通操作系统绑定使用。Then, the secure SIM card is used in conjunction with the secure operating system to bind the ordinary SIM card to the normal operating system.
步骤S102,在双操作系统同时运行时,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话。In step S102, when the dual operating system is running at the same time, the SIM card to which the incoming call number belongs is switched to the corresponding operating system to answer the call.
具体的,在步骤S102中要实现双操作系统同时运行,须通过以下流程:Specifically, in order to realize simultaneous operation of the dual operating systems in step S102, the following processes are required:
A1:由开机引导程序加载虚拟层模块;A1: The virtual layer module is loaded by the boot boot program;
A2:通过虚拟层模块对内存及硬件资源进行分配,来加载运行双操作系统。在双操作系统同时运行时,同一时刻也只能有一个操作系统位于前台运行,另一个位于后台运行。A2: The memory and hardware resources are allocated through the virtual layer module to load and run the dual operating system. When dual operating systems are running at the same time, only one operating system can be running in the foreground and the other running in the background at the same time.
在步骤S102中,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话,包括:In step S102, according to the SIM card to which the caller ID belongs, switch to the corresponding operating system to answer the call, including:
通过虚拟层模块查找来电号码所属的SIM卡;Find the SIM card to which the caller number belongs through the virtual layer module;
通过虚拟层模块对CPU时间、内存及硬件资源的分配,以切换到查找出的SIM卡对应的操作系统下接听电话。Through the virtual layer module to allocate CPU time, memory and hardware resources, to switch to the operating system corresponding to the found SIM card to answer the call.
另外,为了对一些特殊情况进行处理,优选的,本实施例的所述方法,还包括:当发生以下情况之一时切换到安全操作系统下接听电话:In addition, in order to deal with some special cases, preferably, the method in this embodiment further includes: switching to a secure operating system to answer the call when one of the following occurs:
1)来电号码同时属于两个SIM卡;1) The caller number belongs to two SIM cards at the same time;
2)来电号码未保存在双SIM卡中但保存在终端的存储设备中;2) The caller number is not saved in the dual SIM card but is stored in the storage device of the terminal;
当来电号码为陌生来电号码,切换到普通操作系统下接听电话。When the caller number is a strange caller number, switch to the normal operating system to answer the call.
因为在实际使用过程中,用户可能将同一个联系人电话先后存储在两张SIM卡上而不自知,或者用户尚未对联系人电话号码的安全等级进行准确的判断而暂时将其存入终端的存储设备中,待后续确定其安全等级后再存入相应的SIM卡中,为了整体提升终端通话的安全性,将上述两种特殊情况下的来电均切换到安全操作系统下接听电话。而针对陌生来电的情况,通常认为该来电的联系人与机主关系不密切,安全需求较低,故切换到普通操作系统下接听电话即可。Because in the actual use process, the user may store the same contact phone on two SIM cards one by one without knowing it, or the user has not yet accurately judged the security level of the contact phone number and temporarily deposits it in the terminal. In the storage device, after the security level is determined, it is stored in the corresponding SIM card. In order to improve the security of the terminal call as a whole, the incoming calls in the above two special cases are switched to the secure operating system to answer the call. For the situation of strange incoming calls, it is generally considered that the contact of the incoming call is not closely related to the owner, and the security requirement is low, so switching to the normal operating systemJust answer the call.
本发明第二实施例,与第一实施例对应,本实施例介绍一种双卡双待通话装置,如图2所示,包括以下组成部分:The second embodiment of the present invention corresponds to the first embodiment. This embodiment introduces a dual card dual standby device, as shown in FIG. 2, including the following components:
1)绑定单元100,用于在具备双操作系统和双SIM卡的终端中,将每个SIM卡均与对应的一个操作系统绑定;1) Bindingunit 100, configured to bind each SIM card to a corresponding operating system in a terminal having a dual operating system and a dual SIM card;
具体的,绑定单元100,用于将双操作系统设置为:安全等级高的安全操作系统和安全等级低的普通操作系统;将双SIM卡设置为:用于保存安全等级高的联系人电话号码的安全SIM卡、以及用于保存安全等级低的联系人电话号码的普通SIM卡;Specifically, the bindingunit 100 is configured to set the dual operating system to: a security operating system with a high security level and a common operating system with a low security level; and set the dual SIM card to: save a contact phone with a high security level. a secure SIM card for the number, and a normal SIM card for storing the telephone number of the contact with a low security level;
将安全SIM卡与安全操作系统绑定使用,将普通SIM卡与普通操作系统绑定使用。Bind the secure SIM card to the secure operating system and bind the normal SIM card to the normal operating system.
2)接听控制单元200,用于在双操作系统同时运行时,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话。2) The answeringcontrol unit 200 is configured to switch to the corresponding operating system to answer the call according to the SIM card to which the incoming call number belongs when the dual operating system is running at the same time.
优选的,该装置,还包括:Preferably, the device further comprises:
3)双操作系统运行单元300,用于通过开机引导程序加载虚拟层模块,通过虚拟层模块对内存及硬件资源进行分配,来加载运行双操作系统。3) The dual operatingsystem running unit 300 is configured to load the virtual layer module through the booting boot program, and allocate the memory and hardware resources through the virtual layer module to load and run the dual operating system.
此时,接听控制单元200,具体用于:通过虚拟层模块查找来电号码所属的SIM卡;通过虚拟层模块对CPU时间、内存及硬件资源的分配,以切换到查找出的SIM卡对应的操作系统下接听电话。At this time, the answeringcontrol unit 200 is specifically configured to: search the SIM card to which the caller number belongs through the virtual layer module; and allocate the CPU time, memory, and hardware resources through the virtual layer module to switch to the operation corresponding to the found SIM card. Answer the call under the system.
另外,为了对一些特殊情况进行处理,优选的,接听控制单元200,还用于:当发生以下情况之一时切换到安全操作系统下接听电话:In addition, in order to deal with some special cases, preferably, theanswer control unit 200 is further configured to: switch to the secure operating system to answer the call when one of the following occurs:
1)来电号码同时属于两个SIM卡;1) The caller number belongs to two SIM cards at the same time;
2)来电号码未保存在双SIM卡中但保存在终端的存储设备中;2) The caller number is not saved in the dual SIM card but is stored in the storage device of the terminal;
当来电号码为陌生来电号码,切换到普通操作系统下接听电话。When the caller number is a strange caller number, switch to the normal operating system to answer the call.
本发明第三实施例,一种终端,具备双操作系统和双SIM卡,可以作为实体装置来理解,如图3所示,该终端包括一处理器10;A third embodiment of the present invention, a terminal having a dual operating system and a dual SIM card, can be understood as a physical device, as shown in Figure 3, the terminal includes aprocessor 10;
处理器10,用于将每个SIM卡均与对应的一个操作系统绑定;在双操作系统同时运行时,根据来电号码所属的SIM卡切换到对应的操作系统下接听电话。Theprocessor 10 is configured to bind each SIM card to a corresponding operating system; when the dual operating system is running at the same time, switch to the corresponding operating system to answer the call according to the SIM card to which the incoming call number belongs.
本实施例中处理器10所完成的功能细节上与第一实施例中的流程所涉及的具体步骤相对应。The functions performed by theprocessor 10 in this embodiment are in detail corresponding to the specific steps involved in the flow in the first embodiment.
本发明第四实施例,本实施例是在上述实施例的基础上,结合附图4~5介绍一个本发明的应用实例。The fourth embodiment of the present invention is based on the above embodiments, and an application example of the present invention is described with reference to Figs.
在本实施例中OS代表操作系统,OS后面带数字代表一个唯一确定的操作系统,如下文提到的OS1和OS2是2个独立的操作系统,可以互相通信,但在功能、安全性等方面可有不同。In this embodiment, the OS represents an operating system, and the OS is followed by a number representing a uniquely determined operating system. As mentioned below, OS1 and OS2 are two independent operating systems that can communicate with each other, but in terms of functions and security. It can be different.
终端中插入的两张SIM卡分别为SIM1和SIM2,,两张SIM卡内的数据独立存储。The two SIM cards inserted in the terminal are SIM1 and SIM2, respectively, and the data in the two SIM cards are stored independently.
基于此,本实施例提出一种绑定卡方案:每张SIM卡分别绑定一个操作系统,具体绑定方式是:SIM1对应着安全级别低的操作系统OS1,SIM2对应着安全级别高的操作系统OS2。当任一张SIM卡内的联系人来电时,由虚拟层自动根据该联系人电话号码所属的SIM卡在对应的操作系统中响铃处理及进行通话。Based on this, this embodiment proposes a binding card solution: each SIM card is bound to an operating system, and the specific binding mode is: SIM1 corresponds to the operating system OS1 with low security level, and SIM2 corresponds to a high security level operation. System OS2. When a contact in any SIM card is called, the virtual layer automatically processes and performs a call according to the SIM card to which the contact phone number belongs in the corresponding operating system.
本实施例需要用到一个位于终端硬件之上操作系统之下的虚拟层(Virtualizer)模块,该虚拟层模块可以对CPU硬件资源进行虚拟化,位于硬件之上操作系统之下,具备隔离内存及外设存取管理和基于策略的安全管能力,可以为终端中的两个操作系统构建安全分离的域,以形成两个独立的操作系统运行空间。该虚拟层模块可以对内存、硬件资源以及CPU时间进行分配。开机时,开机引导程序bootloader首先加载虚拟层模块,再由虚拟层模块加载两个操作系统。当来电时,由操作系统的上层应用将来电信息上报虚拟层,由虚拟层判断联系人的归属SIM卡,自动决定进入相应的系统。虚拟层对来电进行控制的示意图如图4所示。In this embodiment, a virtual layer module under the operating system of the terminal hardware is needed, and the virtual layer module can virtualize the CPU hardware resources, and is located under the operating system of the hardware, and has the isolated memory and Peripheral access management and policy-based security management capabilities build a secure, separate domain for the two operating systems in the terminal to form two separate operating system operating spaces. The virtual layer module can access memory, hardware resources, and CPU time.Line assignment. When booting, the bootloader bootloader first loads the virtual layer module, and then the virtual layer module loads the two operating systems. When an incoming call is made, the caller information is reported to the virtual layer by the upper layer application of the operating system, and the virtual layer determines the home SIM card of the contact, and automatically decides to enter the corresponding system. The schematic diagram of the virtual layer controlling the incoming call is shown in FIG. 4 .
在SIM1卡绑定普通操作系统OS1,而SIM2卡绑定安全操作系统OS2的情况下,当终端接听到来电时,系统的虚拟层将根据拨入的来电号码来判断属于哪个操作系统,并切换到相应的系统。可分以下几种情况:When the SIM1 card is bound to the normal operating system OS1 and the SIM2 card is bound to the security operating system OS2, when the terminal hears the incoming call, the virtual layer of the system determines which operating system belongs according to the incoming caller number, and switches. Go to the appropriate system. Can be divided into the following situations:
1、若是该号码在SIM1、SIM2中都不存在,将判定该号码属于陌生来电,将会被切换到OS1系统下接听电话;1. If the number does not exist in SIM1 and SIM2, it will be determined that the number belongs to a strange incoming call and will be switched to the OS1 system to answer the call;
2、若是该号码来自SIM1,则将会被切换到OS1下接听电话;2. If the number is from SIM1, it will be switched to answer the call under OS1;
3、若是该号码来自SIM2,则将会被切换到OS2下接听电话,具体的接听控制流程如图5所示。3. If the number is from SIM2, it will be switched to answer the call under OS2. The specific answer control process is shown in Figure 5.
本发明所述双卡双待通话方法、装置及终端,引入一种在双操作系统下通话的双卡双待方案,该方案通过将每张卡绑定到一个系统,使得用户可以更好更安全地管理联系人电话号码。用户可以将安全需求低的联系人电话号码存储在安全级别低的系统对应的SIM卡上,而将安全需求高的联系人电话号码存储在安全级别高的系统对应的SIM卡。当来电时由虚拟层来控制转入哪个系统,这样的处理不仅安全可靠,而且提高了办事效率,节约用户宝贵的时间,同时使得终端更加智能化,更符合用户的需求,从某种程度上也提高了用户体验。The dual card dual standby call method, device and terminal of the present invention introduce a dual card dual standby solution for talking under dual operating systems, which enables users to better and better by binding each card to a system. Manage contact phone numbers securely. The user can store the contact phone number with low security requirement on the SIM card corresponding to the system with low security level, and store the contact phone number with high security requirement in the SIM card corresponding to the system with high security level. When the incoming call is controlled by the virtual layer, which process is not only safe and reliable, but also improves the efficiency of the work, saves the valuable time of the user, and makes the terminal more intelligent and more suitable for the user's needs, to some extent. It also improves the user experience.
通过具体实施方式的说明,应当可对本发明为达成预定目的所采取的技术手段及功效得以更加深入且具体的了解,然而所附图示仅是提供参考与说明之用,并非用来对本发明加以限制。The technical means and functions of the present invention for achieving the intended purpose can be more deeply and specifically understood by the description of the specific embodiments. However, the accompanying drawings are only for the purpose of illustration and description, and are not intended to limit.