Open
Conversation
added 5 commits
September 8, 2025 18:39
fix: if is tmpDir expand returns tmpDir
Collaborator
|
Hi, Thank you for the contribution. However, I think this feature does not really belong in scrcpy (it could be a separate app to retrieve the icon of an app). I don't want to add the complexity of extracting, storing, retrieving the icons for a feature which is not really the purpose of scrcpy. It could be useful to retrieve the icons internally to expose it in a client UI if scrcpy had such an UI, but currently it's not the case. Also refs #5574 |
Author
|
this is a first step of a internal roadmap to get more gui and behavior to the app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)