From 8317d30ceb0d16e100adda0b919feed493470138 Mon Sep 17 00:00:00 2001 From: Akilesh Date: Sun, 8 Mar 2020 11:57:24 +0530 Subject: [PATCH] Fix incorrect adb command (#41) Note: App will be force stopped only if the permission has been granted successfully. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index cd3a19e7..13111321 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,5 @@ A simple app for viewing logs on an android device. Use ADB to grant `android.permission.READ_LOGS` to LogCatReader. ```sh -adb shell pm grant com.dp.logcatapp android.permission.READ_LOGS -adb am force-stop com.dp.logcatapp +adb shell "pm grant com.dp.logcatapp android.permission.READ_LOGS && am force-stop com.dp.logcatapp" ```