Writing to external storage
I am automating an apk, whose source code is not accessible to me (actually I am not authorized to change it). Now when I run the test and write logs on the sdcard, it gives me permission denied. Giving WRITE_EXTERNAL_STORAGE permission in the manifest of my te开发者_如何转开发st application doesn't have any effect. But if I put permission in the app under test then I get write permission to write on the sdcard. My question, is it necessary to have permission in the app under test (not the test application). If possible, do I need to do something special to give permission through my test application without modifying the manifest of application under test?
as for now it is not possible because robotium drives the actual apk so any permission required is supposed to be provided to the application under test. i am also trying to create bridge through which we can get logs without needing to edit the app under test.
精彩评论