mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 19:45:00 +00:00
java.io.FileNotFoundException logged but harmless
'java.io.FileNotFoundException' logged but harmless, properly handling this issue #994
This commit is contained in:
parent
39356602ed
commit
300503b8d8
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ public final class Workarounds {
|
|||
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());
|
||||
|
|
Loading…
Add table
Reference in a new issue