
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
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).
1

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.
1

manevdave
To read the .trash
directory in an Android data recovery application, you would need:
-
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. -
File permissions: Ensure the app has the appropriate permissions (
READ_EXTERNAL_STORAGE
orMANAGE_EXTERNAL_STORAGE
for accessing storage on Android 10 and above). -
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.
1
Popular Android topics

How did they do? Which language did you use? Any tips?
New

Kevin Brothaler
edited by Susannah Davidson Pfalzer
This book will teach you everything you need to know to create compelling graphics o...
New

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

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

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

Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New

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

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

We have developed a audio/video calling functionality using opentok sdk, now we want to integrate speech recognizer for transcribing voic...
New

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

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

Which, if any, games do you play? On what platform?
I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New

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

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

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

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

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

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

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

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
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /centos
- /ash
- /php
- /deepseek
- /scala
- /zig
- /html
- /debian
- /nixos
- /lisp
- /agda
- /textmate
- /sublime-text
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /manjaro
- /django
- /spring
- /diversity
- /nodejs
- /lua
- /slackware
- /julia
- /c
- /neovim