Emulate scrollable screenshot #29

Open
opened 2025-01-21 21:13:39 +01:00 by Benjamin_Loison · 5 comments

As not possible on Xiaomi Mi A3 stock ROM.

Would help Benjamin_Loison/WhatsApp/issues/15.

As not possible on Xiaomi Mi A3 stock ROM. Would help [Benjamin_Loison/WhatsApp/issues/15](https://codeberg.org/Benjamin_Loison/WhatsApp/issues/15).
Author
Owner
Related to [Benjamin-Loison/android/issues/59#issuecomment-2629144502](https://github.com/Benjamin-Loison/android/issues/59#issuecomment-2629144502).
Author
Owner

With Google flavor long press of power button results in voice assistant, see Benjamin_Loison/Voice_assistant/issues/7#issue-1475654.

DuckDuckGo and Google search adb scrolling screenshot.

The Stack Overflow question 72804636 and the Android Stack Exchange question 35012 raise this question, the latter has answers but nothing absolutely clean to me.

scrollscreenshot has 719 stars and last commit was 10 years ago.

With Google flavor long press of power button results in voice assistant, see [Benjamin_Loison/Voice_assistant/issues/7#issue-1475654](https://codeberg.org/Benjamin_Loison/Voice_assistant/issues/7#issue-1475654). DuckDuckGo and Google search *adb scrolling screenshot*. [The Stack Overflow question 72804636](https://stackoverflow.com/q/72804636) and [the Android Stack Exchange question 35012](https://android.stackexchange.com/q/35012) raise this question, the latter has answers but nothing absolutely clean to me. [scrollscreenshot](https://github.com/PGSSoft/scrollscreenshot) has 719 stars and last commit was 10 years ago.
Author
Owner
adb exec-out screencap --help
Output:

usage: screencap [-ahp] [-d display-id] [FILENAME]
   -h: this message
   -a: captures all the active displays. This appends an integer postfix to the FILENAME.
       e.g., FILENAME_0.png, FILENAME_1.png. If both -a and -d are given, it ignores -d.
   -d: specify the display ID to capture (If the id is not given, it defaults to 4619827259835644672)
       see "dumpsys SurfaceFlinger --display-id" for valid display IDs.
   -p: outputs in png format.
   --hint-for-seamless If set will use the hintForSeamless path in SF

If FILENAME ends with .png it will be saved as a png.
If FILENAME is not given, the results will be printed to stdout.
```bash adb exec-out screencap --help ``` <details> <summary>Output:</summary> ``` usage: screencap [-ahp] [-d display-id] [FILENAME] -h: this message -a: captures all the active displays. This appends an integer postfix to the FILENAME. e.g., FILENAME_0.png, FILENAME_1.png. If both -a and -d are given, it ignores -d. -d: specify the display ID to capture (If the id is not given, it defaults to 4619827259835644672) see "dumpsys SurfaceFlinger --display-id" for valid display IDs. -p: outputs in png format. --hint-for-seamless If set will use the hintForSeamless path in SF If FILENAME ends with .png it will be saved as a png. If FILENAME is not given, the results will be printed to stdout. ``` </details>
Author
Owner
adb exec-out screencap --hint-for-seamless -p > test.png

does not have the scrolling aspect but maybe the Safety app Features tab does not support it.

```bash adb exec-out screencap --hint-for-seamless -p > test.png ``` does not have the scrolling aspect but maybe the *Safety* app *Features* tab does not support it.
Author
Owner
Should investigate https://www.reddit.com/r/NothingTech/comments/191dix2/how_to_take_scrolling_screenshot/
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/adb#29
No description provided.