[Samsung Galaxy S 5 Unified Development] curiousrom:
Sounds Crash When Changing Ringtone, Notification or Alarm

Thanks for reporting this Sounds app bug in 16.0 build 2019-01-09. :good::cool:

A link to your report was added to New S5 LineageOS 16.0 haggertk 2019-01-09 Build! - Report & Bugs.

I was able to replicate it on S5 G900M running haggertk's klte LineageOS 16.0 build 2019-01-09 + Open GApps ARM 9.0 Pico + Magisk v18.0 & it took me a while to figure it out as seen in the attachment: Settings > Sound > Advanced > press on either Phone ringtone or Default notification sound or Default alarm > and select the Sounds app > then select one of the folders & Sounds crashes.

The Sounds keeps stopping popup warning was disappearing so fast that I could not read it & had to use Lineage's screen Record app & play it back, pause & take a screenshot.

View attachment 4688826

"...KLTE version of haggertk's (20190109) ...pico gapps" - Gapps is the key here as Play Store updated the stock 16.0 System app Sounds version 1.0 (com.google.android.soundpicker) to 2.0.

To figure that out I went to > Settings > Apps & notifications > 3-dots > Show system > Sounds > Advanced & scroll to the bottom to see App installed from Google Play Store & version 2.0 (223598125).

As seen in the second screenshot I used App Freezer to find Sounds' path: /data/app/com.google.android.soundpicker. Note that Sounds 2.0 has 4 services while 1.0 has zero.

View attachment 4688827

After disabling Sounds in Apps & notifications & saying OK to the Replace this app with the factory version? the version changed to 1.0. Back in App Freezer the path was now changed to: /system/app/SoundPickerPrebuilt/SoundPickerPrebuilt.apk

After re-enabling Sounds I successfully changed the Ringtone with a simpler Sounds 1.0 as seen in the third attachment.

View attachment 4688828

I attached a logcat of the crash after updating Sounds again manually in Play Store in case [MENTION=2693412]haggertk[/MENTION] reads this post using the fast & easy SysLog after a fresh reboot.

For those interested you can unzip & open the logcat.log with Wordpad for example to keep the formatting & search for soundpicker to find errors like these:

Sorry for the clutter XDA app users as the Hide function does not work in the app.

01-17 18:45:38.811 E/AndroidRuntime( 5898): FATAL EXCEPTION: GLThread 345

01-17 18:45:38.811 E/AndroidRuntime( 5898): Process: com.google.android.soundpicker, PID: 5898

01-17 18:45:51.775 I/ActivityManager( 792): Killing 5898:com.google.android.soundpicker/u0a226 (adj 900): crash

01-17 18:45:51.819 W/SurfaceFlinger( 354): Attempting to destroy on removed layer: d25f432 Application Error: com.google.android.soundpicker#0

The Workarounds

Don't change the default sounds. ;)

Disable & Enable Sounds to return to stock then disable auto-update in Play Store & don't update Sounds.

Use the stock Media Storage app instead as seen in the first screenshot.

Use a file explorer & select your own Ringtone, Notification or Alarm sounds.

If you don't have app choices when you tap on Ringtone it's because you chose Always when selecting Sounds instead of Just once.

To fix that go to Settings > Apps & notifications > Default apps & remove Sounds.

If you don't see it there go to > Apps & notifications > 3-dots > Show system > Sounds > Advanced > Open by default > Clear Defaults.

***

My guess is that you don't use Play Store so your default Sounds 1.0 did not get updated or you are using an other app. Correct?

***