I've read several Stackoverflow threads but decided to ask the question again because most threads are outdated. Currently i've created Espresso Tests and i want to get some kind of performance data while the test runs and after its finished. As far as i know you can get those data with the dumpsys via adb. By far i cant figure out to get the data i want (meminfo for example) without having the "android.permission.DUMP".
Is there any way currently to get the permission for testing purposes? I would like to get these infos on real devices aswell as on Emulator. By far i tried to get the permission via code (run adb command), use the Espresso Grant Permission Rule class, put the permission in a debug AndoridManifest.xml but none of those solutions worked.
Can anyone help me?
Edit: I've asked this again because the other Threads are outdated and i hope for a solution that may have came up in the last years!