[Google Pixel 4a Guides, News, & Discussion] mangokm40:
LOS 20 (Jan 05 2023 build) Wallpaper & Style crashes.

---

EDIT: I found this in LOS issues page. The fix worked.

I went to "Settings->Apps->See all xx apps"

From dot menu, clicked "Show system"

I scrolled to "Wallpaper & style" (near bottom) & clicked it, then "Permissions"

I clicked "Photos and videos". Clicking "Don't allow", then "Allow" was the fix.

---

After updating from LOS19 to LOS 20, I cannot go to "Settings->Wallpaper & style".

It crashes every time.

I ran the command "adb logcat -v long > WPStylesCrash.txt"

I noticed messages like this for many packages:

[ 01-07 08:53:50.291 1643: 1643 E/PackageManager ]

Package com.android.shell was user id 0 but is now user SharedUserSetting{d33225e android.uid.shell/2000} with id 2000; I am not changing its files so it will probably fail!

This message showed a few times:

[ 01-07 08:57:31.263 2716: 2716 W/ResourcesCompat ]

Failed to inflate ColorStateList, leaving it to the framework

java.lang.UnsupportedOperationException: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7f0400f2 a=-1}, theme={InheritanceMap=[id=0x7f1303f8com.android.settings:style/Theme.Settings.Home, id=0x7f1303facom.android.settings:style/Theme.Settings.HomeBase, id=0x7f1303fbcom.android.settings:style/Theme.Settings.NoActionBar, id=0x7f1303f6com.android.settings:style/Theme.Settings, id=0x7f1303fccom.android.settings:style/Theme.SettingsBase, id=0x7f1303fdcom.android.settings:style/Theme.SettingsBase_v31, id=0x1030223android:style/Theme.DeviceDefault.Settings, id=0x1030128android:style/Theme.DeviceDefault, id=0x1030403android:style/Theme.DeviceDefaultBase, id=0x1030224android:style/Theme.Material, id=0x1030005android:style/Theme], Themes=[com.android.settings:style/Theme.Settings.Home, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}

at android.content.res.TypedArray.getColor(TypedArray.java:529)

at androidx.core.content.res.ColorStateListInflaterCompat.inflate(ColorStateListInflaterCompat.java:160)

at androidx.core.content.res.ColorStateListInflaterCompat.createFromXmlInner(ColorStateListInflaterCompat.java:125)

at androidx.core.content.res.ColorStateListInflaterCompat.createFromXml(ColorStateListInflaterCompat.java:104)

at androidx.core.content.res.ResourcesCompat.inflateColorStateList(ResourcesCompat.java:262)

at androidx.core.content.res.ResourcesCompat.getColorStateList(ResourcesCompat.java:236)

at androidx.core.content.ContextCompat.getColorStateList(ContextCompat.java:556)

at androidx.appcompat.content.res.AppCompatResources.getColorStateList(AppCompatResources.java:48)

at com.google.android.material.resources.MaterialResources.getColorStateList(MaterialResources.java:65)

at com.google.android.material.card.MaterialCardViewHelper.loadFromAttributes(MaterialCardViewHelper.java:178)

at com.google.android.material.card.MaterialCardView.<init>(MaterialCardView.java:183)

at com.google.android.material.card.MaterialCardView.<init>(MaterialCardView.java:160)

at java.lang.reflect.Constructor.newInstance0(Native Method)

at java.lang.reflect.Constructor.newInstance(Constructor.java:343)

at android.view.LayoutInflater.createView(LayoutInflater.java:858)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1010)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:1127)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)

at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1267)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:1123)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)

at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1267)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:1123)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:1130)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:1130)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)

at android.view.LayoutInflater.inflate(LayoutInflater.java:686)

at android.view.LayoutInflater.inflate(LayoutInflater.java:538)

at android.view.LayoutInflater.inflate(LayoutInflater.java:485)

at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:469)

at android.app.Activity.setContentView(Activity.java:3563)

at androidx.activity.ComponentActivity.setContentView(ComponentActivity.java:433)

at com.android.settings.homepage.SettingsHomepageActivity.onCreate(SettingsHomepageActivity.java:184)

at android.app.Activity.performCreate(Activity.java:8305)

at android.app.Activity.performCreate(Activity.java:8284)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)

[ 01-07 08:57:31.263 2716: 2716 W/ResourcesCompat ]

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loopOnce(Looper.java:201)

at android.os.Looper.loop(Looper.java:288)

at android.app.ActivityThread.main(ActivityThread.java:7872)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)