I\'m working on an app that uses Android\'s MediaMuxer for recording the screen. Using Crashlytics, a significant number of users have the \"Failed to stop the muxer\" crash, bu
So how am I supposed to collect those logs?
Generally, unless you are working for a device manufacturer, you don't collect those logs.
First, accessing LogCat at runtime has never been officially supported; hence, the clunky "fork logcat
" approach that you have to take.
Beyond that, you need the READ_LOGS
permission to get more than what you are. That permission has signature|privileged|development
for the protectionLevel
, meaning that ordinary apps cannot hold that permission.
This is for privacy reasons. READ_LOGS
gives you access to all of LogCat, and lots of apps (and some system processes) log information that may be sensitive.