Skip to content Skip to sidebar Skip to footer

Android Rooted How To Run Asl(android Screenshot Library) Without Running Service(run.bat) From Pc?

I am wondering to develop an app which is having the same functionality of ASL(Android Screen Shot Library ).To run the ASL first we need to invoke the service from our Adb . I wan

Solution 1:

If your device is rooted, then avoid use of ASL just make a service which can read framebuffer of device and make a image(png or jpg) file from it. Just look at the code of ASL and fb2png how they read framebuffer and convert it to image.

Also ddmlib help you, it is a library used by Android DDMS for image capture functionality.

EDIT:

On Rooted Device

process = Runtime.getRuntime().exec("su -c cat /dev/graphics/fb0");
InputStream is = process.getInputStream();

And also in manifest file give permission: READ_FRAMEBUFFER

Post a Comment for "Android Rooted How To Run Asl(android Screenshot Library) Without Running Service(run.bat) From Pc?"