adb shell am start -S -n com.datalogic.scan2deploy/.MainActivity -e json-path /sdcard/File.json
Using a JSON file is actually not supported from the MainActivity, so this will not work.
adb shell am broadcast -a datalogic.scan2deploy.intent.action.START_SERVICE -n “com.datalogic.scan2deploy/.S2dServiceReceiver” --es encoding json --es json-path /sdcard/File.json
After placing a JSON at the specified location, I copy and pasted this command and it worked.
The most likely reason that this would not be working is if the UI of Scan2Deploy Agent is open.
To close the UI of Agent, press the square button on your navigation bar, find Agent and drag it up.
Or run adb shell pm clear com.datalogic.scan2deploy
Drew Hugentobler
L3 Mobile Computer Specialist Support Engineer