If Samsung Gallery keeps closing after a photo on One UI 9, a Samsung moderator traced it to the Trash component, SecTrashProvider, and said clearing its data and restarting can improve it. Open Settings > Apps > More > Filter and sort, turn on Show system apps, then tap SecTrashProvider > Storage > Clear data and restart the phone.

Samsung’s moderator also said this reset leaves the files in Trash and the photos and videos in Gallery untouched. Here’s what Samsung confirmed, the exact steps, how this differs from emptying Trash, and where to look for a permanent fix.

Samsung’s System Platform team says the Trash app can close on some devices updated to One UI 9 when you go straight from the camera to Gallery. The Gallery app then force-closes with it. Samsung described this on November 16, 2026, in reply to a Galaxy Z owner on its Korean community.

In that Samsung Community Korea thread, the owner said the problem started after the latest update. After taking a picture and tapping through to Gallery from the camera app, a message said the app and Gallery kept stopping, and Gallery shut down.

The post doesn’t name a specific Galaxy Z model or build number. The One UI 9 detail comes from the moderator, who said the problem affects some devices under certain conditions. At the time of writing, the owner hadn’t replied to say whether the fix worked.

Clear SecTrashProvider data and restart

SecTrashProvider is a system app, so it’s hidden from the regular app list. These are the moderator’s steps with the English menu names:

  1. Open Settings and tap Apps.
  2. Tap More, then Filter and sort.
  3. Turn on Show system apps.
  4. Find and tap SecTrashProvider in the list.
  5. Tap Storage, then Clear data.
  6. Confirm, then restart the phone.
Samsung app Storage reference with separate Clear data and Clear cache buttons
Samsung’s general App storage reference with Clear data and Clear cache side by side. Your screen will show SecTrashProvider. Source: Samsung Support.

Pick SecTrashProvider by name, then tap Clear data and leave Clear cache alone for this fix. If you’d like to understand what each button normally does, our Samsung clear cache vs clear data guide covers the difference for ordinary apps.

After the restart, take a test photo and jump to Gallery from the camera thumbnail again. That’s the exact action from the report, so it’s the fairest way to see if the reset helped.

Resetting SecTrashProvider is different from emptying Trash

These two actions sound alike but do different jobs. The SecTrashProvider reset clears the data of the system component behind Trash. Samsung’s moderator wrote that the files in Trash and the pictures and videos in Gallery aren’t deleted by it.

Emptying Trash is the opposite. It permanently deletes the pictures you pick. Samsung Canada’s Trash guide describes it as Gallery > Menu > Trash, touch and hold an item, add more or tap All, then Delete and Delete again to confirm.

So run the provider reset to fix the crash, and only empty Trash when you actually want those files gone. Samsung keeps deleted Gallery items in Trash for 30 days, and after that they’re removed for good.

Restore pictures you find in Trash

A second Korean report came from a Galaxy S24 Ultra owner. In that Galaxy S thread, they said photos wouldn’t delete after the update and the pictures already in Trash had disappeared. Another member suggested checking My Files, and the same moderator replied with the same SecTrashProvider steps.

The moderator’s wording in that reply only said the Trash app can close on some One UI 9 devices. Samsung didn’t say the S24 Ultra symptom and the Galaxy Z crash are the same bug, so treat it as a related report.

After the reset, check Trash and restore anything you still need:

  1. Open Gallery and tap the Menu icon with three lines.
  2. Tap Trash.
  3. Touch and hold a picture or video.
  4. Tap more thumbnails, or tap All at the top left.
  5. Tap Restore, or Restore all if you chose All.
Samsung Gallery Trash with one photo selected for restoration
A photo selected in Gallery Trash in Samsung Canada’s support example. Image: Samsung.

If a restored picture was edited before you deleted it, our guide to reverting Gallery edits and keeping both photos shows how to get the original back or keep both versions.

Check for a newer One UI 9 build

The moderator’s reply doesn’t mention a software fix or a release date for one. That makes the build number on your phone worth watching, because a later One UI 9 update is the most likely place a permanent fix would show up.

Look up your exact model in our Samsung Firmware Checker to see the latest build Samsung lists for it. If you’d rather get a ping, the Sam Updater Android app sends alerts when a new build appears. Then install it from Settings > Software update > Download and install.

A cloud copy of your photos also takes the stress out of these resets. If your Galaxy already has it, our Samsung Gallery Google sync guide covers the One UI 9 backup option inside Gallery.

FAQ

Does clearing SecTrashProvider data delete the photos in Trash?

No. Samsung’s System Platform moderator wrote that files in Trash and the photos and videos in the Gallery app are left untouched by this reset. Emptying Trash is a separate action inside Gallery. If a picture is important, it’s still sensible to make sure it has a backup copy before you clear any app data.

Is the Galaxy S24 Ultra photo deletion problem the same bug?

Samsung hasn’t confirmed that. An S24 Ultra owner reported that photos wouldn’t delete and Trash items vanished after updating. The same moderator replied with the identical SecTrashProvider reset, but described only the Trash app closing on some One UI 9 devices. Treat it as a related symptom until Samsung says more.

What did Samsung’s moderator ask owners to send if the reset fails?

A system log through Samsung Members. The moderator described opening Samsung Members, tapping Get help at the bottom, choosing the inquiries and error reports option, then Error report, and picking Always or Just this once for system log data. Make sure the system log option is checked in blue before you send it.

Was this guide helpful?

Your answer helps us keep it accurate.