Creating local files on an Android smartphone is a task faced by both beginners and experienced users. Despite its apparent simplicity, the process may raise questions: where exactly is the file saved, how to choose the right format, and why some applications do not allow you to create a document without access to the Internet. In this article, we will look at all the nuances - from basic methods to advanced tools that will allow you to work with files even without installing third-party apps.

Local files on Android differ from cloud ones in that they are stored directly in the deviceโ€™s memory. This means you can open them offline, edit them offline and not be subject to the limitations of cloud services. However, this approach also has disadvantages: the risk of data loss when resetting the settings or breaking the phone. Therefore, it is important not only to be able to create files, but also to understand where they are stored and how to back them up.

Unlike computers, where the file system is always accessible through Explorer, on Android the path to local files can be hidden behind several layers of the interface. Manufacturers like Samsung, Xiaomi or Google modify the standard shell by adding their own file managers and restrictions. For example, on some devices without superuser rights, you cannot create a file in the root folder. We will also take these nuances into account in the instructions below. Huawei Without superuser rights you cannot create a file in the root folder /storage/emulated/0. We will also take these nuances into account in the instructions below.

1. Creating a file through a standard file manager

Most modern Android smartphones come with a pre-installed file manager. On pure Android (for example, Google Pixel), this application is called simply "Files", and on devices Samsung โ€” "My files". The interface may differ, but the principle of operation is the same.

To create a new file:

  1. Open the file manager.
  2. Go to the folder where you want to save the file (for example, Documents or Downloads).
  3. Click on the button "Create" (usually indicated with a plus sign + in the lower right corner).
  4. Select file type: folder, text document or other available format.
  5. Enter the file name and confirm creation.

Please note: on some devices (for example Xiaomi Redmi Note 12), the file creation option may be hidden in the menu โ‹ฎ (three dots) or completely absent. In this case, use alternative methods from the following sections.

๐Ÿ’ก

If your file manager does not have a file creation function, try holding your finger on an empty space in the folder - sometimes this opens a context menu with the desired option.

Standard managers usually support the creation of only basic file types:

  • ๐Ÿ“ Folders
  • ๐Ÿ“„ Text documents (.txt)
  • ๐Ÿ“‹ Tables (.csv or .xlsxif integrated Microsoft Office)

To work with other formats (for example, .json, .xml or .md), you will need specialized applications.

2. Using the Notes application for text files.

If you need to quickly create a text file without installing additional apps, use the standard application "Notes" (or Google Keepif it is pre-installed). This method is suitable for devices of all manufacturers, including Realme, Oppo and OnePlus.

Instructions:

  1. Open the application "Notes".
  2. Create a new note and enter the desired text.
  3. Click on the button "Share" (usually indicated by three connected dots).
  4. Select "Save as file" or "Export".
  5. Specify the format (.txt or .docx) and a folder to save.

The main advantage of this method is its simplicity. The disadvantage is that not all versions of the Notes application support exporting to a file. For example, on some devices Huawei this function may not be available. In this case, use Google Keep:

  1. Create a note in Google Keep.
  2. Click on the three dots in the upper right corner.
  3. Select "Copy to Google Docs".
  4. In the document that opens, click "File โ†’ Download โ†’ Text file (.txt)".
๐Ÿ“Š How do you most often create files on Android?
Through a file manager
In the Notes application
Using third-party apps
Another way

3. Creating files through applications for working with documents

To work with formats .docx, .xlsx, .pptx or .pdf it is convenient to use office applications on Android. the most popular:

  • ๐Ÿ“ฑ Microsoft Office (Word, Excel, PowerPoint)
  • ๐Ÿ“ฑ Google Docs/Sheets/Slides
  • ๐Ÿ“ฑ WPS Office (supports more formats than standard solutions)

Let's look at the process using an example Google Docs:

  1. Open the application Google Docs.
  2. Click on the button + in the lower right corner.
  3. Select "New Document".
  4. Enter text or paste content.
  5. Click on the three dots in the upper right corner and select "Download".
  6. Specify the format (.docx, .pdf, .txt etc.) and confirm saving.

Important: by default, files are saved to the cloud Google Drive. To get a local copy, after downloading, check the folder Downloads (Download) through the file manager.

