1 min readJan 15, 2019
Savelii, I read about ending up with :Metrica
here:
processInfo.pid == currentPid && processInfo.processName.endsWith(":Metrica")
It is predicate from your first example of first comment.
According to pulling whole Stetho library. Probably I didn’t understand you correctly. I suppose now, you propose just to copy-pase that function :)
As I said earlier, your solution is working, too. So it is up to you to choose more appropriate way for your development process.
P.S.: You can also check this discussion in terms of usage getRunningAppProcesses()
method.