tauseeqafzal

tauseeqafzal

Android Data Recovery Application [Kotlin,Java] - is there any way to read the .trash directory?

Question: Android Developer

→ is there any way to read the .trash directory?

→ we can copy or save the file before delete ?

#android #developer

Most Liked

windzoontechnologies

windzoontechnologies

It was recommended for us to remove the project and re-start, but when I did this, all of my files were gone, and they’re not in the trash either (OSX).

saifkhan760

saifkhan760

In Android, the .Trash directory is not a standard directory used for storing deleted files. Instead, deleted files are typically moved to the system’s Trash or Recycle Bin, which is managed by the operating system.

manevdave

manevdave

To read the .trash directory in an Android data recovery application, you would need:

  1. Root access: Most of the time, accessing hidden directories like .trash requires root access to the device, as Android restricts access to certain system directories for security and privacy reasons.
  2. File permissions: Ensure the app has the appropriate permissions (READ_EXTERNAL_STORAGE or MANAGE_EXTERNAL_STORAGE for accessing storage on Android 10 and above).
  3. App-specific implementation: If the .trash folder is created by a specific app, you may need to interact with that app’s internal data structures or use the app’s APIs (if available).

Without root access or specific app APIs, directly reading the .trash folder may not be feasible.

Popular Android topics Top

New
PragmaticBookshelf
Kevin Brothaler edited by Susannah Davidson Pfalzer This book will teach you everything you need to know to create compelling graphics o...
New
Exadra37
We have Android guides for everyone whether you are a beginner, intermediate or expert . Want to learn how to use the ActionBar or the in...
New
big_f
I am making an app with Nativescript-vue and I would like to have an event where I click on an icon and then a new box appears. For the i...
New
CristianM92
Hi, I’m working on an app who make the conversion between decimal degrees and degrees minutes seconds. I have to make an “Export” button ...
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
JesperBlom
Hi Hope it is a simple question :slight_smile: I am planning to use a new PC for making my enterprise app. Everything works perfect, b...
New
Briannamari
Old android photo name sequence Help decoding file names Example. I want to see if a file name aligns with a time / date in which the p...
New
nihar-gingercube
We have developed a audio/video calling functionality using opentok sdk, now we want to integrate speech recognizer for transcribing voic...
New
Sadik
I’ve been hearing a lot about AI in mobile phones lately, and I’m kind of confused about how it’s different from the usual smart features...
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New
First poster: bot
The overengineered Solution to my Pigeon Problem. TL;DR: I built a wifi-equipped water gun to shoot the pigeons on my balcony, controlle...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
AstonJ
Chris Seaton, the creator of TruffleRuby has died. It appears from suicide :cry: He left this note on Twitter on the weekend: And one...
New

Latest in Android

View all threads ❯