Patent ID: 8428266

Claim:
A method for implementing hot-plug, wherein, the method is applied to a terminal comprising a descrambling library, a smart card driving module, a smart card and a virtual smart card module, and the method comprising: during a process of playing mobile multimedia, the descrambling library sending request information for obtaining a program key to the smart card driving module, and the smart card driving module determining whether the smart card is in a plug-in state or a pull-out state after receiving the request information for obtaining the program key: when the smart card is in the plug-in state, the smart card driving module forwarding the request information to the smart card, receiving response information returned by the smart card, forwarding the response information to the descrambling library, and meanwhile forwarding the response information to the virtual smart card module to save; when the smart card is in the pull-out state, the smart card driving module forwarding the request information to the virtual smart card module, the virtual smart card module returning the saved response information to the smart card driving module, and the smart card driving module forwarding the response information to the descrambling library, after the step of forwarding the response information to the descramblinq library, the method further comprises: the descramblinq library acquiring the program key from the response information and descramblinq an encrypted code stream.