Is it safe to uninstall AudioFX from CyanogenMod 13?


Question

Background:



I recently upgraded a Samsung Galaxy S4 from Cyanogenmod 11 (KitKat) to Cyanogenmod 13 (Marshmallow). Everything seems to work fine except that AudioFX crashes several times in a row ("Unfortunately AudioFX has stopped working").



Since the crash message grabs the focus and this happens easily 4 to 6 times in a row, it is very disruptive. Oddly, AudioFX crashes have only happened while I am using Ingress: AudioFX doesn't always crash while I am using Ingress, but it only crashes while I am using Ingress. There doesn't seem to be any pattern to the crashes in terms of what I am doing or what Ingress is doing just before the crash happens.



I grabbed a logcat to see the specific error messages, and here is a representative crash log:



--------- beginning of crash
06-30 10:02:33.418 1425 1425 E AndroidRuntime: FATAL EXCEPTION: main
06-30 10:02:33.418 1425 1425 E AndroidRuntime: Process: org.cyanogenmod.audiofx, PID: 1425
06-30 10:02:33.418 1425 1425 E AndroidRuntime: Theme: themes:{ default=overlay:com.material.black.theme, com.android.systemui=overlay:com.material.black.theme, com.android.systemui.navbar=overlay:com.material.black.theme }
06-30 10:02:33.418 1425 1425 E AndroidRuntime: java.lang.RuntimeException: Unable to start service org.cyanogenmod.audiofx.HeadsetService@bf433a3 with Intent { act=cyanogenmod.intent.action.ACTION_AUDIO_SESSIONS_CHANGED cmp=org.cyanogenmod.audiofx/.HeadsetService (has extras) } : java.lang.RuntimeException: Cannot initialize effect engine for type: 0bed4300-ddd6-11db-8f34-0002a5d5c51b Error: -3
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3061)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.app.ActivityThread.-wrap17(ActivityThread.java)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1461)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5461)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: Caused by: java.lang.RuntimeException: Cannot initialize effect engine for type: 0bed4300-ddd6-11db-8f34-0002a5d5c51b Error: -3
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.media.audiofx.AudioEffect.<init>(AudioEffect.java:411)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.media.audiofx.Equalizer.<init>(Equalizer.java:139)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at org.cyanogenmod.audiofx.HeadsetService$EffectSet.<init>(HeadsetService.java:95)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at org.cyanogenmod.audiofx.HeadsetService.addSession(HeadsetService.java:208)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at org.cyanogenmod.audiofx.HeadsetService.addSession(HeadsetService.java:242)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at org.cyanogenmod.audiofx.HeadsetService.onStartCommand(HeadsetService.java:445)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3044)
06-30 10:02:33.418 1425 1425 E AndroidRuntime: ... 8 more


Troubleshooting steps I have taken are:




  • reboot the phone

  • disable AudioFX from within the app

  • clearing the AudioFX cache

  • setting up an AudioFX profile for every sound output device



None of these have prevented or reduced AudioFX crashes. I cannot disable the app from within Android (only from the app itself) since it is marked as a system app. I have looked at apps that uninstall system apps, they are listing AudioFX as a "Key Module."



The Question:




  1. Is it safe to uninstall AudioFX?

  2. Does AudioFX need to be replaced by another equivalent app?


Answer

According to this, AudioFX is completely safe to uninstall from CM13.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes