This application is a 35 U.S.C. ยง371 national phase application of PCT Application PCT/CN2014/075166 filed Apr. 11, 2014 which claims priority to Chinese Application No. 201310126644.0 filed Apr. 12, 2013. The entire content of each is incorporated herein by reference in its entirety.
The invention relates to the technology of supplying power to external element, and in particular, to a method and terminal device for continuously supplying power to external element.
When a power supply management module in existing terminal devices (e.g., cell phone, tablet computer) supplies power to external element (e.g., smart card, SD card), a power supplying strategy is adopted for the purpose of saving the power, in which power is on during use and power is off automatically when the external element is not in-use for a long time. However, this auto power-off strategy has a hidden danger in case two systems co-exist. For example, when an application of one operating system is using an external element, since this operating system is temporarily switched to another operating system so that power is off, an unexpected abnormality of the external element will be caused. Especially, a switch between a secure operating system running in a trusted execution environment and a multimedia operating system running in an untrusted execution environment will make secure element previously associated with the secure operating system power-off.
Therefore, there is a need for a method and terminal device for continuously supplying power to external element.
According to an object of the invention, a method for continuously supplying power to external element is disclosed which comprises the following steps:
when a terminal device switches from a first operating system to a second operating system, a proxy external element application is generated in the second operating system so that the proxy external element application is associated with an external element; by means of this proxy external element application, the external element which is associated with the application in the first operating system before the above switch operation is continuously supplied with power after the above switch operation.
Preferably, the proxy external element application is associated with the external element via external element port information.
Preferably, the external element port information is contained in a system switch command of a terminal device for switching from the first operating system to the second operating system.
Preferably, the proxy external element application sends the external element port information to a power supply management module of the second operating system so that the power supply management module of the second operating system controls a power supply management chip of the terminal device to continuously supply power to the external element.
Preferably, the first operating system is a secure operating system running in a trusted execution environment.
Preferably, the second operating system is a multimedia operating system running in an untrusted execution environment.
Preferably, the external element is a smart card or a smart SD card.
According to another object of the invention, a terminal device for continuously supplying power to external element is disclosed, the terminal device can operate a first operating system and a second operating system, the terminal device is configured to:
generate a proxy external element application in a second operating system when a first operating system is switched to the second operating system so that the proxy external element application is associated with an external element; by means of this proxy external element application, the external element which is associated with the application in the first operating system before the above switch operation is continuously supplied with power after the above switch operation.
Preferably, the proxy external element application is associated with the external element via external element port information.
Preferably, the external element port information is contained in a system switch command of a terminal device for switching from the first operating system to the second operating system.
Preferably, the terminal device sends the external element port information to a power supply management module of the second operating system via the proxy external element application so that the power supply management module of the second operating system controls a power supply management chip of the terminal device to continuously supply power to the external element.
Preferably, the first operating system is a secure operating system running in a trusted execution environment.
Preferably, the second operating system is a multimedia operating system running in an untrusted execution environment.
Preferably, the external element is a smart card or a smart SD card.
The invention is advantageous in that during a switch from a trusted execution environment to an untrusted execution environment, for example, the terminal device can prevent a secure element in use from being powered-off accidentally leading to disconnection.
Those skilled in the art will know various aspects of the invention more clearly upon reading the specific embodiments of the invention with reference to the accompanying drawings. Those skilled in the art will understand that these drawings are merely provided for explaining the technical solutions of the invention in cooperation with the specific embodiments, rather than limiting the scope of protection of the invention, wherein:
Specific embodiments of the invention will be further described in detail hereinafter with reference to the accompanying drawings. In the following description, for the purpose of illustration, many specific details are set forth in order to provide a thorough understanding of one or more aspects of the embodiments. However, it is apparent to those skilled in the art that one or more aspects of individual embodiments can be carried out with less of these specific details. Therefore, the following description should not be taking as limiting; instead, the scope of protection is defined by the appended claims.
According to the embodiment of the invention, the terminal device can be configured to generate a proxy external element application in the second operating system when a first operating system is switched to the second operating system so that the proxy external element application is associated with an external element; by means of this proxy external element application, the external element which is associated with the application in the first operating system before the above switch operation is continuously supplied with power after the above switch operation. The proxy external element application can be associated with the external element via external element port information. The external element port information is contained in a system switch command of the terminal device for switching from the first operating system to the second operating system. The terminal device can send the external element port information to the power supply management module of the second operating system via the proxy external element application so that the power supply management module of the second operating system controls the power supply management chip of the terminal device to continuously supply power to the external elements.
Here, the first operating system can be a secure operating system running in a trusted execution environment. The second operating system can be a multimedia operating system running in an untrusted execution environment. The external elements are secure elements such as a smart card or a smart SD card, etc.
Therefore, through a secure element proxy application in an untrusted execution environment, for example, the embodiment of the invention continuously supplies power to the secure elements, and prevents the occurrence of an abnormality in which the terminal device makes the secure elements be powered-off and disconnected when the secure operating system in a trusted execution environment switches to a multimedia operating system in an untrusted execution environment, for example.
Through the description of the above embodiments, those skilled in the art will be able to understand that various modifications and replacements can be also made to the specific embodiments of the invention without departing from the spirit and scope of the invention. These modifications and replacements will all fall within the scope defined by the appended claims of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2013 1 0126644 | Apr 2013 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2014/075166 | 4/11/2014 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2014/166419 | 10/16/2014 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
20040206822 | Crandall | Oct 2004 | A1 |
20060259649 | Hsieh | Nov 2006 | A1 |
20070220276 | Croxford | Sep 2007 | A1 |
20080000989 | Chen et al. | Jan 2008 | A1 |
20080077420 | Cromer | Mar 2008 | A1 |
20080184042 | Parks | Jul 2008 | A1 |
20130227270 | Ting | Aug 2013 | A1 |
Number | Date | Country |
---|---|---|
1825248 | Aug 2006 | CN |
1904913 | Jan 2007 | CN |
102122250 | Jul 2011 | CN |
102236816 | Nov 2011 | CN |
102541690 | Jul 2012 | CN |
2034401 | Mar 2009 | EP |
WO 97-30385 | Aug 1997 | WO |
Entry |
---|
First Office Action corresponding to Chinese Application No. 201310126644.0 dated Nov. 3, 2015. |
Extended European Search Report for corresponding EP Application No. 14783048.3, dated Nov. 4, 2016. |
International Search Report corresponding to International Application No. PCT/CN2014/075166 dated Aug. 4, 2014. |
Number | Date | Country | |
---|---|---|---|
20160054772 A1 | Feb 2016 | US |