Some time ago, I made a few brief analyses on the Android SDCard unmount process. Since it was just a conversation on paper and there was no actual follow-up, there may be some misleading or minor errors. Today, I reorganized my mind and analyzed the mount process again.Outline• How does the android system boot and listen to the mount service?• Which directory of the default mount point is in the Android system?• Vold.
, only the 128-bit key is reencrypted and stored. (Changing user PIN/password/mode will not cause user data to be re-encrypted ). Note that the managed devices may be subject to PIN, mode, or password restrictions.
Encryption is managed by init and vold. Init calls vold and vold sets the attribute in init to trigger the event. Other parts of the system also work
The SD card cannot be automatically mounted during the migration of Android to the platform. Check the related information. In android2.3, the vold program is responsible for checking the sysfs File System of the kernel. After the SD card is inserted, it is automatically mounted. There is a vold under the file system directory/system/etc. fstab file, which is an
.
========================================================== ========================================================== ====================================
For Android system sdcard development, the main work is as follows:
(1) After kernel driver development, the sdcard system will display relevant information each time it is inserted and pulled out, and the sdcard can be manually mounted.
(2) Android sdcard mounting is mainly completed by vold. Th
This paper illustrates the method of Android2.3 to realize the automatic mounting of SD card and U disk. Share to everyone for your reference, specific as follows:
The SD card is always not mounted automatically when porting the android2.3 on the s3c6410 platform. Check the relevant information, know in android2.3 is the Vold program is responsible for checking the kernel of the Sysfs file system, found that there is an SD card inserted, automatic mo
The hardware engineer built a USB hub line on the basis of sugar-Standard
Later, he made the USB interface into the A20 sugar-cubieboard 2, so when the original IMG was burned in, the U port did not respond, only one port can use the mouse.
According to the information, the android system automatically mounts the USB flash disk, which is related to a file named vold. fstab.
So find./-name "
The previous http://www.bkjia.com/kf/201203/124631.html talked about sending the uevent command to the onEvent of NetlinkHandler through NetlinkManager. The Code is as follows:Void NetlinkHandler: onEvent (NetlinkEvent * evt ){VolumeManager * vm = VolumeManager: Instance ();Const char * subsys = evt-> getSubsystem ();
If (! Subsys ){SLOGW ("No subsystem found in netlink event ");Return;}SLOGD ("NetlinkHandler: OnEvent subsys values is % s", subsys );If (! Strcmp (subsys, "block ")){SLOGD ("Netli
I always thought that the automatic mounting of Android SD card is implemented in Vold, and its configuration file is easily found on the Internet which is system/etc/vold. in fstab, the configuration file is Mount, which is generally as follows:
Dev_mount sdcard/mnt/sdcard 3/devices/platform/sc65-sdhci.0/mmc_host/mmc0/mmc0: 0001/block/mmcblk0 nonremovable, en
for the command to finish, and then return to the shell's termination state.If the shell cannot be executed,Then the Pclose () returns the same termination status as the shell has executed exit.Pclose (FP);}while (0);
Method Two:
Analyze the return information for the Cat/system/etc/vold.fstab command, for example:
Copy Code code as follows:
$ cat/system/etc/vold.fstab
# # Vold 2.0 fstab for
, and does not need to implement a service derived class. Servicemanager is only used within the Android platform.
Rockie's Android porting Guide (4) -- add SD card to your systemRockie ChengAndorid use vold to manage SD card and it is easy to use.But I meet into troubles and finally find that the real problem is in the Linux kernel.Thanks to the android mail list.Part I (kernel)(1) make sure thus Kernel configuration in MMC driverConfig_mm
Recently, I am working on a mobile phone project. Every time I use a ZIP package for upgrade, I need to copy it to the SD card before upgrading it from the SD card. The SD card is hard to find. It is troublesome to unload it from another mobile phone every time and install it after upgrade. Since internal storage is supported, why cannot I upgrade it from the internal storage? It seems that Huawei and other mobile phones support this function.
Go to recovery and check that built-in SD is not mou
not very familiar with the analysis in some places, but as a driver user and adapter, as the university teacher said, I don't have to know how to come, just know how to use it. Therefore, after analyzing the USB Mount-related kernel drivers, it is obvious that the most important thing is the parameter configuration process in the mass_storage_function_init function. determine the number of Luns and their respective attributes. Then the initialization can be completed in the kernel structure, an
Author: gzshun. Original Works. Reprinted, please indicate the source!Source: http://blog.csdn.net/gzshun
This series mainly follows the android SD card mounting process, from vold to framework, and then from framework to UI. Familiar with C/C ++ written by GoogleSource codeTo improve the design andCodeThanks to Google for providing Android, an open-source mobile phone operating system, which gives you the opportunity to understand the implementatio
the frame layer.
Recorded on February 16
Certificate ----------------------------------------------------------------------------------------------------------------------------------------
Check the relevant information, and the source code to find the related category of USB connection:
Find the following categories in the USB folder under SYSTEM level apk-systemui.apk:
Storagenotification. Java
Usbstorageactivity. Java
This is another normal log information: The ellipsis is other log infor
Tags: linux sedSED powerful text Processing tool with a working flow of roughly the followingCommon Options Description
-e-f-h or--help display Help.-N or--quiet or--silent only show results after script processing.-V or--version displays version information.
Operation Command:
A: New, a can be followed by a string, and these strings will appear in a new line (the current next line) ~C: Replace, C can be followed by strings, these strings can replace the line between N1,N2
Reference wiki: http://www.nitdroid.com/index.php? Title = talk: nitdroid_project # install_to_internal_memory
Download nitdroid to idea? Topic = 1044.0 introduction to download related files
Installing emmc will cause SD card mounting problems and need to be modified/System/etc/vold. fstab file:
Dev_mount sdcard/sdcard 1/devices/platform/mmci-omap-hs.0/mmc_host/mmc0
Dev_mount sdcard_ext/ext_s
resolve to the same location, possiblythrough a symlink. If a device adjusts the location of External Storage betweenplatform updates, symlinks shoshould be created so that old paths continue working.
As an example, here's the storage configuration for xoom, which uses a fusedaemon to provide primary external storage, and between des a physical SD card assecondary External Storage:
Vold. fstab
Storage_l
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.