Moto G4通过MTP连接时无文件夹显示的解决求助
Hey there, let's tackle this MTP issue with your Moto G4 running Lineage 14.1 nightly—super frustrating when you can't transfer files, right? Here are some targeted fixes to work through:
Double-check USB Configuration in Developer Options
Even if you toggled between MTP and PTP, sometimes the setting doesn't stick properly. Head to Settings > Developer options, scroll to USB configuration, and explicitly select Media transfer protocol (MTP). Wait 10 seconds, then reconnect your phone to the computer.Restart Everything (Yes, Even the Cable)
Basic steps often resolve flaky connections:- Power off your Moto G4, wait 30 seconds, then boot it back up.
- Restart your computer too—sometimes USB driver glitches clear up with a reboot.
- Swap to a different USB cable (preferably the original one, since cheap third-party cables might only support charging) and use a direct motherboard USB port (skip USB hubs, they can cause connectivity issues).
Verify MTP Service is Running (Root/ADB Required)
Since you have root and ADB enabled, let's check if the MTP service is active:- Open a terminal on your phone, or run
adb shellfrom your computer's command line. - Run this command to check for the MTP process:
ps | grep mtp - If no results pop up, restart the service with:
su && service restart mtp
Wait a minute, then recheck the MTP connection on your computer.
- Open a terminal on your phone, or run
Fix Storage Permissions for System Apps
LineageOS can sometimes have permission quirks for core services:- Go to Settings > Apps, tap the three-dot menu in the top right, and select Show system apps.
- Find Media Storage and MTP Host in the list.
- For each app, go to Permissions and make sure Storage is enabled. If it was already on, toggle it off, wait 10 seconds, then toggle it back on—this resets the permission state.
Update or Roll Back Your LineageOS Build
Nightly builds are great but can have temporary bugs:- Check if a newer nightly is available (developers often push fixes quickly) and flash it (don't forget to back up your data first!).
- If the issue started after updating to the latest build, roll back to a previous nightly where MTP worked. Again, back up your data before doing this.
Test on a Different Computer
Rule out if the problem is with your computer's MTP setup:- Connect your phone to another Windows, macOS, or Linux machine. If MTP works there, the issue is with your original computer—you might need to reinstall MTP drivers or reset USB settings on that device.
Reformat Your SD Card (If You Use One)
If your SD card uses a non-compatible filesystem (like exFAT with specific flags), MTP might not recognize it:- Back up all data on the SD card first.
- Go to Settings > Storage > SD Card > Format, choose either Internal storage or Portable storage, and complete the format. Reconnect via MTP to see if it shows up.
Temporary Workaround: Use ADB File Transfer
While you debug the MTP issue, you can use ADB to transfer files reliably (since you already have ADB enabled):
- Push a file from your computer to the phone:
adb push /path/to/your/local/file /sdcard/ - Pull a file from the phone to your computer:
adb pull /sdcard/path/to/phone/file /your/local/computer/path/
内容的提问来源于stack exchange,提问作者user253802

