Arade
Arade

Reputation: 577

How to give root permission for Catlog on Android

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

Answers (1)

Arade
Arade

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

Related Questions