Skip to content

AppCleaner: Fix scan aborting on read errors with root- or shizuku-level access#1321

Merged
d4rken merged 5 commits into
mainfrom
exception-unwrapping
Jul 17, 2024
Merged

AppCleaner: Fix scan aborting on read errors with root- or shizuku-level access#1321
d4rken merged 5 commits into
mainfrom
exception-unwrapping

Conversation

@d4rken

@d4rken d4rken commented Jul 16, 2024

Copy link
Copy Markdown
Member

We need to ensure that the exception we are trying to reconstruct has constructor(String).

…vel access

While it was a nice idea to reconstruct the actual exceptions, this falls short for exception that don't have the default `String` constructor, e.g. `ReadException` or any `PathException`.
Instead we throw a new `WrappedIPCException` that should be easily searchable, and still offer the original message and a somewhat accurate stacktrace.
@d4rken d4rken added bug Something isn't working as expected c: AppCleaner c: IO SAF/Normal/Root access Root ADB ADB/Shizuku related labels Jul 16, 2024
@d4rken

d4rken commented Jul 16, 2024

Copy link
Copy Markdown
Member Author

Fixes #1319

@d4rken
d4rken marked this pull request as draft July 17, 2024 00:31
d4rken added 2 commits July 17, 2024 12:52
…IPC Modules can reconstruct the exception via reflection when propagating it.
@d4rken
d4rken marked this pull request as ready for review July 17, 2024 10:59
@d4rken
d4rken merged commit 0f1bfde into main Jul 17, 2024
@d4rken
d4rken deleted the exception-unwrapping branch July 17, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ADB ADB/Shizuku related bug Something isn't working as expected c: AppCleaner c: IO SAF/Normal/Root access Root

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant