How to access main.db of Skype App to display Recent Tab logs in Sample Android Application? -


i'm trying make android application in want show logs/call history of skype user(recent tab).

as know, skype stores contacts in server , after logging in first time , syncs contacts using sync adapter in local storage i.e contacts db not sync logs. logs stored in

/data/data/com.skype.raider/files/ user-name/main.db

is there way can access db,so call history of current logged-in skype user can displayed in android app? , if there way access db, work on non-rooted phones also?

the database file of app stored in data directory @ location "data/data/package_name/databases" , directory can not accessed if device not rooted. know in case of skype main.db file stored @ "/data/data/com.skype.raider/files/ user-name/main.db".

the way access root device. steps after rooting device be,

  1. your app should root access superuser.
  2. locate , parse "shared.xml" file in "data/data/package_name/files/shared.xml". in xml file username username. have path of db now.
  3. as won't having access main.db file, first have run command "chmod 777 filepath" gives full access file. (to run commands through app, checkout "roottools" library)
  4. now can create own dbhelper class or directly access database using sqlitedatabase.opendatabse(path, cursorfactory, flags);

remember, device has rooted.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -