1

I am running the following command wrap my application with valgrind

adb shell setprop wrap.com.mycompany.syam.simplecalc "logwrapper /data/local/start_valgrind.sh"

But it is failing with following error

setprop: Max 2 arguments

Anybody help me understand why am I getting this error? Isn't it supporting strings inside double quotes? And what is the fix for it?

Pendyala
  • 585
  • 1
  • 6
  • 17

2 Answers2

1
adb shell setprop wrap.com.mycompany.syam.simplecalc "logwrapper' '/data/local/start_valgrind.sh"
dippas
  • 58,591
  • 15
  • 114
  • 126
goufei096
  • 11
  • 1
0

That error is caused by space problem so this is your fixed answer:

adb shell setprop wrap.com.mycompany.syam.simplecalc "logwrapper/data/local/start_valgrind.sh"

Hope that helps