Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not access file system with new sdk versions #90

Open
ThomasWerthenbach opened this issue Mar 10, 2022 · 3 comments
Open

Can not access file system with new sdk versions #90

ThomasWerthenbach opened this issue Mar 10, 2022 · 3 comments

Comments

@ThomasWerthenbach
Copy link
Contributor

ThomasWerthenbach commented Mar 10, 2022

2449adf
This commit seems to break the access to the file system. We found we were unable to access the apks anymore (Freedom of Computing app) without downgrading to target- and compilesdkversion 29

@synctext
Copy link
Member

synctext commented Mar 10, 2022

Could you please post the exact error or more detailed please? We want to reproduce..
The Google Platstore is forcing us to upgrade to this SDK level, otherwise we're kicked out 😢

@brian2509
Copy link
Contributor

Could be a possible fix for your problem: #91

@rmadhwal
Copy link
Contributor

Hi, the error we see is the below:

Suppressed: java.io.IOException: No original dex files found for dex location (x86) /storage/emulated/0/Download/act.apk
        at dalvik.system.DexFile.openDexFileNative(Native Method)
        at dalvik.system.DexFile.openDexFile(DexFile.java:367)
        at dalvik.system.DexFile.<init>(DexFile.java:109)

This can be replicated by trying to execute any apk inside the freedom-of-computing app.

We believe that the issue is caused by the storage updates in Android 11

Currently, requestLegacyExternalStorage is set in the app's manifest however, starting SDK Version 30 this flag seems to be ignored in Android 11. Hence, if we are required to upgrade the SDK it seems like the right direction for us to look at would be to either use scoped storage and require users to use the application's data directories or to use ACTION_OPEN_DOCUMENT and ask the user to provide us permission to use the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants