In Android 12, we found a feature from Windows 95

Continuing to explore the new pre-builds of Android 12 for developers, enthusiasts from the XDA-Developers portal discovered a previously unknown feature — a full-fledged system-wide basket that is available to all applications (if their developers want it) and is displayed to the user in the settings. It is surprising that Google decided to implement this option only now, since many other operating systems have already had it for a long time — for example, Microsoft implemented it in Windows 95.

With the release of Android 11, developers introduced Scoped Storage-an approach according to which each application is allocated an isolated part of the storage. Some special applications that need full access to the file system can still request the appropriate permission (for example, file managers), but starting with this version of the operating system, the vast majority of ordinary programs are forced to use alternative APIs to add, open, edit, and delete files in the storage. One of these was the MediaStore API. In fact, this interface was available before, but in Android 11, it got a delete function with the ability to restore (move files to the trash).

Android 12

Now the developers are working to bring the system-wide recycle bin to Android 12 – at the moment, files temporarily deleted by applications are stored in the same directories where they were located, only with the prefix “.” (this prefix makes files hidden to standard file managers). Enthusiasts with XDA-Developers were able to activate the system-wide trash – it is displayed in the Android settings, in the storage section, and shows how much space is occupied by deleted files that can be restored. At the moment, the user can only empty the trash, but with the release of Android 12, perhaps the functionality will expand.

Google has been testing a similar option in its proprietary Files by Google file manager for a long time, and in the application, the Recycle Bin section allows not only viewing deleted files, but also selectively interacting with them: permanently delete or restore. It is logical to assume that something similar will appear in Android 12. However, by the time the update is released, the function may not appear if Google has any problems with its implementation.

Android 12

One catch is that applications must use the MediaStore API to access the system-wide recycle bin. If developers of specific programs do not want to work with this interface, their utilities will still either delete files permanently right away, or use their own recycle bins.