原创 Android之MTP框架和流程分析(二)

一. MTP驅動註冊MTP驅動文件是drivers/usb/gadget/f_mtp.c。它通過下面的代碼會映射到文件節點"/dev/mtp_usb"中。1 static const char mtp_shortname[] = "mtp_