怎么在文件管理器上找到otg文件夹

2020-06-28 教育 456阅读
修改frameworks/base/services/core/java/com/android/server/MountService.java文件中的onVolumeCreatedLocked函数将如下行
// Adoptable public disks are visible to apps, since they meet
// public API requirement of being in a stable location.
if (vol.disk.isAdoptable() || vol.isPhoneStorage()) {
vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE;
}
改成
// Adoptable public disks are visible to apps, since they meet
// public API requirement of being in a stable location.
if (vol.disk.isAdoptable() || vol.isPhoneStorage() || vol.isUSBOTG()) {
//额外增加USBOTG
vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE;
}
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com