Reputation: 577
I was trying to capture logs on my unrooted phone using Catlog. But I couldn't get the logs from the app that I am debugging because because Catlog don't have root permission. Is there any way to enable this permission?
Upvotes: 1
Views: 7497
Reputation: 577
We can give the permission from ADB, The ADB command to grant an application permission to read the logs is:
adb shell pm grant <pkg> android.permission.READ_LOGS
We this permission will be persisted as long as you uninstall and install back the app.
Upvotes: 3