Because the new filesystem source uses vold as the SD card auto-scaling program, the mountd program is used to launch the program. The following describes how to use mountd to upload an SD card.
1. Modify system/CORE/rootdir/init. RC kernel as follows. Mask the vold program and enable mountd.
# Service vold/system/bin/vold
# Socket vold stream 0660 root Mount
Service mountd/system/bin/mountd
Socket mountd stream 0660 root Mount
2. Add mountd. conf in system/CORE/rootdir/Android. mk to configure attachment.
Copy_from: = \
ETC/mountd. conf \
ETC/hosts. conf \
ETC/init. Goldfish. sh \
ETC/hosts
3. Enable the mountd component selection and modify system \ core \ mountd \ Android. mk labels as follows:
Local_path: = $ (call my-DIR)
Include $ (clear_vars)
Local_src_files: = \
Automount. c \
Processkiller. c \
Server. c \
Mountd. c \
ASEC. c \
Logwrapper. c
Local_module: = mountd
Local_c_includes: = $ (kernel_headers)
Local_cflags: =-dcreate_mount_points = 0
Local_shared_libraries: = libcutils
Include $ (build_executable)