HushFeed icon indicating copy to clipboard operation
HushFeed copied to clipboard

bug: Download fails when saving video to MediaStore

Open JessyMona opened this issue 4 days ago • 4 comments

Hushfeed and TikTok versions

Version 0.85.0 for TikTok 47.9.3

What did you patch TikTok with?

Morphe Manager (the Android app)

Its version

Morphe Manager 2.8.0

Phone and Android version

Samsung Galaxy A7 (2018), Android 10

Which patches did you select?

Default patch selection, plus AMOLED dark theme, custom launcher icon/app name, and version-code override.

Where did it happen?

Downloads

What went wrong?

Video download fails when publishing to MediaStore

Environment

  • TikTok version: 47.9.3
  • Hushfeed version: 0.85.0
  • Android version: Android 10
  • Device: Samsung Galaxy A7 (2018) (SM-A750F)
  • Download quality: Highest

Description

Hushfeed successfully identifies the video download URL, but saving the video fails during the final publishing step to Android's MediaStore.

Steps to reproduce

  1. Install TikTok 47.9.3 with Hushfeed 0.85.0.
  2. Open any video.
  3. Attempt to download/save the video using Hushfeed.
  4. Wait for the download to finish.

Expected behavior

The video should successfully save to the selected download directory and become accessible in the gallery/filesystem.

Actual behavior

The download fails with the following exception:

"java.lang.IllegalArgumentException: Movement of [URI] which isn't part of well-defined collection not allowed"

The exception occurs inside "MediaFileWriter.publishForResult()".

The app also displays the following toast:

"Couldn't save. Try again, or choose Automatic."

Additional observations

  • The downloader falls back to "h264PlayAddr" when the original video address is unavailable.
  • The failure appears to occur during the MediaStore publishing stage, rather than video URL discovery.
  • The diagnostic log showed the download destination as "Download/TikTok" (another log showed "DCIM/TikTok").

I've attached a redacted diagnostic report containing the relevant error and stack trace.

What did you tap, in order?

  1. Open TikTok.
  2. Open any video.
  3. Attempt to download/save the video using Hushfeed.
  4. Wait for the download/save operation to finish.
  5. The save fails with the error shown in the diagnostic report.

Diagnostic report

MORPHE DIAGNOSTIC EXCERPT (REDACTED / MINIMIZED FOR PUBLIC BUG REPORT)

TikTok package: com.zhiliaoapp.musically.morphe TikTok version: 47.9.3 Hushfeed version: 0.85.0 Android version: 10 Device: Samsung Galaxy A7 (2018)

Download setting: Video quality: Highest Destination shown in log: Download/TikTok

Relevant failure log (2026-11-29): 2026-11-29T10:24:36.425Z | Showing toast: Saving video to Download/TikTok 2026-11-29T10:24:38.259Z | Hushfeed-MediaJob | SaveProgress | ERROR | File 1 of 4 was not saved java.lang.IllegalArgumentException: Movement of [URL REDACTED] which isn't part of well-defined collection not allowed at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140) at android.content.ContentProviderProxy.update(ContentProviderNative.java:578) at android.content.ContentResolver.update(ContentResolver.java:2000) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:124) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:76) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:70) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$uPE37R1lHM_Qvy701eIsmqNEHi0(VideoDownloads.java:426) at app.morphe.extension.tiktok.download.VideoDownloads$$ExternalSyntheticLambda1.save(R8$$SyntheticClass:0) at app.morphe.extension.tiktok.download.SaveProgress.$r8$lambda$sfo67Z8fGJsTOecxAT3lVrdTCfU(SaveProgress.java:363) at app.morphe.extension.tiktok.download.SaveProgress$$ExternalSyntheticLambda4.run(R8$$SyntheticClass:0) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:64) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:56) at app.morphe.extension.tiktok.download.SaveProgress.run(SaveProgress.java:351) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$U6zWdI2dpHSIhcdQxHneOdfouH0(VideoDownloads.java:376) at app.morphe.extension.tiktok.download.VideoDownloads$$ExternalSyntheticLambda7.accept(R8$$SyntheticClass:0) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$MsZcYhGjgYFMBvJbpPJGIjIXVpI(VideoDownloads.java:521) at app.morphe.extension.tiktok.download.VideoDownloads$$ExternalSyntheticLambda9.run(R8$$SyntheticClass:0) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:64) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:56) at app.morphe.extension.tiktok.download.MediaJobScheduler$Job.run(MediaJobScheduler.java:184) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919)

2026-11-29T10:24:38.283Z | Showing toast: Couldn't save. Try again, or choose Automatic.

Note: Unrelated diagnostics, account-specific settings, account/storage details, API request statistics, and creator/video identifiers were omitted.

Anything else?

No response

Before you send it

  • [x] I searched the open and closed bug reports and this isn't one of them.
  • [x] I answered every question above as well as I could.

JessyMona avatar Nov 29 '26 11:11 JessyMona

