22
votes
Accepted
Some folders and files not showing up on PC when connected via USB
This is a known issue. Go to app manager and find 'external storage' and 'media storage' and clear data and cache for them, then reboot, and wait up to 10 minutes and then connect to PC via USB.
...
19
votes
Accepted
adb push not working on /system, read only
The sequence of commands that worked for me was
adb root
adb disable-verity
adb reboot
adb root
adb remount
If I don't reboot, remount does not succeed.
18
votes
Accepted
Can I access "/data/user/0/" folder in Android emulator from Ubuntu PC?
For this, Android Studio has the feature called Device File Explorer that will allow you to view the connected device or emulator internal files. This is useful especially when you are utilising the ...
15
votes
Accepted
How to disable dm-verity on Android with "user" build type ROM?
I'm going to give a general overview of how dm-verity and related things work on Android according to my limited knowledge. Situation might differ on different devices and ROMs.
HOW IS DM-VERITY ...
14
votes
Accepted
Is it possible to change file permissions on Android's internal storage?
On all operating systems based on Linux kernel - like Android is - it's possible to set permissions on files (including directories) provided that filesystem supports UNIX permissions (uid, gid, mode)....
13
votes
Accepted
How can I enable last_kmsg?
Back in 2012, /proc/last_kmsg (1) used to be a dump of kernel console messages, exported after reboots by Android's ram_console functionality (CONFIG_ANDROID_RAM_CONSOLE), which used persistent_ram (...
12
votes
What's the Android equivalent of /etc/fstab?
I realize that this is an old topic, but some of the answers here actually hindered my efforts to learn about fstab and Android because they so strongly imply that the fstab situation in Android is ...
11
votes
Accepted
Is there a way to access the phone filesystem from computer, wireless?
This solution works even over a hotspot. Simply enable Portable Hotspot on your mobile device, then connect your laptop to the Hotspot WiFi network.
Tip: If you want to prevent the laptop from using ...
10
votes
How can I view the Android internal partition table?
Old thread but found something nobody else has mentioned... just in case anyone finds it useful.
ls -la /dev/block/bootdevice/by-name
The directory contains named symlinks to all the partitons.
10
votes
Why is there no option to choose size in TWRP's resize partition feature?
First to clarify, Resize Partition is different than Resize File System, TWRP provides latter option. It resizes the ext2/3/4 filesystem to the size of partition it's created on. Filesystem size can ...
10
votes
Accepted
How can I know if fstrim was run when I put my phone on charging over night?
A charging, idle device over night is not the only way to run fstrim, there are other ways, too.
Quoting from this old article about scheduled fstrim on Android:
The Android framework will send out a ...
9
votes
Why my DCIM folder is empty seen in the computer but not empty in the phone
For accessing your Android device via USB in "File Transfer" mode your computer uses the MTP protocol. This protocol allows to list and read/write the files from/to your device.
What most ...
8
votes
How to change the modified date of a file without root?
SHORT ANSWER:
You can simply touch the file or provide any time and date in past or future:
~$ touch /sdcard/test_file
~# debugfs -R 'stat media/0/test_file' /dev/block/bootdevice/by-name/userdata | ...
8
votes
How do I find what type of file system is of an attached USB or SD card?
Related question: How to detect filesystem type of un-mounted partition?
Just to complete some missing pieces:
Usually we use mount command to see mounted filesystems, it works without root e.g. ...
8
votes
How to unpack/repack system.img of android ROM?
These commands don't work always: sometimes the system_new.img size becomes greater than system.img.ext4 and hence it doesn't flash on the device. As per my knowledge, the new image size should be ...
7
votes
Accepted
Are files created in "/storage/emulated/0" supposed to appear in "/storage/sdcard0"?
I've checked on one of my devices, and as the comment chain already suspected, you don't need to worry about everyone having access to everybody elses data. First:
/storage/sdcard0 -> /storage/...
7
votes
Accepted
If I reset my phone, will it also TRIM the fragmented eMMC?
Android supports fstrim but it only works if the phone is idle for a long time while charging
It's not so. On newer versions, Android runs fstrim with a daily schedule, provided that the conditions ...
6
votes
Where is the Home folder?
If you're trying to access the files you see in your device when you're plugging it in a computer, then it's there :
/storage/emulated/0/
/sdcard/
6
votes
When should fstrim run?
The article referenced in @mattm's answer is a bit outdated. IdleMaintenanceService was removed in Lollipop, things have changed. On Pie, scheduled fstrim is triggered from StorageManagerService (1) ...
6
votes
How (where) do I browse to the /data/Tombstones (on the System Partition, I think)?
on unroot device
adb shell or adb pull may no permissions read /data/tombstones.
adb bugreport
but adb bugreport can dump those files (indirectly).
// Tested on android 10.
$ adb bugreport ./output....
6
votes
Is there a way to access the phone filesystem from computer, wireless?
According to the mentioned requirements, more powerful tool to use is Sambadroid. SambaDroid is a native port for Android of the popular Samba for Linux. This application allows you to share/manage ...
6
votes
Accepted
Which part of Android directories contains so-called proprietary blobs?
Yes, binary blobs are part of Android filesystem. Android can't boot without them as they are kind of hardware drivers for the device. Most of those are found under /vendor/lib(64), some also under /...
6
votes
Accepted
What is the "u#_everybody" UID?
As stated here:
Cross-user interactions are blocked using the everybody GID.
Android reserves UIDs / GIDs ranging from 10000 to 19999 for apps. AID_EVERYBODY is one of the special groups, which is ...
5
votes
Check and fix SD card errors within Android itself?
While other answers are correct (at least partially), just to add some extra notes. On recent Android releases you don't need to run filesystem check manually as vold handles this automatically. See ...
5
votes
Accepted
Why Changing Permissions For Some Systems Files is Not Allowed?
On more recent phones, internal storage is mounted on a FUSE mount point. Here's the corresponding line from mount executed on my Nexus 6P:
/dev/fuse on /storage/emulated type fuse (rw,nosuid,nodev,...
5
votes
Accepted
It's there a way to get /system partition permanent read/write access even after reboot?
You don't need to make /system permanently R/W. You just need to mount it as R/W at every boot. So I'm providing you with a few options to mount /system as R/W at boot automatically, but do note that ...
5
votes
Accepted
How do I get the real file path of an image?
The second one is the technically correct path. The first one, /phone/..., is just the Gallery app simplifying the display and telling you that the folder is in phone storage (instead of external ...
5
votes
How do I find what type of file system is of an attached USB or SD card?
Apps like Disk Info also provide the format (enable "show file system" in settings).
5
votes
Accepted
How to identify the app/process which re-mounts partitions R/W, creates files and changes file permissions?
Note: Following solution requires a rooted device. Kernel must be built with AUDIT_WATCH, preferably AUDIT_TREE.
The only good thing Google did was to choose the flexible and configurable Linux ...
4
votes
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
file-system × 659file-management × 76
external-sd × 59
root-access × 58
mount × 47
sd-card × 41
internal-storage × 40
partitions × 39
files × 38
adb × 34
storage × 34
file-transfer × 34
file-permissions × 30
linux × 25
system × 24
applications × 23
backup × 16
encryption × 15
shell × 15
cyanogenmod × 14
kernel × 14
samsung × 13
data-recovery × 13
android-10 × 13
media-files × 13