Author Topic: How to delete broken databases?  (Read 9061 times)

ch3mn3y

  • Newbie
  • *
  • Posts: 7
How to delete broken databases?
« on: April 18, 2016, 10:35:22 pm »
One of databases got broken.
Coz of this the app reboots the device (or more hung it, and it reboots) when: I try to refresh mails or delete the database.

Tried to delete by:
- wiping data of the app by settings (reboot),
- wiping its data using Titanium Backup (reboot),
- deleting app using Android's Package Installer,
- deleting using Titanium Backup,
- deleting using Terminal,
- deleting file after file using Solid Explorer,
- deleting using TWRP's Terminal,
- deleting using TWRP's File Manager.

I could delete all other files of the app (apk, dalvik cache, non-databases from /data/data), but if I try to touch databases, device reboots...

That way I cannot use this app.
« Last Edit: April 19, 2016, 11:46:04 am by ch3mn3y »
Using Tapatalk

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: How to delete broken databases?
« Reply #1 on: April 19, 2016, 04:12:04 am »
Have you triedf using "about" - "check databases "? (In Aquamail)

ch3mn3y

  • Newbie
  • *
  • Posts: 7
Re: How to delete broken databases?
« Reply #2 on: April 19, 2016, 11:45:27 am »
Didn't know that option like this existed. Will check and report.

EDIT: I didn't have Google Play on this device, so I installed the only apk I had (it was dev one) and it has only "Integrity check" option. It said "OK" at the end. Still cannot delete databases...

Than I tried restoring the TWRP backup from yesterday (with broken databases), but it rebooted the device before formating the /data partition...

Seems that or there is something more to do with it. Or i will need to use a lot older backup ("pre-reboot" one)...

Will check last stable version from forum.

EDIT2: Ok. Now I don't know what is wrong as (think that after "restoring" the backup) I was able to delete ANY file from /data/data and it doesn't reboot like before, but still uninstalling the app leads to reboot...

EDIT3: I want to try something. Could any of You tell me where the app stores its files? I know about:
- data/app
- data/app-lib
- data/dalvik-cache
- data/data
- Internal/Android/data
- Internal/backup/AquaMail
and of course /cache.

Is there any other place?
« Last Edit: April 19, 2016, 12:20:31 pm by ch3mn3y »
Using Tapatalk

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to delete broken databases?
« Reply #3 on: April 20, 2016, 01:01:25 am »
Just uninstalling the app is supposed to delete every single file and every single directory and folder.

Now since you mention TWRP, you're clearly an advanced (very, very advanced) user -- so you may be using other system level apps, which may change something about your particular device, maybe even mess something up.

( I mean, even if "an" app does something wrong, why does your phone reboot, isn't too much like Windows 2.0? )

In terms of paths -- it's all fully standard, and I don't even know the exact paths, there are Android functions to get "the database path" and "the data file path" etc.

I *guess* it's all supposed to fall under /data/data/<package name>
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/