root - Android Rooted how to run ASL(Android screenshot library) without running service(run.bat) from PC? -
i wondering develop app having same functionality of asl(android screen shot library ).to run asl first need invoke service our adb . want avoid , instead of want keep asl-native file in mobile itself. want invoke service our app . how ??
note: trying on rooted mobile support alone.
if device rooted, avoid use of asl make service can read framebuffer of device , make image(png or jpg) file it. @ code of asl , fb2png how read framebuffer , convert image.
also ddmlib you, library used android ddms image capture functionality.
edit:
on rooted device
process = runtime.getruntime().exec("su -c cat /dev/graphics/fb0"); inputstream = process.getinputstream();
and in manifest file give permission: read_framebuffer
Comments
Post a Comment