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

[BUG] force closing on 14 (AP2A.240605.024) #4495

Open
yeedatoy opened this issue Jun 20, 2024 · 2 comments
Open

[BUG] force closing on 14 (AP2A.240605.024) #4495

yeedatoy opened this issue Jun 20, 2024 · 2 comments
Labels

Comments

@yeedatoy
Copy link

Describe the bug

Launcher force closes when trying to change grids or icons on latest android builds when used as a system app. I fixed it by adding this in the manifest to work with androids newest media picker:

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to settings/home screen/
  2. Click on home screen grids
  3. Scroll down to '....'
  4. See error

Expected behavior

Launcher should open grid selection screen and ask for all files access and then allow grid selection with no issues

Screenshots

Lawnchair bug report Jun 20, 2024 3:29:41 PM
version: 14.0.0 (a799c52) (14000000)
commit: a799c52
build.brand: google
build.device: panther
build.display: AP2A.240605.024
build.fingerprint: google/panther/panther:14/AP2A.240605.024/11860263:user/release-keys
build.hardware: panther
build.id: AP2A.240605.024
build.manufacturer: Google
build.model: Pixel 7
build.security.level: 2024-06-05
build.product: panther
build.type: user
version.codename: REL
version.incremental: 11860263
version.release: 14
version.sdk_int: 34
display.density_dpi: 397
isRecentsEnabled: true

error: Uncaught exception

java.lang.SecurityException: Op READ_MEDIA_IMAGES ignore for package app.lawnchair
at android.os.Parcel.createExceptionOrNull(Parcel.java:3183)
at android.os.Parcel.createException(Parcel.java:3167)
at android.os.Parcel.readException(Parcel.java:3150)
at android.os.Parcel.readException(Parcel.java:3092)
at android.app.IWallpaperManager$Stub$Proxy.getWallpaperWithFeature(IWallpaperManager.java:1043)
at android.app.WallpaperManager$Globals.getCurrentWallpaperLocked(WallpaperManager.java:829)
at android.app.WallpaperManager$Globals.peekWallpaperBitmap(WallpaperManager.java:723)
at android.app.WallpaperManager$Globals.peekWallpaperBitmap(WallpaperManager.java:686)
at android.app.WallpaperManager.getDrawable(WallpaperManager.java:1046)
at android.app.WallpaperManager.getDrawable(WallpaperManager.java:1008)
at w7.z0.invokeSuspend(Unknown Source:7)
at mc.a.resumeWith(Unknown Source:8)
at id.k0.run(Unknown Source:112)
at d4.a.run(Unknown Source:140)
at pd.k.run(Unknown Source:2)
at pd.c.k(Unknown Source:0)
at pd.a.run(Unknown Source:97)
Suppressed: nd.h: [l2.f2@12cb7b3, y0.h@774f170, w1{Cancelling}@afb1ce9, b1@4f07d6e]
Caused by: android.os.RemoteException: Remote stack trace:
at android.os.storage.StorageManager.noteAppOpAllowingLegacy(StorageManager.java:1882)
at android.os.storage.StorageManager.checkPermissionReadImages(StorageManager.java:1911)
at com.android.server.wallpaper.WallpaperManagerService.getWallpaperWithFeature(WallpaperManagerService.java:2171)
at android.app.IWallpaperManager$Stub.onTransact(IWallpaperManager.java:541)
at android.os.Binder.execTransactInternal(Binder.java:1500)

Device information

  • Device: Google Pixel 7
  • OS: stock 14 (AP2A.240605.024)
  • App version: lastest dev builds as well as Goolers latest build from the last 12 hours and unofficial life's build

Additional context

Lawnchair bug report Jun 20, 2024 32941 PM.txt

@yeedatoy yeedatoy added the bug label Jun 20, 2024
@yeedatoy
Copy link
Author

yeedatoy commented Jun 20, 2024

This added to the manifest fixes it

https://developer.android.com/training/data-storage/shared/media

@yeedatoy
Copy link
Author

yeedatoy commented Jun 24, 2024

Thanks@ UnofficialLife. Works great now in your build labeled A15. Now grids, icons work and live wallpaper can be set without breaking launcher. Hopefully this gets pushed to stable soon. Lots of people don't know where to get these updated builds and can't use lawnchair on QPR3 without this

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

No branches or pull requests

1 participant