简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM