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

Files Don't Display on Android 11 #116

Open
TheKingSparta opened this issue Jan 30, 2021 · 7 comments · May be fixed by #132
Open

Files Don't Display on Android 11 #116

TheKingSparta opened this issue Jan 30, 2021 · 7 comments · May be fixed by #132

Comments

@TheKingSparta
Copy link

I'm using a Google Pixel 4 XL running Android 11, and the paid version of Kirikiroid2. The app doesn't seem to be able to detect any VN files (.xp3, .exe, etc.). I think this may have something to do with permissions changing with Android 11, and the app not having access to all files, but instead only files considered "media", but I'm not sure.

@Ptokanbarsky
Copy link

The same situation is appearing in my Galaxy S10+.
There was no problem with Android 10, but the same situation appears after updating to 11.

@SGM302
Copy link

SGM302 commented Apr 19, 2021

The same problem is also happening on my Mi11 Ultra with Android 11 System.

@JustAnotherSuit
Copy link

JustAnotherSuit commented Jul 8, 2021

The issue is with Android 11's new enforced scoped storage. The fix is really simple to implement as this app is still targetting Android 10 an exemption can be made. The app manifest needs to be updated to include:

<application android:requestLegacyExternalStorage="true" ... >

Here's the relevant links for people who actually know how to go about fixing this:

https://developer.android.com/training/data-storage/manage-all-files

https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage

I'd also managed to fix this manually a few months ago using solely ADB commands to grant the permission, however I have since wiped my phone and forgotten how to go about doing it again.
I had thought it was running: "adb shell appops set --uid org.tvp.kirikiri2 MANAGE_EXTERNAL_STORAGE allow" was what solved it, but that no longer seems to work.

@JustAnotherSuit
Copy link

JustAnotherSuit commented Jul 8, 2021

I've made a pull request which should fix the issue. This is my first time doing anything on github so I hope I've done it properly, like I said it's a very simple fix. While looking into this a bit more, as in the last 30 minutes or so, I've also learned you can fix the issue by simply running this ADB command:

adb shell cmd appops set --uid org.tvp.kirikiri2 android:legacy_storage allow

Forcing legacy storage.

@JustAnotherSuit JustAnotherSuit linked a pull request Jul 8, 2021 that will close this issue
@Veshurik
Copy link

Veshurik commented Mar 20, 2022

Well, can I find out how we usual players can fix it? Because Android 11 is an ass, seriously. I have license on Google Play account. Developer even plan to update the app or not? (because I don't have an opportunity to use adb etc)

@effy46
Copy link

effy46 commented Jul 21, 2022

I heard that we could move the the folder we want to read to make the files available to the app. However, we need to find the app's root folder first. We cannot do so without root the device.....

@mwhd96
Copy link

mwhd96 commented Mar 15, 2023

I've made a pull request which should fix the issue. This is my first time doing anything on github so I hope I've done it properly, like I said it's a very simple fix. While looking into this a bit more, as in the last 30 minutes or so, I've also learned you can fix the issue by simply running this ADB command:

adb shell cmd appops set --uid org.tvp.kirikiri2 android:legacy_storage allow

Forcing legacy storage.

hi! i found the adb command on A13 didn't work to enable legacy storage, do you know other way to fix this?
Thanks

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

Successfully merging a pull request may close this issue.

7 participants