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

LiquidCore Android now requires android.permission.WRITE_EXTERNAL_STORAGE permission #95

Closed
jschnurholmes opened this issue Apr 9, 2019 · 3 comments
Labels
0.6.2 android Affects Android

Comments

@jschnurholmes
Copy link

After upgrading to version 0.6.0 of LiquidCored for Android, when I upload a new build of my app to the store, I get a warning that the app has a new permission, android.permission.WRITE_EXTERNAL_STORAGE, which users will have to accept before they can upgrade. Looking at my build/outputs/logs/manifest-merger-release-report.txt, this new permission is coming from LiquidCore-0.6.0.aar/3c0ca1e4e20da9b8b83eaffd57fed554/AndroidManifest.xml:12. LiquidCore did not previously require this permission. Is it necessary now? Is there a way to build without it?

@ericwlange
Copy link
Member

Hmm, interesting. LiquidCore has had that permission in its AndroidManifest.xml since Jan 24, 2017. Not sure how old of a version you are updating from.

However, if you are not using the public directories from the Node.js filesystem, then you shouldn't need that permission. You can turn it off but just removing it from the manifest, but unfortunately you will have to use your own build of LiquidCore. There is no exposed API method to do it. Perhaps I can take that permission out by default in the next release. If devs need it, they can add it to their own manifests.

Do you mind me asking what your app is (link)? I am always eager to see how people are using it in production.

ericwlange added a commit that referenced this issue Apr 29, 2019
Android: Removed WRITE_EXTERNAL_STORAGE default permission (#95)
@consp1racy
Copy link

Until next version is released you can put this in your app's manifest

<uses-permission tools:node="remove" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

The practice is well described here: https://facebook.github.io/react-native/docs/removing-default-permissions

@ericwlange ericwlange added the android Affects Android label Jun 3, 2019
@ericwlange
Copy link
Member

This has been made the default in 0.6.2.

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

No branches or pull requests

3 participants