Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [file-system]

A file system is the logical structure to organize (store, retrieve and update) data on a storage device.

20
votes
1answer
58k views

Android Folder Hierarchy

On Android's root (/), what is the purpose of each folder? I want to learn the folder hierarchy structure. I would like to know the differences between Android 2.3 and 4.x, if they have different ...
94
votes
2answers
425k views

Where Android apps store data?

Could you list all possible directories where Android apps may store data, providing description what kind of data are stored in each directory?
54
votes
4answers
417k views

Where on the file system are SMS messages stored?

Where in the file system are SMS messages stored? I'm using ES File Explorer to browse around but can't seem to find this - is it on the phone or the SD, and where? I have an HTC Wildfire but I ...
39
votes
5answers
247k views

Check and fix SD card errors within Android itself?

Sometimes my SD card gets "corrupted" and this leads to many read/write errors. Usually, connecting the SD card to the windows 7 and selecting the "Error Checking" (Right click the drive > Tools > ...
9
votes
1answer
27k views

Corrupt SD card formatted as internal storage

So I'm on Marshmallow and have formatted my SD card as internal storage. Its filesystem got corrupt two weeks later for some reason. Plugging it to GParted, I see 16MB of FAT32 and the rest is an ...
28
votes
8answers
113k views

How can I view the Android internal partition table?

I've rooted my device, put it in recovery mode, and have linked it to PC by adb shell. How can I view the list of storage devices and partitions? Note: fdisk doesn't work.
13
votes
6answers
71k views

Can't remount /system in rw

I try desesperately to push an app with adb on the /system/app folder (to install the PlayStore on my low cost tablet). So i tried to remount the /system partition with root rights : mount -o ...
20
votes
1answer
43k views

Why did /sdcard/ turn into /sdcard/0/ with 4.2?

I've never seen this before so I'm assuming that it happened when I upgraded to 4.2: I'm fairly certain that /sdcard/ used to take me straight to my sdcard, but now when I go to that path (in CWM ...
21
votes
9answers
35k views

Disable USB charging

For some reasons not related to the battery life, I need to disable the battery charging when a USB host is connected to my phone (a rooted Nexus 4). Taking a look around on the internet (link1, link2)...
13
votes
2answers
102k views

Where are the .apk files of currently installed apps stored on my Android device? [duplicate]

Possible Duplicate: Where in the file system are applications installed? How can I view the .apk files of currenly installed apps on my android phone?
13
votes
6answers
193k views

Where can I find the OTA update file?

I'm trying to locate the zip file that contains the OTA update for my Droid Bionic. Right now, its failing to update, and every time it fails it deletes the file and I need to re-download it (takes a ...
9
votes
2answers
73k views

How to prevent Android from creating LOST.DIR on SD card?

After the phone restarts, there is a LOST.DIR folder created on the external SD card. Is it possible not to create this folder if nothing is lost?
2
votes
2answers
2k views

Where in the filesystem are settings saved? Namely ADB backup password

Where in the phone filesystem are settings saved? I've lost my ADB backup password and simply want to delete it. If it affects other settings that won't matter too much. I will be interfacing the ...
3
votes
2answers
3k views

Where should I install Toybox?

I own a rooted Samsung Galaxy S Relay 4G running stock Android 4.1.2. If you have Android 6.0 "Marshmallow" or better, then you have Toybox. This is a package of command-line tools, handy for ...
6
votes
2answers
34k views

Are files created in “/storage/emulated/0” supposed to appear in “/storage/sdcard0”?

From what I guess, internal storage is available by every user. If emulated storage is a storage location, made for a specific user, are files created in /storage/emulated/0 supposed to appear in /...
6
votes
1answer
7k views

Android limited to 1 hour video recording?

At the moment, I am using the standard video recording app for video recording. I have found that the recording automatically stops after just 1 hour. Is this a deliberate limitation placed on the ...
3
votes
1answer
1k views

Why Changing Permissions For Some Systems Files is Not Allowed?

I have a rooted tablet and while browsing my files, i came along this folder: (./0/android/data) in the internal storage ... lets say (X-plore file browser) has the folder: (./0/android/data/x-plore)....
24
votes
5answers
62k views

What's the Android equivalent of /etc/fstab?

Sometimes I really wish they hadn't messed around with Linux so much! I know there's an /etc/fstab in there somewhere, but where? I'd like to mount some partitions with alternative filesystems (...
17
votes
7answers
36k views

Access Android device's file system over Bluetooth or Wi-Fi

I'm looking for a way to access the file system of an Android device (Nexus S) wirelessly, as its USB port has become unfit for anything but charging. Ideally, I'd like the same functionality as ...
6
votes
3answers
3k views

Is there a way to mount a Windows shared drive so I can access those files on my phone?

I have a shared network drive full of files I want to access from my phone over wifi. Is there a easy way to mount it on my phone? I have a rooted Motorola Milestone.
2
votes
2answers
1k views

Is there a way to access the phone filesystem from computer, wireless?

Known solutions: USB Mass Storage (sadly, mostly deprecated on Android 4, 5, etc.). MTP, and I know its benefits (a lot) and its weaknesses (browsing on a MTP drive with Windows Explorer has poor ...
2
votes
4answers
18k views

Windows mount android file system

I want to edit some files on my phone but I can not access the root folder on my phone. I'm using a rooted Google Nexus 5 running Android 5.0. I can read/write to my /, and /system by Android's ES ...
4
votes
1answer
5k views

How to clear a Folder (e.g. Downloads) automatically on a regular/scheduled basis?

There is a folder on an Android phone that continually fills with junk. Instead of clearing that folder manually on a regular basis, how can I setup up a way to have that folder be automatically ...
2
votes
2answers
24k views

How do I make /sdcard link point to external SD Card on Android 4.4.2?

I've got a Samsung GT-I9505 phone with Google Edition Rom installed. As my phone comes with 16Gb internal storage, I bought a 32Gb microSD. However, the phone still uses emulated SD card to store all ...
0
votes
1answer
2k views

data/app folder showing wrong folder names

After messing around with the xposed framework and installing lots of modules, I got into a bootloop (classic !), but I knew the solution was to add a disabled file in data/app/de.rovb.android.xposed....
2
votes
1answer
3k views

Please explain the android partition structure to me?

I've tried finding the answer myself, but everything that I am able to see seems to miss out the really basic first steps. Here's my logic: FIRST Look at the phone's specification. Lets say Samsung ...
9
votes
2answers
15k views

How to find the pathname of the swap partition on SD card?

As this warns, you should not enable swap on the wrong partition or you can destroy your phone: OK before we go any further! previous phones had a partition layout where mmcblck0 was the SDcard (...
12
votes
2answers
20k views

Which files/folders on my SDCard are unsafe to delete manually?

I've had my Droid for nearly a year now, and in the process of installing and uninstalling apps, moving data to and from my SDCard, and all the various things one does with a phone the SDCard has ...
2
votes
1answer
7k views

Create a dd image of a Android 4.4.4 for forensics?

I'm a little new to the Android file system, I'm doing a project for a digital forensics class and I want to create a bit-for-bit image of my Nexus 5 running 4.4.4 stock, rooted. The normal way I ...
6
votes
3answers
18k views

How to find out which file system is used by my device?

How do I find out which file system is used by my device's /system, /data and other partitions?
6
votes
1answer
14k views

Local files revisited: Opening local HTML files (file:///path/to/file) in Chrome on Android 4.x

There are other questions on this same topic, but I'm finding that on 4.0.4 with my HTC One, I can open file:/// URLs just fine with Firefox, but not with Chrome or the Android browser. Those two ...
1
vote
0answers
797 views

How to make bind-mounted (mount -o bind) folders visible for non-root users?

I want to mount-bind an app data folder in /data/data/... to a user subfolder in order to automatically synchronise the contents for backup purposes. As root I use the following command: mount -o ...
5
votes
4answers
52k views

download bigger than 4 gb file on android 4.0.4

How can I download files bigger than 4 GB on my Micromax A110 phone? FAT32 file system says that it does not support files larger than 4 GB. I know there is one more way to do that: EXFAT file system....
3
votes
0answers
87 views

How can I run a consistency check on my removable MicroSD card?

I own an Android device with a removable MicroSD card. The card uses either FAT32 or ExFAT technology. These are "non-journaling filesystem" technologies, so the data on the cards can become corrupted ...
3
votes
0answers
86 views

When should I run a consistency check on my removable MicroSD card?

I own an Android device with a removable MicroSD card. The card uses either FAT32 or ExFAT technology. These are "non-journaling filesystem" technologies, so the data on the cards can become corrupted ...
3
votes
2answers
3k views

When should fstrim run?

Based on this cyanogenmod forum thread, I tried to address the delay in running applications and switching between applications on my Galaxy Nexus running cyanogenmod with Android 4.4.4 by running ...
2
votes
1answer
97 views

Which part of Android directories contains so-called proprietary blobs?

When building AOSP (Android Open Source Project) or LineageOS, there is a tool named breakfast. It downloads proprietary blobs and integrates them to the source tree. I have read this article, does ...
2
votes
1answer
3k views

Android chroot ubuntu - is it possible to get ubuntu to recognise usb devices

I've managed to setup the chroot but I'm unsure how to get the chroot to recognise usb devices. I'll be doing so work with microcontrollers hence I neeed to to recognise my usb based programmer. For ...
0
votes
2answers
724 views

How to use an ext4 formatted sd card as external storage with working app permissions?

I'm using LineageOS14.1 (Android 7.1.2) on a Moto G 3rd gen I'm using a 64GB sd and my phone technically doesn't support it, it worked fine until I put more stuff on it and then it started to ...
0
votes
2answers
280 views

Is it possible to change file permissions on Android's internal storage?

How can I change file permission of a file on Android without rooting? I actually want to prevent some files from deletion. Note: I am asking of changing the file permissions of user-created files in ...
0
votes
1answer
199 views

Why is the '/storage/emulated/' directory inaccessible?

The /storage directory and the /storage/emulated/0 directory is accessible in a non-rooted Android OS. So, why is the /storage/emulated directory not accessible in a non-rooted Android OS ?
26
votes
2answers
203k views

How to access /storage/emulated/0/ from PC?

I want to export the settings of the K9 mail app. This app exports a settings file to /storage/emulated/0/com.fsck.k9/settings-4.k9s. But if I connect my Nexus 4 to my PC I cannot see such a file or ...
13
votes
1answer
14k views

What kind of data is stored in /data/user directory?

It seems to store some kind of application data, but how is it different from /data/data directory?
7
votes
1answer
4k views

How to “mount --bind” directories in Android 4.4?

I am just wondering is there a way to bind an internal /sdcard folder to another internal /sdcard folder and normal apps can write into it for Android versions since 4.4? I have a folder named ./...
10
votes
1answer
16k views

Why can I not assign exec permissions to a file on the SD card?

shell@android:/sdcard/SW # ls -l -rw-rw-r-- root sdcard_rw 128 2012-09-22 11:42 usb0config.sh shell@android:/sdcard/SW # chmod 777 usb0config.sh shell@android:/...
9
votes
3answers
42k views

What exactly is framework-res.apk

As far as I understand it, it is a big system file that apparently controls a big part of the phone. I am interested because I wanted to do some themeing and so far I had edited SystemUI.apk, but if I ...
4
votes
2answers
2k views

Is it possible to reorganize the SD card? Because it is a mess in there

One of the things I hate about Android is the folder organization. Each app creates its own folder, usually in the root of the SD card. When I'm trying to find something, I have to search it through ...
3
votes
1answer
2k views

The /sdcard direcory and other directory conventions: how is the Android filesystem structured?

I am using the "adb shell" command to access either of an LG P690 (device A) or a Samsung Galaxy SIII (device B). Device A also has a 32GB microSD card plugged in while device B does not. When fromthe ...
2
votes
2answers
1k views

How do I record a ~45 minute 1080p video with external mic?

I am currently using the camcorder function that comes with lgcamera because it allows me to use the microphone as the source of sound input. But I found that it stops when the recording size reaches ...
8
votes
1answer
5k views

Does Android have a 2.1GB file size limit?

I have tried many voice recording type applications and the best I have found only allows me to do a recording upto a maximum file size of 2.1GB. I can do many of these 2.1GB recordings as I have a ...