LogcatReporter | Android library that sends the Logcat log
kandi X-RAY | LogcatReporter Summary
kandi X-RAY | LogcatReporter Summary
This library sends the Logcat log to Crashlytics when your app crashes. Having more information about a crash is never a bad thing, right?. Yes, you could change all your Log.x() commands to Crashlytics.log(), but that's a waste of time. Also, what about system logs or third-party libraries which you can not change? This library fixes this problem.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Install the LogcatReporter
- Installs the logcat reporter
- Send a logcat to the application
- Initializes the activity UI
- Record an exception with logcat
LogcatReporter Key Features
LogcatReporter Examples and Code Snippets
Community Discussions
Trending Discussions on LogcatReporter
QUESTION
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, but I can't reproduce it locally on any of my devices. According to another question, the MPEG4Writer logs generated while MediaMuxer is running should indicate what the source of the problem is, but since I'm unable to reproduce it locally, I need to collect those logs remotely and pass them over to Crashlytics.
So here's my problem: MediaMuxer and MPEG4Writer are system classes, so obviously I can't edit them to add Crashlytics.log() lines. I've thought of having the app read the Logcat output and storing all entries containing MPEG4Writer, which are then sent to Crashlytics if the muxer crashes, using this implementation as a base. Here's my code:
...ANSWER
Answered 2018-May-07 at 15:41So 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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LogcatReporter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page