This only happens on one phone, which happens to be a Samsung Galaxy S9 that previously had no problem. It started happening today and seems to be related to that specific phone. Old app versions that worked before no longer work. It appears that the app no longer has permission to access the lock file. Tried giving it permission to write external storage but that had no effect.
FATAL EXCEPTION: main
Process: <application_id>, PID: 2497
java.lang.RuntimeException: Unable to create application <application_class_name>: java.lang.RuntimeException: java.io.FileNotFoundException: /data/user/0/<application_id>/lib-main/dso_lock: open failed: EACCES (Permission denied)
at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7150)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7095)
at android.app.ActivityThread.access$1700(ActivityThread.java:273)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2105)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8125)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /data/user/0/<application_id>/lib-main/dso_lock: open failed: EACCES (Permission denied)
at com.facebook.soloader.SoLoader.init(SoLoader.java:219)
at com.<app_package>.utils.FlipperHelper.enableFlipper(FlipperHelper.kt:19)
at com.<application_class_name>.onCreate(AvaApp.kt:100)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)
at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7145)
... 9 more
Caused by: java.io.FileNotFoundException: /data/user/0/<application_id>/lib-main/dso_lock: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileOutputStream.<init>(FileOutputStream.java:235)
at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
at com.facebook.soloader.FileLocker.<init>(FileLocker.java:36)
at com.facebook.soloader.FileLocker.lock(FileLocker.java:32)
at com.facebook.soloader.UnpackingSoSource.prepare(UnpackingSoSource.java:430)
at com.facebook.soloader.SoLoader.initSoSources(SoLoader.java:327)
at com.facebook.soloader.SoLoader.init(SoLoader.java:207)
at com.facebook.soloader.SoLoader.init(SoLoader.java:189)
at com.facebook.soloader.SoLoader.init(SoLoader.java:217)
... 13 more
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8002)
at libcore.io.IoBridge.open(IoBridge.java:482)
Start the app. It crashes immediately.
Android 10
Samsung Galaxy S9
Teammates have also run into this on a Pixel 4 and a Pixel 3 XL, so it is not specific to the Galaxy S9. We have not been able to isolate steps to reproduce the problem. There is some evidence that it is tied to Android's backup system -- one teammate got past this by setting allowBackup to false.
@commonsguy that makes sense. Somehow the application does not have permission to access the lock file. Thanks for the tip! I'll see if it works.
Same error on v0.91.1 Poco X3
I'm having this issue with OnePlus 8T
Most helpful comment
Teammates have also run into this on a Pixel 4 and a Pixel 3 XL, so it is not specific to the Galaxy S9. We have not been able to isolate steps to reproduce the problem. There is some evidence that it is tied to Android's backup system -- one teammate got past this by setting
allowBackuptofalse.