B4A-Bridge and Android 4.1+ logs

Erel

B4X founder
Staff member
Licensed User
Longtime User
Google has removed the READ_LOGS permission from Android 4.1+. This means that a running app cannot read any log messages except of its own messages.

This change affects B4A-Bridge which reads the logs and sends them to the IDE. It doesn't affect the logs when the device is connected in USB debugging mode.

To workaround this limitation, a new version of B4A-Bridge was released - v2.07. In this version B4A-Bridge opens a local UDP port (on Android 4.1+ only). Other Basic4android apps that run in debug mode will now send each log message to B4A-Bridge UDP port. B4A-Bridge writes the message to the log which is then sent to the IDE.
 
Last edited:

Alberto Michelis

Well-Known Member
Licensed User
Longtime User

Attachments

  • logs.png
    logs.png
    63.5 KB · Views: 300
Upvote 0

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Ok, may be I dont get how it works.
Then I guess that when the phone is connected to USB then the Log works even in realease mode,
then I assume the compile app is generating the logs waiting time.
Is this ok? does it impact perfomance?
I thought logs were generated only in debug mode.
Thanks
 
Upvote 0
Top