Not all data shown when Android logcat is read programatically

前端 未结 2 1545
旧巷少年郎
旧巷少年郎 2020-12-03 15:41

I have such a problem, I try to get data from logcat programatically. permission has also been added to manifest file:



        
2条回答
  •  不知归路
    2020-12-03 16:14

    From Android Jelly Bean, applications cannot read log entries from other applications, unless your device is rooted and you read the logs as superuser.

    So basically... This is the expected behavior.

    I could not find any official statement in the Android documentation (someone can edit this answer if they do), but you might be interested in having a look at this answer: https://android.stackexchange.com/questions/28857/how-can-i-access-android-log-files-on-my-nexus-7-without-root-access

提交回复
热议问题