Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb shell screencap - "permission denied"

I have problem with creating screenshot on Samsung Galaxy Young Duos phone - Android 2.3.6.

I use this code for other devices:

adb -s $devi shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > $devi/Screen.png

And this is correctly working on other devices (Samsung Galaxy S3, Asus Nexus 7, Asus ME371MG - Android 4.X)

I tried other variants from this page without success.

There is error "permission denied" on that Samsung Young. Debug mode is set and Testdroid test on this device is able to do screenshots. And SDCard is inserted into this phone.

like image 968
CD_Jojn Avatar asked Jan 13 '14 08:01

CD_Jojn


People also ask

How do I fix denied permission on ADB?

The reason for "permission denied" is because your Android machine has not been correctly rooted. Did you see $ after you started adb shell ? If you correctly rooted your machine, you would have seen # instead. If you see the $ , try entering Super User mode by typing su .

What are adb shell commands?

Android Shell Commands. ADB is Android Debug Bridge which is a command line utility included with Google's Android SDK. It provides a terminal interface to control your Android device connected to a computer using a USB. ADB can be used to run shell commands, transfer files, install/uninstall apps, reboot and more.


2 Answers

Here is solution including how-to document.

https://code.google.com/p/android-fb2png/

like image 186
CD_Jojn Avatar answered Sep 24 '22 13:09

CD_Jojn


i think Lower version of android dosn't have the screen capture facility

like image 22
Athul Avatar answered Sep 22 '22 13:09

Athul