system ( com.Android google.com.gms ) share from gallery app suddenly stops working and crashes


Question

there is a prominent gallery app that I am using -f-stop .
been using it for very long time and never had this issue .
gallery app itself seems to be working but when I select more than one picture and invoke system share so I can share those with other apps like WhatsApp... everything crashes.
it gives me an option to view the app log crash in an email attachment, that it prepared to send to Google for feedback unfortunately selfish as it may sound, I cannot send that attachment to my email It just directly sends it without even keeping a sent copy in my Gmail. using some kind of a hack I pulled up all that log info and I am putting it in pastebin_with_crash_log_info



The relevant error is:



Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f08007a
at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:246)
at android.content.res.Resources.getDrawableForDensity(Resources.java:905)
at android.content.res.Resources.getDrawableForDensity(Resources.java:880)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.loadIconFromResource(ResolverActivity.java:669)


here are the more relevant details



crashing system share app concerned is



com.Android google.com.gms

Source file
ResourcesImpl.java
Source class
android.content.res.ResourcesImpl
Source method
getValueForDensity
Line number
246


os details



magisk rooted Android q project treble ROM

Answer

Considering that the error seems to be that an icon can't be loaded I would assume the following:



The sharing menu shows a list of apps to share the selected content with. This list shows for each app it's app icon plus the app name.



It looks like one of the installed apps, that is shown in the sharing apps list, has a problem loading the app icon. Unfortunately the error log has no indicator which app icon fails to load.



Unless you recently installed a system update the problem is caused by one specific app that has been installed or updated recently recently.



Note: The sharing list is AFAIK automatically generated by the content type to be shared. Each app contains in it's manifest rules and content types it can accept. Upon installation these information is AFAIR copied into a central system-wide XML file (don't remember the exact file name). Hence by modifying this file it would be possible to remove certain apps from the sharing menu, however this XML file is updated/modified if you install or update an app. Hence the manual changes may be overwritten frequently (I never tried this therefore I don't have any experience how long a modification can last in this XML file).


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