We have a use case where we want to remotely collect system logs of Android 7 devices (and probably Android 8 in future). These are not consumer devices and we are using them for our business purpose only.
On searching this problem all links are pointing to using adb logcat
over USB. However, it is not possible for us since we don't have physical access to our devices. I tried running logcat
as a process and I was able to fetch system logs. However, this kind of sounds like a hack. Is there any API or any official way to gather system logs programatically from Android App.
Example of running logcat
process is here: Read logcat programmatically within application
Thanks