extinguish / android-screenshot-library Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-screenshot-library
License: Other
Automatically exported from code.google.com/p/android-screenshot-library
License: Other
What feature is requested?
Use SDK 2.3s monkeyrunner and python for cross-platform single solution to
install the native component
* Most likely Python UI libraries can be used to trigger the installation.
* We might also think about having an add-on to Android's SDK to integrate well
with SDK?
* Maybe even extending ADT would be an option?
Which version it applies to ?
1.2
What will be the benefits from having the feature?
Easier installation for the users.
Original issue reported on code.google.com by [email protected]
on 6 Jan 2011 at 3:24
What steps will reproduce the problem?
1. I run in cmd “adb shell "/ data / local / asl-native"” , when i press
the "Take screenshot"in my phone, screen shots can be successful, but,
asl-native service is stopped,It "shows Native service not found", after the
start of each service only successful of one time
2. When I start asl-native service in android code:
java.lang.Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
os.writeBytes("/data/local/asl-native" + "\n");
os.writeBytes("exit\n");
os.flush();
os.close();
when i press the "Take screenshot"in my phone,it still ,asl-native service is
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a
little picture of the head
What is the expected output? What do you see instead?
Please tell me how to solve...
What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 3:56
In the latest source code revision (as of May 22, 2012), there's a bug that
will likely make takeScreenshot() in ScreenshotService.java return null.
The line in question is the following:
if (!screensPath.mkdirs()) return null;
mkdirs() only returns true IF the directory in question DID NOT EXIST BEFORE
and HAS BEEN CREATED BY THIS CALL. If the directory already existed before,
mkdirs() will return false, which means that on a brand new sdcard the
Screenshot Service will only work once.
I suggest the following change:
screensPath.mkdirs()
if (!screensPath.isDirectory()) return null;
This should work as intended.
This should
Original issue reported on code.google.com by [email protected]
on 22 May 2012 at 3:40
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Jul 2014 at 2:10
Colors are inverted on Motorola Droid. Works perfectly on the Nexus One.
Attached file shows 3 layers of screenshots. The middle layer, which is a
screenshot-of-a-screenshot, has correct colors.
What version of the product are you using? On what operating system?
ASL 1.1 on Motorola Droid running Android 2.2.1
Original issue reported on code.google.com by [email protected]
on 14 Dec 2010 at 6:16
Attachments:
I am having trouble related to implementation of ASL. if anyone helps me i can
pay for services.send me email on [email protected] its urgent task for me.
Original issue reported on code.google.com by [email protected]
on 11 Sep 2014 at 7:05
What steps will reproduce the problem?
1. I run in cmd “adb shell "/ data / local / asl-native"” , when i press
the "Take screenshot"in my phone, screen shots can be successful, but,
asl-native service is stopped,It "shows Native service not found", after the
start of each service only successful of one time
2. When I start asl-native service in android code:
java.lang.Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
os.writeBytes("/data/local/asl-native" + "\n");
os.writeBytes("exit\n");
os.flush();
os.close();
when i press the "Take screenshot"in my phone,it still ,asl-native service is
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a
little picture of the head
What is the expected output? What do you see instead?
Please tell me how to solve...
What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 3:54
What steps will reproduce the problem?
Whenever a video is played either in player or on youtube Screenshots of that
video won't be captured, instead I get blank screen. PLease look into the issue
I need this feature.
What is the expected output? What do you see instead?
Screenshots of video should be saved frame by frame.
What version of the product are you using? On what operating system?
I am using asl 1.2 and Android 2.3.6
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 3 Dec 2013 at 5:09
Screenshot contains red overlay or something and the colors are inverted too.
I am using the latest version of ASL (1.2)
In HTC-1X image was there but totally different
the screenshot was perfect only in Droid
please return back to me if anyone has a solution.
[email protected]
Original issue reported on code.google.com by [email protected]
on 23 Aug 2012 at 2:37
I got screen shot use android screen shot lib but when i copy my apk file and
run on android phone diffrent. It show service not found. How can i copy
asl-native file and run on android and don't run file .bat or file .sh
Original issue reported on code.google.com by [email protected]
on 26 Mar 2015 at 10:17
The documentation should mention that your manifest needs this permission to
integrate the screenshotting code.
Just tracked this failure to the realisation it was trying to open a socket,
failing and swallowing the error.
Original issue reported on code.google.com by [email protected]
on 2 Mar 2011 at 1:05
Output give me Toast of ASl Provider Null. What is the problem?
Original issue reported on code.google.com by [email protected]
on 25 Feb 2015 at 6:58
What steps will reproduce the problem?
1. I run in cmd “adb shell "/ data / local / asl-native"” , when i press
the "Take screenshot"in my phone, screen shots can be successful, but,
asl-native service is stopped,It "shows Native service not found", after the
start of each service only successful of one time
2. When I start asl-native service in android code:
java.lang.Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
os.writeBytes("/data/local/asl-native" + "\n");
os.writeBytes("exit\n");
os.flush();
os.close();
when i press the "Take screenshot"in my phone,it still ,asl-native service is
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a
little picture of the head
What is the expected output? What do you see instead?
Please tell me how to solve...
What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 3:54
Screenshot height each time is fixed, and only shows the head of the phone
screen
how to slove?
the error in "errorScreenshot.png"
please help me...
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 4:15
Attachments:
how i solve this problem
i have installed Android ndk service but no luck to capture the screen shot
Original issue reported on code.google.com by [email protected]
on 25 Apr 2012 at 8:31
What steps will reproduce the problem?
1. Launch native binary from /data/data/app/binary using ProcessBuilder
What is the expected output? What do you see instead?
A screenshot is made. Binary exits.
What version of the product are you using? On what operating system?
Android 2.3.6, Nexus One; not rooted.
Here's a logdump:
I/LogThread(21851): Program initialized
I/LogThread(21851): Starting server...
I/LogThread(21851): - Socket creation
I/LogThread(21851): - Socket binding
I/LogThread(21851): - Socket in listening mode
I/LogThread(21851): Server started.
I/LogThread(21851): Listening on 0.0.0.0:42380
I/LogThread(21851): Signal handling setup
I/LogThread(21851): Starting main loop.
I/LogThread(21851): << select() on sockets... >>
I/LogThread(21851): Incoming client connection
I/LogThread(21851): - Connection accepted
I/LogThread(21851): << select() on sockets... >>
I/ScreenshotService(21851): Error writeImageFile: null
I/LogThread(21851): Client socket signaled for input
I/LogThread(21851): - Retreiving data
I/LogThread(21851): - Command identified as SCREEN
I/LogThread(21851): - Taking screenshot
I/LogThread(21851): An error occured: ioctl FBIOGET_FSCREENINFO Bad file
descriptor
I/LogThread(21851): Exiting now...
Original issue reported on code.google.com by [email protected]
on 21 Mar 2012 at 8:18
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by uttaram03
on 17 Apr 2013 at 2:31
What steps will reproduce the problem?
I just installed native service and I tried taking screen shot on Samsung
Galaxy S4 but I got FBIOGET_FSCREENINFO Bad file descriptor error.
I tried on Galaxy Y also but its not giving any screenshot it just gets stuck
in read function.
What is the expected output? What do you see instead?
Screenshot should be taken.
What version of the product are you using? On what operating system?
I am using asl 1.2 android 4.3 on Galaxy S4 and its 2.3.6 on Galaxy Y
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 2 Dec 2013 at 7:21
What steps will reproduce the problem?
1. Install and run the service.
2. Take a screenshot through demo project.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 13 May 2014 at 9:37
fix,capture the partial screen.
Original issue reported on code.google.com by [email protected]
on 9 Dec 2011 at 7:59
Attachments:
What steps will reproduce the problem?
1.Clicking on Take Screenshot button in android emulator 2.2
2.Used adb pull command to pull the .png file into local directory
3.Only black screen is coming
What is the expected output? What do you see instead?
Expected-screen with android icon but getting black screen.
What version of the product are you using? On what operating system?
Emulator android 2.2
Please provide any additional information below.
Have already implemented root user etc.
Original issue reported on code.google.com by [email protected]
on 28 Dec 2012 at 7:56
Attachments:
What steps will reproduce the problem?
1.i expected current screen capture but it capturing black screen please tell
me how to resolve it
2.iam using android 2.3.3. in emulator
3.please tell me how to resolve this issue i got black screen not capturing
cureent screen
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Jan 2013 at 6:49
What steps will reproduce the problem?
1. Start the Service
What is the expected output? What do you see instead?
Service should start successfully but it failed.
This is what I have when I start the service
Android Screenshot Library -- Initializing...
Waiting for device to be connected...
- Installing native service...
Unable to chmod /data/local/asl-native: No such file or directory
Starting...
/system/bin/sh: kill: /data/local/asl-native: arguments must be jobs or process
IDs
/system/bin/sh: /data/local/asl-native: not found
What version of the product are you using? On what operating system?
Android 4.4.4, this can be other other Android OS also.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Aug 2014 at 2:43
Hi guys.
I run it according to the official guide.
But I need to bundle asl-native script to my app.then I followed the few steps
below.
1. copied the asl-native script to the assets folder of my app.
2. on start up of my app, it change the mode the script in the assets folder to
777 to execute it from my app.
3. after it changed the mode of it, It tries to run it like below:
Runtime.getRuntime().exec("/data/data/"+getPackageName()+"/files/asl_native &");
4. then I checked if it is started using "$ps" in adb terminal. It runs
normally.
5. Finally I hit the button to capture the screen of the device.
No image captured and the script started by my app is down unexpectedly.
Anyone do tested it like my steps.
What should i do to get it worked?
tnx in advance.
Original issue reported on code.google.com by [email protected]
on 13 Dec 2011 at 7:34
Memory leaks in unify function.
"pict->buffer" may be freed before assigned "out" buffer.
Original issue reported on code.google.com by [email protected]
on 22 Mar 2012 at 7:16
Attachments:
Hi,
I want to open and read 'asl-native' file.
But since it has no extension, I've no idea of how to it.
Please suggest.
Thank You
Original issue reported on code.google.com by [email protected]
on 15 Nov 2014 at 5:16
What steps will reproduce the problem?
1. install & configure as pr manual
2. start the service through an instrumentation test
3. create screenshot
What is the expected output? What do you see instead?
a full screenshot. what i get is a partial image, resolution looks correct as
well as colors. but perhaps 3/4 of the image is not filled with data
(transparent apparently).
What version of the product are you using? On what operating system?
nexus one produces this result, a rooted desire hd produces correct and full
images.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Jan 2011 at 1:46
Use run.sh can execuse the asl-native,
But how to stop it if use android app?
Original issue reported on code.google.com by [email protected]
on 22 Feb 2011 at 6:46
Hi, I am using ASL to take screenshot. But to install ASL, in command prompt,
when i give : "adb push ./asl-native /data/local/asl-native", it shows "failed
to copy './asl-native' to '/data/local/asl-native': Permission denied". Can
someone please help me proceed with this issue..??
Original issue reported on code.google.com by [email protected]
on 13 Aug 2013 at 4:22
What steps will reproduce the problem?
1.Install apk via eclipse
2.Press toggle to take the picture
3.Show the error message on the tablet
4.Save picture fail
What is the expected output? What do you see instead?
1.It should output the pictures at floder "screens"
2.The floder is created, but the pictures aren't found.
What version of the product are you using? On what operating system?
1.Product: Acer tablet
2.Android 3.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 19 Dec 2011 at 9:14
Attachments:
What steps will reproduce the problem?
1. Take screenshot using ASL on HTC sensation and Galaxy s plus
What is the expected output? What do you see instead?
On HTC snesation screenshot is twisted and repeated and on galaxy s plus
screenshots is pinky. I tested asl on 3 device and only on Sony Erricson
screenshots were proper.
What version of the product are you using? On what operating system?
Newest
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Jun 2012 at 2:15
What steps will reproduce the problem?
1.
Download the latest source using "hg clone
https://code.google.com/p/android-screenshot-library/"
2.
Start the native service and the demo
3.
What is the expected output? What do you see instead?
The first few screen shots were good, but after 3 to 5 screen shots, all I got
is blank screen and sometime I got a partial screen shot.
What version of the product are you using? On what operating system?
I start the native service using a Win 7 desktop machine.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Nov 2012 at 12:40
What steps will reproduce the problem?
1. I run in cmd “adb shell "/ data / local / asl-native"” , when i press
the "Take screenshot"in my phone, screen shots can be successful, but,
asl-native service is stopped,It "shows Native service not found", after the
start of each service only successful of one time
2. When I start asl-native service in android code:
java.lang.Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
os.writeBytes("/data/local/asl-native" + "\n");
os.writeBytes("exit\n");
os.flush();
os.close();
when i press the "Take screenshot"in my phone,it still ,asl-native service is
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a
little picture of the head
What is the expected output? What do you see instead?
Please tell me how to solve...
What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 3:50
What steps will reproduce the problem?
1. Start the native service
2. Deploy and start the demo app
3. Taking quite a few screenshots
4. Returning to the home screen
What is the expected output? What do you see instead?
The phone becomes quite unresponsive back on the homescreen (i.e. it completely
refreshes all the icons and widgets; it doesn't start the launcher or does that
very slowly).
I also see a few "low memory" warnings from the ActivitiyManager in the logcat.
What are the performance implications of (a) running the asl-native service in
the background? And (b) taking screenshots?
What version of the product are you using? On what operating system?
asl-1.2 demo
Android 2.2.1 on Google Nexus One
Please provide any additional information below.
Thanks
Original issue reported on code.google.com by [email protected]
on 5 Jan 2011 at 2:32
Has anybody made it work?
while trying to execute the run.ps1 file via windows PowerShell, i got the
"magic 7F45" error.. I made some researches, apparently the library works only
for ARM, so we need to cross-compile it to x86 (for eg); and i'm having hard
time doing that.
Did anybody encounter this problem? If so, Please tell us, what did you do?
what toolchain did you use.. ?
Original issue reported on code.google.com by [email protected]
on 11 May 2014 at 9:40
What steps will reproduce the problem?
1.nativ code bug fix
main.c/handle_client_input():
/* content */
int length = pict.xres * pict.yres * pict.bps / 8;
int seek, len;
for(seek=0; seek<length; seek+=len) {
len = Send(cfd, &pict.buffer[seek], length-seek, 0);
if (len < 0)
return -1;
}
Log ("- Screenshot sent");
2. Service bug fix
ScreenshotService.java/retreiveRawScreenshot():
ByteBuffer bytes = ByteBuffer.allocate (ss.width * ss.height * ss.bpp / 8);
is = new BufferedInputStream(is); // buffering is very important apparently
int size, length=0, len;
size = ss.width * ss.height * ss.bpp / 8;
while((len=is.read(bytes.array(), length, size-length)) > 0)
length += len;
// is.read(bytes.array()); // reading all at once for speed
// Log.d("SERVICE", "Size=" + (ss.width * ss.height * ss.bpp / 8) + ",
Length=" + length);
bytes.position(0); // reset position to the beginning of ByteBuffer
ss.pixels = bytes;
3. native win32 build fix
native/make.bat
@ set ADB=D:\Android\sdk\platform-tools\adb.exe
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Apr 2012 at 3:49
What steps will reproduce the problem?
1. Install the native service using instructions or the comment by gregm
2. Run Demo Application
3. Click "take Screenshot"
What is the expected output? What do you see instead?
- I expect a screenshot, Instead I got a "fuzzy" yellowish image. (see attached)
What version of the product are you using? On what operating system?
- Nexus 7, using asl 1.2
Please provide any additional information below.
- The same code works fine on the Nexus S. I assume it is Nexus 7 specific.
Original issue reported on code.google.com by [email protected]
on 21 Jan 2013 at 11:26
Attachments:
What steps will reproduce the problem?
1. I run in cmd “adb shell "/ data / local / asl-native"” , when i press
the "Take screenshot"in my phone, screen shots can be successful, but,
asl-native service is stopped,It "shows Native service not found", after the
start of each service only successful of one time
2. When I start asl-native service in android code:
java.lang.Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
os.writeBytes("/data/local/asl-native" + "\n");
os.writeBytes("exit\n");
os.flush();
os.close();
when i press the "Take screenshot"in my phone,it still ,asl-native service is
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a
little picture of the head
What is the expected output? What do you see instead?
Please tell me how to solve...
What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 3:56
What steps will reproduce the problem?
1.Done the general implementation of ASL i.e. creating service for
the ScreenShot and done the entry in menifiest file.
What is the expected output? What do you see instead?
My code is not even in compilable form because it is unable to found
the IScreenShotProvider in gen folder.
What version of the product are you using? On what operating system?
android 2.2
I am using asl1.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 May 2012 at 10:23
What steps will reproduce the problem?
1. remove/comment-out C_FLAGS=-DDEBUG in makefile
2. make
3. you will see message as follows
{{{
main.c: In function 'sig_INT':
main.c:43:33: error: 'logFile' undeclared (first use in this function)
main.c:43:33: note: each undeclared identifier is reported only once for each
function it appears in
}}}
What version of the product are you using? On what operating system?
HG revision 67
Please provide any additional information below.
Patch to fix that problem provided.
Also this patch fixes compilation under android-ndk toolchain.
Original issue reported on code.google.com by loentar
on 26 Oct 2012 at 6:57
Attachments:
What steps will reproduce the problem?
1. Start emulator -> Start native service
2. Start Demo App or any other app that has uses screenshot API
3. Take screenshot
What is the expected output? What do you see instead?
Instead of a Screenshot it shows a blank image
What version of the product are you using? On what operating system?
1.2 ASL, Android 2.2 API Level 8
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 May 2011 at 8:24
What steps will reproduce the problem?
1. Start the native service
2. Deploy and start the demo app
3. Taking quite a few screenshots
4. Returning to the home screen
What is the expected output? What do you see instead?
screen can be captured. but the native service will continue to leak memory if
continuing capture
What version of the product are you using? On what operating system?
asl-1.2 demo at android 2.3.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Feb 2011 at 2:59
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.