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

App crashes on Android 15 #72

Closed
shailantani opened this issue Sep 11, 2024 · 23 comments
Closed

App crashes on Android 15 #72

shailantani opened this issue Sep 11, 2024 · 23 comments
Labels
error Something crashed

Comments

@shailantani
Copy link

Hi, I just downloaded the app (2.00 Alpha) and after giving the all files access, the app crashes.
Here's the log

app.simple.peri_2024-09-11T19_01_15.794.log

@Hamza417
Copy link
Owner

The log says AppOp is blocked for Peristyle, are you using any tool that blocks app ops?

@Hamza417 Hamza417 added the error Something crashed label Sep 11, 2024
@shailantani
Copy link
Author

The log says AppOp is blocked for Peristyle, are you using any tool that blocks app ops?

Nope, using no app that blocks app permission. (I'm rooted though)
Anything more I can do to help with the error?

@Hamza417
Copy link
Owner

Anything more I can do to help with the error?

You can manually allow storage permission, if you are using Android 10+ you'll have to grant the all files access to the app, and you'll be good to go.

@shailantani
Copy link
Author

Anything more I can do to help with the error?

You can manually allow storage permission, if you are using Android 10+ you'll have to grant the all files access to the app, and you'll be good to go.

So I did the give the all files access.

2024-09-11 21 58 55

@Hamza417
Copy link
Owner

Is it still crashing?

@shailantani
Copy link
Author

shailantani commented Sep 11, 2024

Is it still crashing?

Yep, with the same error log :/

Btw, I had given the all app permission from the very beginning. The permission was always granted since the startup page

@Hamza417
Copy link
Owner

Is it still crashing?

Yep, with the same error log :/

Try running this command using adb shell or any terminal of your choice

appops set app.simple.peri READ_EXTERNAL_STORAGE allow

What is your android version?

@shailantani
Copy link
Author

Is it still crashing?

Yep, with the same error log :/

Try running this command using adb shell or any terminal of your choice

appops set app.simple.peri READ_EXTERNAL_STORAGE allow

What is your android version?
Tried that, still crashing.

I'm running Android 15 QPR1 Beta 1.1 on Pixel 7a

@Hamza417
Copy link
Owner

Reinstall the app

@shailantani
Copy link
Author

Reinstall the app

nope, didn't work.
I think it has something to do with this:

https://issuetracker.google.com/issues/237124750

@Hamza417
Copy link
Owner

It should be intended behavior and should work unless there is some different underlying issue causing this.

@Hamza417 Hamza417 added the under investigation problem is being investigated or needs more information label Sep 15, 2024
@shailantani
Copy link
Author

It should be intended behavior and should work unless there is some different underlying issue causing this.

Hmm, so what could be the issue? Something with the app permission in Android 15?

@Astler
Copy link

Astler commented Sep 16, 2024

Same issue on my Pixel 8 Pro With Android 15 Beta 2. I was able to setup all file access and external memory folder with app setup screen. But after clicking continue, the app crashed with this error.

@Hamza417
Copy link
Owner

Android 15 is still in Beta and Peristyle is only tested up to Android 14, they're maybe changing something in the 15, some new permissions restrictions maybe they do it all the time every year.

@Hamza417 Hamza417 added not planned not planned to be worked on yet unsupported apis no option or api to support this feature and removed under investigation problem is being investigated or needs more information not planned not planned to be worked on yet unsupported apis no option or api to support this feature labels Sep 17, 2024
@Hamza417
Copy link
Owner

I have found the source of the issue. It is caused by the same issue, they changed how the permissions work in Android 15, having All Files access doesn't get the system wallpaper anymore.

@Hamza417
Copy link
Owner

app-prod-release.zip

The issue is fixed now, you can update the app using this APK and let me know if it works.

@shailantani
Copy link
Author

shailantani commented Sep 18, 2024

app-prod-release.zip

The issue is fixed now, you can update the app using this APK and let me know if it works.

Hi! Thanks for the fix, but the app still seems to be crashing
But I think it's a different issue now of storage permission
Here's the log
app.simple.peri_2024-09-18T10_59_36.970.log

@Hamza417
Copy link
Owner

Does it need the combination of both? Can you also manually grant the MANAGE_EXTERNAL_STORAGE and see if it works?

@shailantani
Copy link
Author

shailantani commented Sep 18, 2024

Does it need the combination of both? Can you also manually grant the MANAGE_EXTERNAL_STORAGE and see if it works?

Would you know the adb command to manually grant the permission by any chance?

@Hamza417
Copy link
Owner

Would you know the adb command to manually grant the permission by any chance?

It should be this appops set app.simple.peri MANAGE_EXTERNAL_STORAGE allow or can manually search All Files in settings.

@shailantani
Copy link
Author

I just went to settings, and gave it all files access. and the app works now!
Thanks a lot

@Hamza417
Copy link
Owner

This isn't fixed yet, but so far it's confirmed that you'd need both READ_MEDIA_IMAGES and MANAGE_EXTERNAL_STORAGE permission to access the system wallpapers. Both of them are really sensitive permissions and Android could have easily added GET_WALLPAPERS or something like that to make it easier for both developers and users, but here we are. I'm glad it worked, and the fix will be available in the next release.

Hamza417 added a commit that referenced this issue Sep 18, 2024
@shailantani
Copy link
Author

This isn't fixed yet, but so far it's confirmed that you'd need both READ_MEDIA_IMAGES and MANAGE_EXTERNAL_STORAGE permission to access the system wallpapers. Both of them are really sensitive permissions and Android could have easily added GET_WALLPAPERS or something like that to make it easier for both developers and users, but here we are. I'm glad it worked, and the fix will be available in the next release.

Yep, a very frustrating issue, I faced it with another app as well ://
Nevertheless, thanks for adding support for Android 15 as well, really appreciate it and love the app 👍

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

No branches or pull requests

3 participants