blob: 0a7b0d0d7a0e54891520080f101b4eb355f8982d [file] [log] [blame]
Michael Bestas0134c1e2023-08-30 13:51:03 +03001# Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
merothh54856102021-11-04 12:07:41 +05302#
3# Redistribution and use in source and binary forms, with or without
Michael Bestas0134c1e2023-08-30 13:51:03 +03004# modification, are permitted (subject to the limitations in the
5# disclaimer below) provided that the following conditions are met:
6#
merothh54856102021-11-04 12:07:41 +05307# * Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
Michael Bestas0134c1e2023-08-30 13:51:03 +03009#
merothh54856102021-11-04 12:07:41 +053010# * Redistributions in binary form must reproduce the above
11# copyright notice, this list of conditions and the following
12# disclaimer in the documentation and/or other materials provided
13# with the distribution.
Michael Bestas0134c1e2023-08-30 13:51:03 +030014#
merothh54856102021-11-04 12:07:41 +053015# * Neither the name of The Linux Foundation nor the names of its
16# contributors may be used to endorse or promote products derived
17# from this software without specific prior written permission.
18#
Michael Bestas0134c1e2023-08-30 13:51:03 +030019# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
20# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
21# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
merothh54856102021-11-04 12:07:41 +053022# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
Michael Bestas0134c1e2023-08-30 13:51:03 +030023# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
27# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
29# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
merothh54856102021-11-04 12:07:41 +053031# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33# Android fstab file.
34# The filesystem that contains the filesystem checker binary (typically /system) cannot
35# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
36
37#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
Michael Bestas0134c1e2023-08-30 13:51:03 +030038system /system ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
39system_ext /system_ext ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
merothh54856102021-11-04 12:07:41 +053040product /product ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
41vendor /vendor ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount
42odm /odm ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount
Michael Bestas9bb5a142024-05-29 00:19:57 +030043/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,sync,data=journal wait,check,formattable,first_stage_mount
merothh54856102021-11-04 12:07:41 +053044/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait
Michael Bestas0134c1e2023-08-30 13:51:03 +030045/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,inlinecrypt,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,formattable,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized+wrappedkey_v0,keydirectory=/metadata/vold/metadata_encryption,metadata_encryption=aes-256-xts:wrappedkey_v0,quota,reservedsize=128M,sysfs_path=/sys/devices/platform/soc/1d84000.ufshc,checkpoint=fs
merothh54856102021-11-04 12:07:41 +053046/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
47/devices/platform/soc/8804000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer
48/devices/platform/soc/1da4000.ufshc_card/host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer
Michael Bestas0134c1e2023-08-30 13:51:03 +030049/devices/platform/soc/*.ssusb/*.dwc3/xhci-hcd.*.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
merothh54856102021-11-04 12:07:41 +053050/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
51/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect
52/dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait,slotselect
Michael Bestas0134c1e2023-08-30 13:51:03 +030053/dev/block/bootdevice/by-name/qmcs /mnt/vendor/qmcs vfat noatime,nosuid,nodev,context=u:object_r:vendor_qmcs_file:s0 wait,check,formattable