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:
- Open the file manager.
- Go to the folder where you want to save the file (for example,
DocumentsorDownloads). - Click on the button "Create" (usually indicated with a plus sign
+in the lower right corner). - Select file type: folder, text document or other available format.
- 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 (
.csvor.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:
- Open the application "Notes".
- Create a new note and enter the desired text.
- Click on the button "Share" (usually indicated by three connected dots).
- Select "Save as file" or "Export".
- Specify the format (
.txtor.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:
- Create a note in Google Keep.
- Click on the three dots in the upper right corner.
- Select "Copy to Google Docs".
- In the document that opens, click "File โ Download โ Text file (.txt)".
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:
- Open the application Google Docs.
- Click on the button
+in the lower right corner. - Select "New Document".
- Enter text or paste content.
- Click on the three dots in the upper right corner and select "Download".
- Specify the format (
.docx,.pdf,.txtetc.) 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:
- Install Termux from F-Droid (version from Google Play may be outdated).
- Open the application and run the command to update the packages:
pkg update && pkg upgrade - To create a text file, enter:
echo "Your text" > /sdcard/Download/moy_fail.txtHere
/sdcard/Download/โ path to the folder Downloads, andmoy_fail.txt- file name. - 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:
- Connect the phone to the PC via USB and enable debugging (in the developer settings).
- Open the command line (or PowerShell on Windows) and check the connection:
adb devicesThe name of your device should be displayed.
- Create a file with the command:
adb shell "echo 'Hello, world!' > /sdcard/test.txt" - 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,
/systemor/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:
- Internal memory (
/storage/emulated/0) - available without additional permissions. - External memory card (if installed) - usually mounted as
/storage/XXXX-XXXX, whereXXXXis 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:
- Open the file manager.
- Use the search function (usually indicated by a magnifying glass).
- Enter the file name or part of it (for example,
moy_failinsteadmoy_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,DocumentsorPictures. - ๐ง 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
.jsonor.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 likeDownloadorDocuments.
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
- Connect your phone to the PC via USB.
- Select mode "File transfer" (MTP).
- 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:
- Open application Google Drive.
- Click
+ โ Download. - 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:
- Select section "Files".
- Mark folders for backup.
- 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.txtinstead offile). - 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
.txtor 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:
- Open the file manager.
- Select the external card (usually shown as a separate device).
- 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.