Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Get app icon (
--get-app-icon
)The
--get-app-icon
option allows you to extract the icon of one or more installed applications from the Android device.Syntax
<packageID>
: Required. One or more package IDs, separated by a comma (,
) (e.g.,com.android.settings,com.android.chrome
). If the special valueall
is used, icons for all installed applications are extracted.[:path]
: Optional. Destination path to save the extracted icons.Path behavior
path
is an existing folder, each icon is saved as<packageID>.png
inside that folder.path
is an existing file, the extracted icon will overwrite that file, so be careful.path
does not exist, the containing folder is created and the file is named with the last segment of the path (regardless of extension).path
istmpDir
, the files are stored in the user's temporary folder:scrcpy/icons/<deviceId>
.Examples
scrcpy --get-app-icon=com.android.settings
scrcpy --get-app-icon=com.android.settings:~/icon.png
scrcpy --get-app-icon=com.android.settings,com.android.chrome:$HOME/icons/
scrcpy --get-app-icon=all:/home/user/all_icons/
scrcpy --get-app-icon=com.android.chrome,com.android.settings:tmpDir
Notes
packageID
s are specified, all indicated icons are extracted.all
, the--list-apps
functionality is reused to obtain all package IDs and extract their icons.:path
is not specified, icons are saved in the current directory.Tested on MacOS Tahoe + Xiaomi HyperOS 1.0.12 (Android 13)