导出 iOS 本地音乐的流程

  1. iPhone 越狱并通过 SSH 连接 iPhone。

  2. 进入应用列表目录:

     cd /var/mobile/Containers/Data/Application/
    
  3. ls 命令可以看到很多目录:

     0281598F-8F0E-4931-8B7B-D8975E6CB022    86769757-0DF2-4B61-9D84-9C5A3955325D
     05197373-E3AF-4ABA-8282-FAF078F3F327    8B669FAD-CFD8-4060-83E6-895B5A01B1F0
     05FA29B0-A91C-4C6B-A901-2CC578B11F5A    8CB9BAFB-425C-4E8D-9644-4A8E5577B861
     062FC62C-3C2D-49EB-BC76-33AEF1464E18    90E7AB27-DF57-4ABD-88E9-A71EC80B1C4F
     0690236B-84F9-4FB5-8376-A289397F6CD4    921B3DEB-F3F9-4A54-AE66-5C28A137437E
     0AC9AD41-0A76-4FD8-BC72-649E5D7637F8    942478DF-091F-4A71-B29E-F757352C217D
     0C9609B0-E25D-44FB-B595-0C241AC9513E    955B80DC-3583-425D-B7C1-430FD0313608
     (省略)
    
  4. 通过 find . -name "*.mp3" 命令查找 mp3 文件:

     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-102619-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-1048971-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-1078365-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-1078368-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-109558-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-109566-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-109570-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-109579-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-110762-.mp3
     ./CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/128000-115331-.mp3
     (省略)
    

    由此推断 CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/ 中存放了下载好的音乐文件。

  5. /var/mobile/Media 目录下新建一个可识别的目录(例如 my-music):

     mkdir /var/mobile/Media/my-music
    
  6. 将下载的音乐文件拷贝到新建的目录中:

     cp -a /var/mobile/Containers/Data/Application/CBD0035E-2E87-417B-983D-1B963A0B5099/Documents/UserData/Download/done/ /var/mobile/Media/my-music/
    
  7. 通过 iMazing 等软件打开刚才的目录,即可导出。

Updated: