No new logs are output when app is reinstalled
I noticed that pidcat does not show any new output when I rebuild the application from Android Studio and reinstall it onto the connected device. I then have to quit and restart pidcat. This will show me the latest logs.
I remember that this reconnect was not needed earlier. Can someone confirm or explain this phenomenon?
I don't see this behavior. Do you see the read process death line in pidcat still? Please paste the line from logcat where the new process is being started.
I just realized this is not happening on all computers I work with. I will check in a few hours on the particular machine and check if it is happening with a particular app only.
I was able to reproduce the behavior with another application. So I ran python pidcat.py with or without a package specifier (no difference). The first time all debug output from the applications appears. When I rebuild the application with Android Studio while letting pidcat run there is no output anymore when the application starts up again.
When I re-install the same .apk via adb the log output works again. So it seems to be specific to Android Studio. I use the latest version which dates to 1.1 Preview 2 as of today.
What exactly do you mean by "read process death line"?
Are you sure Android Studio logcat is not enabled? Normally, when you install an app from AS it opens the Android/logcat tab. It tends to steal logs from other logcat processes (here pidcat) when active.
EDIT: I can confirm this happens with Android Studio even with logcat off. It also happens whenever I execute:
$ adb install -r <apk>
Pidcat gives me a Process <package name> (PID: 9931) ended and nothing more. ^C and re-executing pidcat gets things flowing again.
I'm using ADB 1.0.32 with a Samsung SM-T230NU.
Hmm I switched to a HTC phone and the logs continue.