Repository navigation
<
8000
meta name="react-app-name" content="pull-requests"/>
ps: fall back to a listing without icons when icon loading fails - #211
Merged
Merged
Conversation
tubibibo
force-pushed
the
ps/icon-fallback
branch
from
November 5, 2026 18:46
a808d9a to
4c143d5
Compare
Some devices fail the whole full-scope enumeration when an app icon cannot be loaded, e.g. Android raising Resources$NotFoundException for sym_def_app_icon. Retry with the minimal scope and warn, so the listing still works. Refs frida/frida#3762
oleavr
force-pushed
the
ps/icon-fallback
branch
from
November 5, 2026 19:26
4c143d5 to
280fb9e
Compare
Member
|
Thanks! 🙌 |
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.
When the terminal asks for icons,
frida-psenumerates withscope="full". If the device fails to load an app icon, the whole call fails, so the listing is lost over an icon. In frida/frida#3762 that is Android raisingResources$NotFoundException: Drawable android:drawable/sym_def_app_icon, and piping the output "fixes" it only because that skips the icon request.This retries with the minimal scope and warns, so the process/application list is still shown without icons.
fullscope_log("warning", ...)in both_list_processesand_list_applicationstests/test_ps.pycovers the retry, the success path, a failing minimal scope, and the "not an icon problem" caseRefs frida/frida#3762
Verification:
python -m unittest tests.test_ps -v-> 4 tests OK;black,isortandpyflakesare clean. With a stub device that raises the exception above onfullscope, the previous code path iscalls=['full']followed by "Failed to enumerate processes", the new one iscalls=['full', 'minimal']followed by the warning and a normal listing.