Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit f079442

Browse files
committed
Extract vold from the phone
Extract vold and all of the required shared libraries from the phone. Add a copy of vold.fstab With these changes, the /sdcard partition is now mountable on the SGS2
1 parent d9c34e4 commit f079442

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed

extract-files.sh

+12
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,17 @@ COMMON_LIBS="
170170
libs5pjpeg.so
171171
libtvoutservice.so
172172
libtvoutinterface.so
173+
libdirencryption.so
174+
libext2_blkid.so
175+
libext2_com_err.so
176+
libext2_e2p.so
177+
libext2fs.so
178+
libext2_uuid.so
179+
libkeyutils.so
180+
libsec_devenc.so
181+
libsec_ecryptfs.so
182+
libsecfips.so
183+
libsec_km.so
173184
"
174185
175186
copy_files "$COMMON_LIBS" "system/lib" ""
@@ -186,6 +197,7 @@ COMMON_BINS="
186197
rild
187198
mediaserver
188199
servicemanager
200+
vold
189201
${HCDNAME}
190202
"
191203
copy_files "$COMMON_BINS" "system/bin" ""

galaxys2.mk

+3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ endif
103103
PRODUCT_COPY_FILES += \
104104
$(LOCAL_KERNEL):kernel
105105

106+
PRODUCT_COPY_FILES += \
107+
device/samsung/galaxys2/vold.fstab:system/etc/vold.fstab
108+
106109
# See comment at the top of this file. This is where the other
107110
# half of the device-specific product definition file takes care
108111
# of the aspects that require proprietary drivers that aren't

vold.fstab

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
## Vold 2.0 Generic fstab
2+
## - San Mehat ([email protected])
3+
##
4+
5+
#######################
6+
## Regular device mount
7+
##
8+
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
9+
## label - Label for the volume
10+
## mount_point - Where the volume will be mounted
11+
## part - Partition # (1 based), or 'auto' for first usable partition.
12+
## <sysfs_path> - List of sysfs paths to source devices
13+
## storage_struct - ex) series, "/mnt/sdcard/extStorages" / parallel
14+
######################
15+
# internal sdcard
16+
{
17+
storage_struct = cover, "/mnt/sdcard/external_sd","/mnt/sdcard/usbStorage"
18+
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
19+
discard = enable
20+
}
21+
dev_mount sdcard /mnt/sdcard 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
22+
23+
# external sdcard
24+
{
25+
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
26+
android_secure_containers = enable
27+
}
28+
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
29+
30+
#usb host device
31+
{
32+
storage_struct = series,"/mnt/sdcard/usbStorage"
33+
media_type = usb
34+
}
35+
dev_mount sda /mnt/sdcard/usbStorage/UsbDriveA auto /devices/platform/s3c_otghcd/usb
36+
37+
#usb host device
38+
{
39+
storage_struct = series,"/mnt/sdcard/usbStorage"
40+
media_type = usb
41+
}
42+
dev_mount sdb /mnt/sdcard/usbStorage/UsbDriveB auto /devices/platform/s3c_otghcd/usb
43+
44+
#usb host device
45+
{
46+
storage_struct = series,"/mnt/sdcard/usbStorage"
47+
media_type = usb
48+
}
49+
dev_mount sdc /mnt/sdcard/usbStorage/UsbDriveC auto /devices/platform/s3c_otghcd/usb
50+
51+
#usb host device
52+
{
53+
storage_struct = series,"/mnt/sdcard/usbStorage"
54+
media_type = usb
55+
}
56+
dev_mount sdd /mnt/sdcard/usbStorage/UsbDriveD auto /devices/platform/s3c_otghcd/usb
57+
58+
#usb host device
59+
{
60+
storage_struct = series,"/mnt/sdcard/usbStorage"
61+
media_type = usb
62+
}
63+
dev_mount sde /mnt/sdcard/usbStorage/UsbDriveE auto /devices/platform/s3c_otghcd/usb
64+
65+
#usb host device
66+
{
67+
storage_struct = series,"/mnt/sdcard/usbStorage"
68+
media_type = usb
69+
}
70+
dev_mount sdf /mnt/sdcard/usbStorage/UsbDriveF auto /devices/platform/s3c_otghcd/usb
71+
#EOF

0 commit comments

Comments
 (0)