scrollscreenshot


Source link: https://github.com/PGSSoft/scrollscreenshot

scrollscreenshot

Make Android screenshots of scrollable screen content - brought to you by PGS Software SA

This tool makes a number of screenshots, scrolling screen content automatically between each shot. By default status bar and navigation bar are included only once.

Documentation:

Usage: com.pgssoft.scrollscreenshot.ScrollScreenShot [options]
Options:
  -c, --count

  Number of screenshot to take

  Default: 5
  -v, --device

  Device ID, first device is used if not specified (i.e. "4df1902336814fa6"

  or "192.168.56.102:5555")
  -d, --direction

  Swipe direction: topdown (default), leftright (implies "--stitch none")

  Default: topdown
  -h, --help

  Display this help

  Default: false
  -e, --inertia

  Inertia of content, how many pixels are required to start dragging. Use

  non-zero value if there are duplicated stripes.

  Default: 0
* -i, --inputdevice

  Digitizer input device number, N in /dev/input/eventN

  Default: 1
  -n, --nameprefix

  Output filename prefix

  Default: out
  -p, --pathsdk

  Path to Android SDK
  -s, --stitch

  Stitch mode: full (smooth stitch), none (merged full screenshots),

  separate (separate files)

  Default: full  

How to use

You need to know digitizer device input number, which is specific to every device and ROM.

Use command

adb shell getevent -l

and move finger on screen. You will see something like

/dev/input/event2: EV_SYN

 SYN_REPORT

  00000000 /dev/input/event2: EV_ABS

 ABS_MT_WIDTH_MAJOR
00000014 /dev/input/event2: EV_ABS

 ABS_MT_POSITION_X
 00000247 /dev/input/event2: EV_ABS

 ABS_MT_POSITION_Y
 0000030c /dev/input/event2: EV_ABS

 ABS_MT_TOUCH_MAJOR
0000001a /dev/input/event2: EV_ABS

 ABS_MT_TOUCH_MINOR
0000000e /dev/input/event2: EV_ABS

 003c

  ffffffb3 

In your case device you are looking for has number 2.

You can now start screen capturing. Download latest scrollscreenshot binary, unlock screen, start app you want to scroll-capture and type (replace 2 by your device input number):

java -cp scrollscreenshot-latest.jar com.pgssoft.scrollscreenshot.ScrollScreenShot -i 2 

If eveything goes well, you will get file out.png with something like:

Left-to-right mode will give you something like this:

Todo:

  • scrolling in all 4 directions
  • automatic detection of scroll area edge

Changelog

  • 0.1 - initial release, only top-down scrolling for first device found by ADB
  • 0.2 - scrolling top-down and left-right, stitch now works in smooth/none/separate modes, ADB device can be choosen by id
  • 0.3 - fixed NPE when using separate stitch mode

Acknowledgments

License

scrollscreenshot for Android

Copyright (c) 2014 PGS Software SA

https://github.com/PGSSoft/scrollscreenshot

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Resources

Error Handle Of Rxjava.

LoggingInterceptor - An OkHttp Interceptor which pretty logs request and response data.

An arc based android color picker library.

Chrome CustomTabs for Android demystified. Simplifies development and provides higher level classes including fallback in case Chrome isn't available on device.

Color picker for v7 Preference Support Library.

This lightweight library makes it easy to use HTTP requests. Although the purpose is to make the use of Json data easy, it also allows to retrieve the server response using other formats, XML and TEXT.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes