Patent ID: 9742901
Date: 2017-08-22
CPC Classifications: H04M

Claim:
1. A method for obtaining a call log of a terminal device, comprising: requesting call log data of a terminal device from an adaptation layer by a UI layer calling an Application Programming Interface (API) provided by the adaptation layer; in response to requesting the call log data of the terminal device, determining from the adaptation layer if the terminal device is in jailbreak; if the terminal device is not in jailbreak, obtaining call log data corresponding to the application program from a call log database corresponding to an application program with a call function, and displaying the call log data through a User Interface (UI); and if the terminal device is in jailbreak, obtaining a full amount of call log data of the terminal device by a service program running background or a hook system interface, and displaying the full amount of call log data stored in the database through a UI; wherein the full amount of call log data of the terminal device is stored in and obtained from the call log database corresponding to the application program with the call function; wherein after obtaining the call log data corresponding to the application program, obtaining the full amount of call log data of the terminal device by the adaptation layer using the service program running background or the hook system interface; and wherein displaying the full amount of call log data through a UI comprises displaying the call log data stored in the call log database through a UI.