RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

Missing Permission for taking screenshoots #860

Open AsixJin opened 7 years ago

AsixJin commented 7 years ago
This line was missing from the manifest so anything on marshmallow and above aren't able to take screenshots until this was added.
retryer commented 7 years ago

Create a separate androidTest manifest for com.yourpackage.test that includes the READ.EXT... and WRITE.EXT... initially you need to install the app via pushing the .apk to the device /tmp/com.yourpackage and then"adb shell pm -rg /tmp/com.yourpackage ". Then issue "adb shell pm grant com.yourpgk android.permissions.REAd. .... " repeat for WRITE and then repeat both for com.yourpckg.test . Once done on a device all will wokr normally. Sry for the unstructured format , but this is writing in a hurry :) good luck fellaz !