question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileNotFoundException on ZTE Grand X Max 2

See original GitHub issue

Fresco is using SoLoader and we got a bug report (https://github.com/facebook/fresco/issues/2176) that on the ZTE Grand X Max 2 (API 23), SoLoader cannot be initialized:

Caused by java.io.FileNotFoundException: /data/user/0/com.remind101/lib-main/dso_lock: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileOutputStream.(FileOutputStream.java:87)
at java.io.FileOutputStream.(FileOutputStream.java:72)
at com.facebook.soloader.FileLocker.(FileLocker.java:28)
at com.facebook.soloader.FileLocker.lock(FileLocker.java:24)
at com.facebook.soloader.UnpackingSoSource.prepare(UnpackingSoSource.java:393)
at com.facebook.soloader.SoLoader.initImpl(SoLoader.java:211)
at com.facebook.soloader.SoLoader.init(SoLoader.java:120)
at com.facebook.soloader.SoLoader.init(SoLoader.java:104)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:63)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:46)
Caused by android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Posix.open(Posix.java)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at java.io.FileOutputStream.(FileOutputStream.java:87)
at java.io.FileOutputStream.(FileOutputStream.java:72)
at com.facebook.soloader.FileLocker.(FileLocker.java:28)
at com.facebook.soloader.FileLocker.lock(FileLocker.java:24)
at com.facebook.soloader.UnpackingSoSource.prepare(UnpackingSoSource.java:393)
at com.facebook.soloader.SoLoader.initImpl(SoLoader.java:211)
at com.facebook.soloader.SoLoader.init(SoLoader.java:120)
at com.facebook.soloader.SoLoader.init(SoLoader.java:104)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:63)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:46)

It looks like ZTE has modified Android for whatever reason that prevents us from loading native libraries through SoLoader. The line where this is failing is here: https://github.com/facebook/SoLoader/blob/master/java/com/facebook/soloader/FileLocker.java#L35

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
bbssyyuuicommented, Jun 29, 2020

I got this bug too, has anyone solved this?

0reactions
simpletoncommented, Jan 4, 2022

I think this issue was fixed in v0.10.3. I will close it due to it’s too old. Feel free to reopen the issue if you’re still experiencing a similar issue on v0.10.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zte grand X max2 hard reset - YouTube
Zte grand X max2 hard resetDonate to help our ...
Read more >
ZTE Grand X Max Plus Troubleshooting - iFixit
The ZTE Grand X Max Plus is an exclusive smartphone from Cricket that was released in 2015. This troubleshooting page will help you...
Read more >
How To Hard Reset ZTE Grand X Max 2 Z988 - Swopsmart
Sound issues. Step 1. Ensure that your ZTE Grand X Max 2 Z988 is turned off by pressing the power button.
Read more >
Zte grand x max 2 | XDA Forums
Any root method for cricket zte grand x max 2? Sent from my Z988 using Tapatalk.
Read more >
Hard Reset ZTE Grand X Max 2 Z988, how to - HardReset.info
Begin by holding down the Power key for a few seconds in order to switch off the device. Restore ZTE Grand X Max...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found