Skip to content

Commit

Permalink
java.io.FileNotFoundException logged but harmless
Browse files Browse the repository at this point in the history
'java.io.FileNotFoundException' logged but harmless, properly handling this issue Genymobile#994
  • Loading branch information
hafizidev authored Jan 19, 2020
1 parent 3935660 commit 300503b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/main/java/com/genymobile/scrcpy/Workarounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public static void fillAppInfo() {
Field mInitialApplicationField = activityThreadClass.getDeclaredField("mInitialApplication");
mInitialApplicationField.setAccessible(true);
mInitialApplicationField.set(activityThread, app);
} catch (java.io.FileNotFoundException exception) {
// this is a workaround, so do not show error when file is not exist
// when file not exist, it means this workaround is not needed
} catch (Throwable throwable) {
// this is a workaround, so failing is not an error
Ln.w("Could not fill app info: " + throwable.getMessage());
Expand Down

0 comments on commit 300503b

Please sign in to comment.