Collect logs from system classes

后端 未结 1 1202
礼貌的吻别
礼貌的吻别 2021-01-26 11:12

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

相关标签:
1条回答
  • 2021-01-26 11:31

    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.

    0 讨论(0)
提交回复
热议问题