theme chooser for cm 12 broken/disappeared after update?


Question

On my Xperia Z1 compact and cm 12 I used the Dark Material theme. Then after a recent update it was disabled 'after too many app crashes'. I tried to set it again but now every time I go to settings->themes it exits with the error 'unfortunately, settings has stopped'.



Some posts on the web suggest that in settings->apps, clearing the data for the Theme Chooser app (under All Apps) will solve it. But there is no Theme Chooser app in my app list.



Is it possible to (re)install Theme Chooser somehow? Or another way to be able to switch Themes in cm 12?



phone: Sony Xperia Z1 compact (amami)
OS: cm 12.1 update 20160110
android: 5.1.1



EDIT



I tried (re)installing the Themes APK generously provided by the author of this post, but when I open the APK it first says "Do you want to install an update to this built-in application? Your existing data will not be lost. The updated application will get access to New|All", and when I choose either of those it exits with "App not installed."



That means that Theme Chooser is still on the phone. But why does it then not appear in the "All Apps" list (which would allow me to Clear Data)?



EDIT II



I dirty flashed the latest image (15/1) from the cyanogedmod website. Still no theme chooser that works.


Answer

After using adb to remove the data for the packages org.cyanogenmod.theme.chooser and org.cyanogenmod.themes.provider, as suggested above and elsewhere, and also after cleaning the data in trebuchet on the phone (by way of trial and error), the only thing that really made the Theme Chooser work again was a clean flash:




  • download the latest cyanogenmod (and Google Apps if you want) to your sd card (remove /system/* too if you are switching to Open GApps from another GApps)

  • reboot into recovery (on an Xperia Z1 Compact by repeatedly pressing volume-up at boot)

  • choose wipe data / factory reset and empty cache

  • do install update for both the CM and GApps ZIP files

  • reboot



After reboot, my apps were re-installed via my Google account and the data (images, documents) from before flashing were all still there.



The custom wallpapers and (in my case no) sounds needed to be set anew.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes