1

I'm using Android Excel and Word apps on a non-rooted Galaxy Note 8. Over the past months I've opened a couple of files from external sources (email and SD card), but was shocked to find these files could still be opened after the source was gone.

It appears the files reside "somewhere" in /data/user/0. When I launch the app, it displays a file list including the path. I tried to delete these files and get a prompt saying I don't have permission.

This is crazy! If I ever lost my phone, these sensitive files would be compromised!

Irfan Latif
  • 20,353
  • 3
  • 70
  • 213
  • Some apps copy the files to be displayed into their app private data folder. When and if the file will be deleted is up to the used app. Clearing the data for the affected app should delete any cached files. – Robert Apr 05 '19 at 17:24
  • I'm using android Excel and Word apps. Files came from email to myself and from Sd card. When I launch the apps, it displays a file list including the path (data user 0 ...). Phone is not rooted. – Jaketheweasle Apr 06 '19 at 07:30
  • Thank you both for these suggestions. I had tried reinstalling the Excel app, and as expected, the files were gone. I also tried clearing cache which did not work. If i cleared data, it removed the files, and everything else, which is the same as reinstalling the app. I guess when phone is out of warranty, I might try rooting. Do you have a recommendation for rooting sw for gn8? – Jaketheweasle Apr 08 '19 at 06:21

1 Answers1

0

Apps store their data (including opened / downloaded / created files, databases, settings, caches etc.) in /data/data/<pkg_name>/ and /sdcard/Android/data/<pkg_name>/. It's not possible to delete files from former location without root access. So what you can do is either clear data of the app, or uninstall/reinstall the app in order to delete all files.

Irfan Latif
  • 20,353
  • 3
  • 70
  • 213
  • 1
    this is actually not always true on Honeywell devices. I am seeing them hold onto these files after the app is deleted – Dave Friedel Sep 09 '20 at 19:51
  • 1
    @DaveFriedel what's not always true? The saved files location? See details here: Where Android apps store data? // PackageManager supports keeping files after package uninstall. See -k option with pm uninstall. – Irfan Latif Sep 09 '20 at 22:55
  • thank you for the reply and link. I am at a loss why when I uninstall via the app as a user and even when they select Clear Data - it still retains this when the same method I did was the same that I use to store the other files as I use internal storage for everything. The only change I can tell on my end is offering the option for Internal Prefer instead of Internal Only - which then works correctly – Dave Friedel Sep 10 '20 at 18:22
  • Clearing App Data nor uninstalling app does not clear the data! – user1034912 Oct 10 '21 at 04:15