I am trying to pass the output of a linux command to another command as an argument in Android debugging.
Here is the steps I want to combine .
- Finding out the binary path using - adb shell pm path com.test.example- The output being : - package:/data/app/test.apk
- Strip first 9 characters from the output using - cut -c 9-- The output being - /data/app/test.apk
- Use the output of 2nd in my 3rd command - adb pull
I tried doing something like :
 adb shell pm path com.test.example | cut -c 9- | adb pull -
But this doesn't work. Can someone suggest why and what would be the correct solution or a better approach?
 
     
     
    