I am writing a python script to process an image. I need to take automated screenshots. How can i do that with some kind of command ? No root acces. I am using termux and terminal emulator.

  • I did try imagemagick but it gives error – mustafa candan Oct 11 '18 at 9:55

You would need elevated privileges, at least of user 2000 (shell) or higher. Since the Android is not rooted, your best bet is to get adb running in wireless mode in your device. You would also have to load a compatible adb binary for your Android to connect to localhost via adb.

Once this have been achieved, run

adb shell screencap /sdcard/FILE_NAME.png

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.