Skip to content

Commit

Permalink
Recover from more general errors as well
Browse files Browse the repository at this point in the history
Summary: Will generalise this in a future diff to rely on the type of the SoSource that failed, but let's recover from /mnt/ errors as well.

Reviewed By: michalgr

Differential Revision: D50320566

fbshipit-source-id: 4325e5f49f2321c5dee78e1c11407e3fe084b866
  • Loading branch information
adicatana authored and facebook-github-bot committed Nov 7, 2023
1 parent fc7c9ff commit 4cf5665
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public boolean recover(UnsatisfiedLinkError error, SoSource[] soSources) {

SoLoaderULError err = (SoLoaderULError) error;
String message = err.getMessage();
if (message == null || !message.contains("/data/app")) {
if (message == null || (!message.contains("/app/") && !message.contains("/mnt/"))) {
// Do not attempt to recovery if the DSO wasn't in the data/app directory
return false;
}
Expand Down

0 comments on commit 4cf5665

Please sign in to comment.