App Logs logcat listener #1876
-
How does it work? Sometimes App Logs is empty nothing is picked up How is it able to listen to another app without READ_LOGS permission |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Can't say what actually causes this issue without more information, but you can try the following things :
If it still doens't work, file a bug report with more details about the issue.
This is achieved using AndroidIDE's When you build an application in AndroidIDE, the
This works because the Here is a flowchart of the whole process (view on web): flowchart TD
A[Build Application in AndroidIDE] --> B[Launch Application]
B --> C[Start non-exported ContentProvider: LogSenderInstaller]
C --> D[Spawn Background Service: LogSenderService]
D --> E[Bind LogSenderService with AndroidIDE's LogReceiverService]
E --> F[Establish Socket Communication between Application and AndroidIDE]
F --> G[Read logcat lines in Application Service]
G --> H[Send logcat lines to AndroidIDE over Local Socket]
H --> I[Display logs in AndroidIDE's UI]
subgraph Notes
note1[READ_LOGS permission is not needed for an application to read its own logs.]
end
I -.-> note1
I hope this helps. |
Beta Was this translation helpful? Give feedback.
Can't say what actually causes this issue without more information, but you can try the following things :
debug
variant of your application that has been built with AndroidIDE.If it still doens't work, file a bug report with more details about the issue.
This is achieved using AndroidIDE's
logsender
module.When you build an application in AndroidIDE, the
LogSender
Gradle plugin is applied to the Android application modules (com.android.application
). Th…