Android Question Get logs on device (without USB Debugging/B4A Bridge) for ICS and earlier

moster67

Expert
Licensed User
Longtime User
I need to develop a monitoring app ro read (and save) the systems-logs on a device with IceCreamSandwich installed (thus before Jelly Bean and less log-data available).

I read somewhere there are apps which can get the logs directly on the device without connecting the USB (or using B4ABridge).
Basically what I want to do is to get the system-logs directly on the device.

Is this possible? Any hints/links to help me?
Thanks.

Edit: unfortunately I cannot connect to the device using USB or B4A Bridge
Edit2: I am not even able to enable Developer options on the device
 
Last edited:

moster67

Expert
Licensed User
Longtime User
The device is rather "closed" but fortunately I can install apps using a USB stick or by downloading Apk:s. The only stupid thing is that before installing the apk, I have to give it a certain name (always the same name) and remember to delete the previous apk (so apk-name does not clash in the download folder). I thought this fact would prevent me from using B4A Bridge but on seconds thoughts since you have published the source code of B4A Bridge, I might be able to modify the code to adhere to my needs and this would mean I could develop directly with the device using B4A. Ideal would be if I could find the B4A sources for the old bluetooth version of B4A-bridge since wifi can be tricky in my garage :)

Anyway, that was not really the point of my question; I still need to read the system-logs from the device since I will look for keywords in the logs to trigger some other code. But since I wrote my post yesterday, I found out about the LogCat class in the Phone-library. Somehow I missed it when I searched the forum. I think this will satisfy my needs. I found a similar app which reads the logs directly on the device and which works fine on my device, So using your LogCat class should probably work fine.
 
Last edited:
Upvote 0
Top