Android, Logcat and BufferedReader - no logs

后端 未结 1 1466
说谎
说谎 2021-01-23 10:59

I\'m making an application, which must show me in logs which applications I start on device. I use logcat ActivityManager:I *:S and it doing this well.. at some dev

相关标签:
1条回答
  • 2021-01-23 11:07

    What is this logcat -c> this will Clears (flushes) the entire log and exits.

    There are only V,D,I,W,E & WTF :-) Six type of logcat category

    change it to Runtime.getRuntime().exec("logcat -e"); Link here:

    EDIT: There is an problem in Reading in jelly bean link here

    READ_LOGS permission on Jelly Beans (Android 4.1) will not be granted anymore to normal apps.

    Apps are only allow to read their own logs.

    See for more information

    You could try to implement a function to grant yourself READ_LOGS permission with for users with rooted devices.

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