How to save a file in WPS Office without the cloud?

In WPS Office, when saving a document, select the "Local storage" option instead of "Cloud" The file will be available in the folder WPS Office internal. memory.

If you need to create a file a specific formatthat is not supported by standard applications (for example, .json or .xml), use specialized editors:

  • ๐Ÿ“ QuickEdit โ€” for text files with syntax highlighting.
  • ๐Ÿ“ Jota Text Editor โ€” supports encodings and rare formats.
  • ๐Ÿ“ JSON Editor โ€” for working with files .json.

4. Creating files through the terminal (for advanced users)

If you are familiar with command line, you can create a file directly through Android terminal. This method is suitable for users with root-rights or those who use applications like Termux. The latter option does not require superuser rights and works on any device.

Instructions for Termux:

  1. Install Termux from F-Droid (version from Google Play may be outdated).
  2. Open the application and run the command to update the packages:
    pkg update && pkg upgrade
  3. To create a text file, enter:
    echo "Your text" > /sdcard/Download/moy_fail.txt

    Here /sdcard/Download/ โ€” path to the folder Downloads, and moy_fail.txt - file name.

  4. Check the result through the file manager.

Only for Termux: if the command does not work, first allow access to storage with the command termux-setup-storage and restart the application.

To create files of other formats, use the appropriate commands:

  • ๐Ÿ“„ Empty file: touch /sdcard/Download/novy_fail.txt
  • ๐Ÿ“„ File with execution rights: echo '#!/bin/sh' > script.sh && chmod +x script.sh

Install Termux from F-Droid|Update packages with pkg update|Allow access to storage (termux-setup-storage)|Restart the application-->

This method is suitable for automation or creating files in batch mode. For example, you can write a script that will generate reports in the format .csv on a schedule.

5. Creating files via ADB (for developers)

If you are developing applications or testing Android functionality, you can create a file via Android Debug Bridge (ADB). This method requires connecting the phone to the computer and switching on the mode USB debugging.

Step-by-step guide:

  1. Connect the phone to the PC via USB and enable debugging (in the developer settings).
  2. Open the command line (or PowerShell on Windows) and check the connection:
    adb devices

    The name of your device should be displayed.

  3. Create a file with the command:
    adb shell "echo 'Hello, world!' > /sdcard/test.txt"
  4. Check the result in the folder /sdcard/ (this is the root directory of the internal memory).

Through ADB, you can create files in any folders that you can access, including system ones (if you have root access). For example, to create a file in a folder Download:

adb shell "touch /sdcard/Download/newfile.log"

Limitations:

  • โš ๏ธ Without root access, you cannot create files in system folders (for example, /system or /data).
  • โš ๏ธ Some manufacturers (for example, Xiaomi) block access to certain directories even through ADB.

6. Where local files are stored and how to find them

After creating a file, it is important to know where exactly it is stored. On Android there are two main storage areas:

  1. Internal memory (/storage/emulated/0) - available without additional permissions.
  2. External memory card (if installed) - usually mounted as /storage/XXXX-XXXX, where XXXX is a unique identifier.

Typical folders for local files:

Folder Path Destination
Downloads /storage/emulated/0/Download Files downloaded from the browser or applications
Documents /storage/emulated/0/Documents Text files, PDF, office documents
DCIM /storage/emulated/0/DCIM Photos and videos from the camera
Pictures /storage/emulated/0/Pictures Images saved from the gallery or applications
Music /storage/emulated/0/Music Audio files

To quickly find a file:

  1. Open the file manager.
  2. Use the search function (usually indicated by a magnifying glass).
  3. Enter the file name or part of it (for example, moy_fail instead moy_fail.txt).
๐Ÿ’ก

Files created through applications (for example, Word or Termux) can be saved in their own folders. For example, documents from WPS Office by default end up in /storage/emulated/0/WPSOffice/.

If the file is not located, check:

  • ๐Ÿ” The name is correct (case matters!). data-i="215">๐Ÿ” The folder you specified when saving.
  • ๐Ÿ” The folder you specified when saving.
  • ๐Ÿ” Availability of the file in the cloud (if saved via Google Drive or Dropbox).

7. Common mistakes and how to avoid them

