How to read android log cat programmatically for other applications

后端 未结 2 2052
南旧
南旧 2020-12-12 05:30

I have read that you can\'t read logs of other apps.Also that apps like App Lock constantly read logs to find which apps have started and then present their lock screen.So t

2条回答
  •  旧时难觅i
    2020-12-12 06:19

    As of JellyBean, you can no longer read anything in the LogCat that was not put there by your application.

    Prior to JellyBean, and post JellyBean for your own app, you can use the Runtime to execute command line arguments to retrieve the logcat

提交回复
热议问题