forked from Flemmard/android_device_htc_pyramid
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Nexus style data layout and allow usage of dalvik-cache fro…
…m external sdcard. Use internal data as in Nexus devices (sdcard0 is emulated). External sdcard now called sdcard1 and it's optional second partition can be used for dalvik-cache. Also apps can be moved to external sdcard using built-in asec machanism. This allows user to encrypt device including sdcard0 and place apps, dalvik-cache and media on external sdcard. Change-Id: Ib52086347eb1f8fc9fd11031428f2c49bdda9afb
- Loading branch information
Showing
6 changed files
with
85 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# mount point fstype device [device2] [length=] | ||
# mount point fstype device [device2] [length=] | ||
|
||
/recovery emmc /dev/block/mmcblk0p21 | ||
/boot emmc /dev/block/mmcblk0p20 | ||
/cache ext4 /dev/block/mmcblk0p24 | ||
/data ext4 /dev/block/mmcblk0p23 length=-16384 | ||
/sd-ext ext4 /dev/block/mmcblk1p2 | ||
/sdcard vfat /dev/block/mmcblk1p1 | ||
/boot emmc /dev/block/mmcblk0p20 | ||
/recovery emmc /dev/block/mmcblk0p21 | ||
/system ext4 /dev/block/mmcblk0p22 | ||
/data ext4 /dev/block/mmcblk0p23 length=-16384 | ||
/cache ext4 /dev/block/mmcblk0p24 | ||
/misc emmc /dev/block/mmcblk0p31 | ||
/sdcard1 vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="sdcard1";storage;wipeingui;removable | ||
/sdcard1-data ext4 /dev/block/mmcblk1p2 flags=display="sdcard1-data";wipeingui;removable | ||
/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="usb-otg";storage;wipeingui;removable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# mount point fstype device [device2] [length=] | ||
# mount point fstype device [device2] [length=] | ||
|
||
/boot emmc /dev/block/mmcblk0p20 | ||
/recovery emmc /dev/block/mmcblk0p21 | ||
/system ext4 /dev/block/mmcblk0p22 | ||
/data ext4 /dev/block/mmcblk0p23 length=-16384 | ||
/cache ext4 /dev/block/mmcblk0p24 | ||
/misc emmc /dev/block/mmcblk0p31 | ||
/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="MicroSD card";storage;wipeingui;removable | ||
/sd-ext ext4 /dev/block/mmcblk1p2 flags=display="SD-Ext";wipeingui;removable | ||
#/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="USB OTG";storage;wipeingui;removable | ||
/boot emmc /dev/block/mmcblk0p20 | ||
/recovery emmc /dev/block/mmcblk0p21 | ||
/system ext4 /dev/block/mmcblk0p22 | ||
/data ext4 /dev/block/mmcblk0p23 length=-16384 | ||
/cache ext4 /dev/block/mmcblk0p24 | ||
/misc emmc /dev/block/mmcblk0p31 | ||
/sdcard1 vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="sdcard1";storage;wipeingui;removable | ||
/sdcard1-data ext4 /dev/block/mmcblk1p2 flags=display="sdcard1-data";wipeingui;removable | ||
/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="usb-otg";storage;wipeingui;removable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
# Android fstab file. | ||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags> | ||
#/dev/block/platform/msm_sdcc.1/by-name/dsps /firmware_dsps vfat ro,shortname=lower wait | ||
/dev/block/platform/msm_sdcc.1/by-name/radio /firmware_radio vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait | ||
/dev/block/platform/msm_sdcc.1/by-name/adsp /firmware_q6 vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait | ||
#/dev/block/platform/msm_sdcc.1/by-name/wcnss /firmware_wcnss vfat ro,shortname=lower wait | ||
|
||
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults | ||
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults | ||
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults | ||
/dev/block/platform/msm_sdcc.1/by-name/devlog /devlog ext4 noatime,nosuid,nodev,barrier=0 wait | ||
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,noatime,barrier=0 wait | ||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=0 wait | ||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs rw,discard,nosuid,nodev,noatime,nodiratime,inline_xattr wait,check | ||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,barrier=0 wait,encryptable=footer,length=-16384 | ||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs rw,discard,nosuid,nodev,noatime,nodiratime,inline_xattr wait,check,encryptable=footer,length=-16384 | ||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags> | ||
#/dev/block/platform/msm_sdcc.1/by-name/dsps /firmware_dsps vfat ro,shortname=lower wait | ||
/dev/block/platform/msm_sdcc.1/by-name/radio /firmware_radio vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait | ||
/dev/block/platform/msm_sdcc.1/by-name/adsp /firmware_q6 vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait | ||
#/dev/block/platform/msm_sdcc.1/by-name/wcnss /firmware_wcnss vfat ro,shortname=lower wait | ||
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults | ||
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults | ||
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults | ||
/dev/block/platform/msm_sdcc.1/by-name/devlog /devlog ext4 noatime,nosuid,nodev,barrier=0 wait | ||
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,noatime,barrier=1 wait | ||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check | ||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs rw,discard,nosuid,nodev,noatime,nodiratime,inline_xattr wait,check | ||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,encryptable=footer,length=-16384 | ||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs noatime,nodiratime,nosuid,nodev,inline_xattr,discard,rw wait,check,encryptable=footer,length=-16384 | ||
/dev/block/platform/msm_sdcc.3/by-num/p2 /data/dalvik-cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check | ||
/dev/block/platform/msm_sdcc.3/by-num/p2 /data/dalvik-cache f2fs noatime,nodiratime,nosuid,nodev,inline_xattr,discard,rw wait,check | ||
|
||
# SD card | ||
/devices/platform/msm_sdcc.3/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard0:auto,noemulatedsd | ||
/devices/platform/msm_sdcc.3/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard1:auto,noemulatedsd | ||
|
||
# USB storage | ||
/devices/platform/msm_hsusb_host.0/usb1* auto auto defaults voldmanaged=usbdisk:auto | ||
d* auto auto defaults voldmanaged=usbdisk:auto,noemulatedsd | ||
|
||
# ZRAM | ||
/dev/block/zram0 none swap defaults zramsize=268435456 | ||
/dev/block/zram0 none swap defaults zramsize=268435456 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Android fstab file. | ||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags> | ||
/dev/block/mmcblk0p22 /system ext4 remount,ro,noatime,barrier=0 wait | ||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags> | ||
/dev/block/mmcblk0p22 /system ext4 remount,ro,noatime,barrier=0 wait |