That log made this easy to find. Android 10 won't let an app rename a file in Download, and Hushfeed renames every save right after writing it, so they all failed there. I've changed that for Android 10.

For now, Video destination set to DCIM/TikTok should work. Did the DCIM/TikTok save in your other log go through?

SysAdminDoc avatar Nov 29 '26 16:11 SysAdminDoc

That log made this easy to find. Android 10 won't let an app rename a file in Download, and Hushfeed renames every save right after writing it, so they all failed there. I've changed that for Android 10.

For now, Video destination set to DCIM/TikTok should work. Did the DCIM/TikTok save in your other log go through?

I tested it with Video destination set to DCIM/TikTok, but it still fails. The new log shows the same IllegalArgumentException in MediaFileWriter.publishForResult() at line 124 when ContentResolver.update() is called: "Movement of [URI] which isn't part of well-defined collection not allowed" It still shows "File 1 of 4 was not saved." I've attached the updated diagnostic report

MORPHE DIAGNOSTIC REPORT (REDACTED) TikTok: 47.9.3 Morphe/Hushfeed: 0.85.0 Generated: 2026-11-29 17:15:50 UTC Test: destination set to DCIM/TikTok; download still failed. Account identifiers, unrelated settings, storage details, network counters, and other activity omitted.

[DOWNLOAD FAILURE] downloads | 2026-11-29T17:15:16.826Z | main | DownloadsPatch | INFO | [Morphe Downloads] video_path="DCIM/TikTok" other | 2026-11-29T17:15:16.851Z | main | Utils | DEBUG | Showing toast: Saving video to Download/TikTok errors | 2026-11-29T17:15:21.989Z | Hushfeed-MediaJob | SaveProgress | ERROR | File 1 of 4 was not saved java.lang.IllegalArgumentException: Movement of [URI REDACTED] which isn't part of well-defined collection not allowed at android.content.ContentProviderProxy.update(ContentProviderNative.java:578) at android.content.ContentResolver.update(ContentResolver.java:2000) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:124) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:76) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:70) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$uPE37R1lHM_Qvy701eIsmqNEHi0(VideoDownloads.java:426) at app.morphe.extension.tiktok.download.SaveProgress.$r8$lambda$sfo67Z8fGJsTOecxAT3lVrdTCfU(SaveProgress.java:363) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:64) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:56) at app.morphe.extension.tiktok.download.SaveProgress.run(SaveProgress.java:351) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$U6zWdI2dpHSIhcdQxHneOdfouH0(VideoDownloads.java:376) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$MsZcYhGjgYFMBvJbpPJGIjIXVpI(VideoDownloads.java:521) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:64) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:56) at app.morphe.extension.tiktok.download.MediaJobScheduler$Job.run(MediaJobScheduler.java:184) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919) other | 2026-11-29T17:15:22.018Z | main | Utils | DEBUG | Showing toast: SaveProgress: File 1 of 4 was not saved java.lang.IllegalArgumentException: Movement of [URI REDACTED] which isn't part of well-defined collection not allowed at android.content.ContentProviderProxy.update(ContentProviderNative.java:578) at android.content.ContentResolver.update(ContentResolver.java:2000) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:124) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:76) at app.morphe.extension.tiktok.download.MediaFileWriter.publishForResult(MediaFileWriter.java:70) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$uPE37R1lHM_Qvy701eIsmqNEHi0(VideoDownloads.java:426) at app.morphe.extension.tiktok.download.SaveProgress.$r8$lambda$sfo67Z8fGJsTOecxAT3lVrdTCfU(SaveProgress.java:363) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:64) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:56) at app.morphe.extension.tiktok.download.SaveProgress.run(SaveProgress.java:351) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$U6zWdI2dpHSIhcdQxHneOdfouH0(VideoDownloads.java:376) at app.morphe.extension.tiktok.download.VideoDownloads.$r8$lambda$MsZcYhGjgYFMBvJbpPJGIjIXVpI(VideoDownloads.java:521) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:64) at app.morphe.extension.tiktok.download.MediaBudget.runWithJobDeadline(MediaBudget.java:56) at app.morphe.extension.tiktok.download.MediaJobScheduler$Job.run(MediaJobScheduler.java:184) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919) other | 2026-11-29T17:15:22.057Z | main | Utils | DEBUG | Showing toast: Couldn't save. Try again, or choose Automatic. settings | 2026-11-29T17:15:44.945Z | main | AbstractPreferenceFragment | DEBUG | Preference changed: morphe_debug

JessyMona avatar Nov 29 '26 17:11 JessyMona

Ah, now I see why. With Save details beside the video or Save subtitles beside videos on, Hushfeed moves the video into Download/TikTok so the extra file can sit next to it (Android 10 only takes text files in Download), so it ended up in the broken folder anyway. Turning those two off should let DCIM/TikTok work until the update.

SysAdminDoc avatar Nov 29 '26 19:11 SysAdminDoc

Turning both of them off made downloading work, thanks so much Thanks for helping!

JessyMona avatar Nov 30 '26 01:11 JessyMona