路径:
/frameworks/av / media/mtp/MtpServer.cpp
void MtpServer::addStorage(MtpStorage* storage) {
Mutex::Autolock autoLock(mMutex);
// add test, avoid show two T card.
if(hasStorage(storage->getStorageID()))
return;
mStorages.push(storage);
sendStoreAdded(storage->getStorageID());
}