When working with local files, users often encounter typical problems. Let's look at the most common ones and ways to solve them.

Error 1: "No access to folder"

Cause: some folders (for example, /Android/data/) are protected and inaccessible without root access. Manufacturers can also block writing to certain directories. (for example, Huawei restricts access to /sdcard/ for third-party applications).

Solution:

  • ๐Ÿ”ง Save files in standard folders: Download, Documents or Pictures.
  • ๐Ÿ”ง Use a file manager with root support (for example, FX File Explorer) if you have superuser rights.

Error 2: The file is saved to the cloud, not locally

Cause: many applications (for example, Google Docs or Microsoft Word) save files to cloud services by default.

Solution:

  • ๐Ÿ”ง Before saving, select the option "Download copy" or "Export".
  • ๐Ÿ”ง In the application settings, disable automatic synchronization with the cloud.

Error 3: You cannot create a file of a certain format

Reason: standard Android applications support a limited set of formats. For example, create file .json through "Files" from Google is impossible.

Solution:

  • ๐Ÿ”ง Install a specialized editor (for example, QuickEdit for .json or .xml).
  • ๐Ÿ”ง Use Termux or ADB to create files of any formats.

โš ๏ธ Attention: on devices with Android 11+ there are additional restrictions on access to storage (Scoped Storage) Some applications may not see files created by other apps. To get around this, use shared ones. folders like Download or Documents.

8. Backing up local files

Local files are vulnerable to system crashes, factory resets, or device failure. To avoid data loss, create backups regularly:

Method 1: Copy to computer

  1. Connect your phone to the PC via USB.
  2. Select mode "File transfer" (MTP).
  3. Copy the desired files to your computer's hard drive.

Method 2: Cloud storage

Use Google Drive, Dropbox or Yandex Disk for automatic synchronization. For example, in Google Drive you can configure folder backup Documents:

  1. Open application Google Drive.
  2. Click + โ†’ Download.
  3. Select files or folders to copy.

Method 3: Local backup

Applications like Swift Backup (requires root) or Titanium Backup allow you to create backup copies of files and settings directly on the device. For example, in Swift Backup:

  1. Select section "Files".
  2. Mark folders for backup.
  3. Click "Create a backup" and specify the storage location (for example, an external memory card).

โš ๏ธ Attention: if you use an external memory card for backups, make sure it is formatted in the file system exFAT or FAT32Format NTFS may not be supported on some Android devices.

Recommended backup frequency:

  • ๐Ÿ“… Important documents - once a week.
  • ๐Ÿ“… Photos and videos - once a month (or enable automatic upload to the cloud).
  • ๐Ÿ“… System settings - before updating the firmware.

FAQ: Answers to frequently asked questions

Is it possible create a file in the Android root folder (for example, /system)?

Without root access writing to system folders (/system, /data) is prohibited. Even with root, access may be limited due to security policy. SELinuxFor experiments, use Android emulators on a PC or an unlocked device. loader.

Why is the created file not displayed in the file manager?

Possible reasons:

  • The file is saved in a hidden folder (starts with a dot, for example .config). Enable display of hidden files in the manager settings.
  • The file has the wrong extension. Rename it by adding the correct one (for example, file.txt instead of file).
  • The manager is not updated. Try another one (for example, Solid Explorer).

How to create a file with a specific encoding (UTF-8, Windows-1251)?

Standard Android applications save files in UTF-8. To specify a different encoding:

  • Use Termux s command:
    iconv -f UTF-8 -t WINDOWS-1251 input.txt > output.txt
  • Install an editor that supports encodings (for example, Jota Text Editor).

Is it possible to create a file on Android without installing applications?

Yes, but the choice of formats will be limited. Methods without installing apps:

  • Through a standard file manager (only .txt or folders).
  • Through the Notes application with export to a file.
  • Via a browser: open an online text editor (for example, Notepad PW), enter text and save the page as a file.

How to create a file on an external card memory?

If the memory card is formatted as portable storage:

  1. Open the file manager.
  2. Select the external card (usually shown as a separate device).
  3. Create a file in the desired folder.

If the card is formatted as internal memory, it is combined with the main storage, and the path to the files will be the same as for the internal memory.