darshanparajuli / LogcatReader

A simple app for viewing logs on an android device.
MIT License
580 stars 103 forks source link

adb command not working with S10 (android 9) #33

Open th3geek opened 5 years ago

th3geek commented 5 years ago

Hi,

I'm getting the following error when trying to run the adb command (and yes I know it's all one line): java.lang.IllegalArgumentException: Unknown permission: android.permissions.READ_LOGS Any suggestions?

rubysm commented 4 years ago

same issues

bennieboj commented 4 years ago

adb shell pm grant com.dp.logcatapp android.permission.READ_LOGS works like a charm on my S10 running android 9, note the permission instead of permissions

xxKeith20xx commented 4 years ago

adb shell pm grant com.dp.logcatapp android.permission.READ_LOGS is the answer (OnePlus 6 on Android 10 here)

revolunet commented 4 years ago

running adb am force-stop com.dp.logcatapp after the permission grant fixes it for me

kalinjul commented 2 years ago

running adb am force-stop com.dp.logcatapp after the permission grant fixes it for me

Note that the correct command here would be adb shell am force-stop com.dp.logcatapp ;) - This helped me, thanks!