Patent ID: 8443458

Claim:
A method in an electronic device for detecting if a cover enclosing the electronic device has been opened from a closed position, the cover comprising an enclosing assembly, the enclosing assembly comprising a first fastening element and a second fastening element, the first fastening element and second fastening element of the enclosing assembly being adapted to fasten the cover into a closed position, the electronic device comprising a non-volatile memory, which memory comprises a stored reference signature associated to the enclosing assembly when the cover was fastened into a closed position, the method comprising the steps of: creating a unique signature associated to the enclosing assembly each of multiple consecutive times the electronic device is powered-on and each of multiple consecutive times the electronic device is opened from the closed position based on any one of: a unique signature of the pressure of the first fastening element and a unique signature of the mutual position of the second fastening element, wherein the unique signature is created each time the electronic device is powered on and a subsequent comparison between the created signature and a reference signature may be performed to detect if the cover enclosing the electronic device has been opened since the creating of the reference signature, comparing the created signature with the reference signature, and detecting that the cover has been opened and an unauthorized access when the comparing the created unique signature to the reference signature results in a difference.