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.

Where Next?

Popular Android topics Top

AndroidMan
I’ve tried signing up for Airnow as I used to do very well when they were Airpush, but i haven’t used them in years. I went through the s...
New
Nevio
Hi, I made an android app and created a signature with keytool. I then bundled the signature in the apk. So, I was wondering if, wanting...
New
cajasigwe
Hi, Please I need help to get DHIS2 Capture working in Android Tablet Phone desk ( KT5-3C) Android Version: 10. Build: KT5-3C_LTE05M0_K...
New
Aathithyan
I need to know how to implement outgoing call in my custom application instead of using default phone call app i need my own app call.
New
mfaamir
Dear Sir, I am a beginner in Android App development and I am currently trying to establish a connection between my Android Studio Java ...
New
AndroidDog123
I’m a developer working as a contractor for a company. I’m finding it confusing on how I should answer these questions? Has Google just b...
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
Garrett
This is a question about Android Studio. Where is the Android Studio emulator’s camera default apartment 3D model stored in Android Stud...
New
Garrett
I’m stuck trying to understand how to get a variable initialised, and later updated, in kotlin to update in Jetpack Compose and cause a c...
New
Alan
I need to create an android app to receive contactless payment from my clients. how can I start that? My clients will be phisicaly in the...
New

Other popular topics Top

AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
AstonJ
Inspired by this post from @Carter, which languages, frameworks or other tech or tools do you think is killing it right now? :upside_down...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
PragmaticBookshelf
Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
New
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
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
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New