To resolve this problem for API 23 I download .obb file to private app's
file directory instead of `obb` directory which my app hasn't access to.
You can review my solution here
<https://github.com/danikula/Google-Play-Expansion-File/commit/93a03bd34acad67c6ea34cfb6c3f02c93bdcea85>
.
Usage:
repositories {
maven { url 'https://dl.bintray.com/alexeydanilov/apk-expansion' }
}
dependencies {
compile 'com.danikula.expansion:expansion:VERSION@aar'
compile 'com.danikula.expansion:license:VERSION@aar'
compile 'com.danikula.expansion:zip:VERSION@aar'
}
See the latest versions here
<https://bintray.com/alexeydanilov/apk-expansion>
пятница, 5 февраля 2016 г., 20:49:32 UTC+3 пользователь [email protected]
написал:
>
> Hi,
> I have an app that uses expansion files and it works fine on less than api
> 23 devices, but on android 6.0 the obb cannot be read neither by
> FileInputStream nor by ndk fopen with permission denied error in case the
> obb and apk are downloaded from store at once. If the runtime permission to
> the app is granted from android settings it runs fine. If the downloader
> code runs, or if the obb is uploaded to device into the same folder - the
> obb can be read without runtime permissions.
>
> Is it possible to read expansion file without runtime permissions for
> WRITE_EXTERNAL_STORAGE (listed in manifest as well) on android 6 ?
>
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/b5c2df11-5165-451c-ba3d-3ed26e7eb147%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.