Tutorial ADB command
To use the different app folow this tutorial
Step 1 : ADB on pc
Download the abd program for your system device from this link Xda dev.
Execute commande line from repertory
[see the video til 00:21]
Open the command prompt from the file folder that contains the extracted downloads. To do this, press the windows key and type cmd. When the prompt opens, type cd followed by folder your downloaded ADB to
MAKE SURE YOUR APP IS INSTALLED BEFORE
Step 2 : Set Developer Mode
Enable Developer Mode: Go to Android Settings -> About Phone and look for the Build Number option. Touch it multiple times until developer mode is enabled.
Enable USB Debugging: Go to Android Settings -> and look for the Developer Options option. In there, enable the USB debugging option.
Step 3 : Connect your phone to your PC
Connect you phone to you pc and enable transfert file option
Step 4 : Write command
Write the permission inside the cmd of windows :
adb shell pm grant name.package android.permission.READ_LOGSadb shell am force-stop name.package
See the video from 00:21 to the end
Exemple of command :
adb shell pm grant com.abde.lockmyshelf android.permission.READ_LOGS
Step 5 : Prompt permission from your phone
Look on your phone. A prompt should show up asking you to allow your phone to be debugged by your PC. Accept this