{"id":18818169,"url":"https://github.com/helloimkevo/androidpresentationdisplaydemo","last_synced_at":"2026-04-29T01:02:47.147Z","repository":{"id":195091710,"uuid":"692199812","full_name":"HelloImKevo/AndroidPresentationDisplayDemo","owner":"HelloImKevo","description":"Demo app for the Android Presentation Display component.","archived":false,"fork":false,"pushed_at":"2023-10-13T22:11:37.000Z","size":6502,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T20:51:27.585Z","etag":null,"topics":["android","kotlin-android"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HelloImKevo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-15T19:40:16.000Z","updated_at":"2025-02-22T16:58:03.000Z","dependencies_parsed_at":"2024-12-30T02:31:51.975Z","dependency_job_id":"bc9a9237-1aa0-4263-8833-96418405e0b0","html_url":"https://github.com/HelloImKevo/AndroidPresentationDisplayDemo","commit_stats":null,"previous_names":["helloimkevo/androidpresentationdisplaydemo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HelloImKevo/AndroidPresentationDisplayDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloImKevo%2FAndroidPresentationDisplayDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloImKevo%2FAndroidPresentationDisplayDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloImKevo%2FAndroidPresentationDisplayDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloImKevo%2FAndroidPresentationDisplayDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HelloImKevo","download_url":"https://codeload.github.com/HelloImKevo/AndroidPresentationDisplayDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloImKevo%2FAndroidPresentationDisplayDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","kotlin-android"],"created_at":"2024-11-08T00:15:25.992Z","updated_at":"2026-04-29T01:02:47.116Z","avatar_url":"https://github.com/HelloImKevo.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroidPresentationDisplayDemo\nDemo app for the Android Presentation Display component.\n\n## How to Grab a Screenshot from the Secondary Display\nYou can get the \"Display ID\" using:\n```shell\nadb shell dumpsys display\n```\nAnd then look for a display labeled like \"HDMI Screen\". The Display ID is the\nnumeric value of the `uniqueId` property in most cases:\n```\nDisplayDeviceInfo{\"HDMI Screen\": uniqueId=\"local:1\", 1280 x 800, modeId 2, \ndefaultModeId 2, supportedModes [{id=2, width=1280, height=800, fps=60.000004}], \ncolorMode 0, supportedColorModes [0], HdrCapabilities android.view.Display$HdrCapabilities@40f16308, \ndensity 237, 237.0 x 237.0 dpi, appVsyncOff 1000000, presDeadline 16666666, \ntouch EXTERNAL, rotation 0, type HDMI, address {port=1}, state ON, \nFLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_PRESENTATION}\n```\n\nThen you use the `-d` option in `adb shell screencap`:\n```shell\nadb shell screencap -d 1 /sdcard/screen-01.png \u0026\u0026 adb pull /sdcard/screen-01.png ~/Desktop/\n```\n\nThe same concept should apply to `screenrecord`, but this is only available on\n**Android 11+**. Android developer documentation:  \nhttps://developer.android.com/tools/adb#screencap  \n```shell\nadb shell screenrecord --display-id 1 /sdcard/recording-01.mp4\nadb pull /sdcard/recording-01.mp4 ~/Desktop/\n```\n\nStack Overflow post:  \nhttps://stackoverflow.com/questions/64180082/adb-screenrecord-secondary-display-from-listed-displays-in-dumpsys  \n\nLink to `screenrecord` source code:  \nhttps://android.googlesource.com/platform/frameworks/av/+/refs/heads/master/cmds/screenrecord/screenrecord.cpp  \n\n## How to screencast with Genymobile screen copy\n`scrcpy` also supports a `--display` flag:\n```shell\nscrcpy --display 1\n```\n\nYou can also record the secondary HDMI screen using `scrcpy` like:\n```shell\nscrcpy --display 1 --record ~/Desktop/recording.mp4\n```\n\nMore details:  \nhttps://manpages.ubuntu.com/manpages/jammy/man1/scrcpy.1.html  \nhttps://github.com/Genymobile/scrcpy  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloimkevo%2Fandroidpresentationdisplaydemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloimkevo%2Fandroidpresentationdisplaydemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloimkevo%2Fandroidpresentationdisplaydemo/lists"}