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-iconoption 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 valueallis used, icons for all installed applications are extracted.[:path]: Optional. Destination path to save the extracted icons.Path behavior
pathis an existing folder, each icon is saved as<packageID>.pnginside that folder.pathis an existing file, the extracted icon will overwrite that file, so be careful.pathdoes not exist, the containing folder is created and the file is named with the last segment of the path (regardless of extension).pathistmpDir, the files are stored in the user's temporary folder:scrcpy/icons/<deviceId>.Examples
scrcpy --get-app-icon=com.android.settingsscrcpy --get-app-icon=com.android.settings:~/icon.pngscrcpy --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:tmpDirNotes
packageIDs are specified, all indicated icons are extracted.all, the--list-appsfunctionality is reused to obtain all package IDs and extract their icons.:pathis not specified, icons are saved in the current directory.Tested on MacOS Tahoe + Xiaomi HyperOS 1.0.12 (Android 13)