Android Appium TestNG scripts not able to auto grant permission when running in Amazon device farm

I have some issues running Appium on Amazon device farm. “autoGrantpermission” capability in Appium for permissions approval while installing app on android is not working on Amazon Device farm. The same script works fine on physical android device. If AWS does not take any of the appium capabilities into consideration while running the tests, is there any other alternative way to successfully run the tests in AWS, by bypassing these permission issues?
Any clue or suggestion is highly appreciated!

Error from Amazon device farm:

testcase_android failed: An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: App never started (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 49.46 seconds Build info: version: ‘2.53.0’, revision: ‘35ae25b1534ae328c771e0856c93e187490ca824’, time: ‘2016-03-15 10:43:46’ System info: host: ‘ip-172-31-13-65’, ip: ‘’, ‘Linux’, os.arch: ‘amd64’, os.version: ‘3.13.0-53-generic’, java.version: ‘1.8.0_131’ Driver info:

Warm regards,
Munna Mathew