[TIP] Changing dpi and using themes in landscape on 5.1.1. error/msg and workaround

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
Couldn't find anything else on this, but can't image I will be the only one (although in the xtrestothread there was another user facing the same issue) experiencing this...

After flashing 5.1.1 (Xtrestolite) on my S6 I noticed an annoying thing. When changing my dpi to 480 (and also 520) and applying a theme I got a message after rotating my phone to landscape mode (for example in the browser or camera app.

A dialog appeared with the title "Keyboard cover attached" and the message "Unable to apply downloaded themes while the keyboard cover is attached. The default theme will be applied". Pressing ok applies the default samsung theme and the only other option is to rotate the phone back to portrait after which the dialog disappears.

The issue seems to be with the ThemeCenter.apk in the /system/priv-app/ThemeCenter folder, I'll check if I can patch it somehow but in the meantime I have a dirty workaround... after applying the theme you want just rename the 'ThemeCenter.apk' to something like 'ThemeCenter.apk.mod'. Reboot the phone and you can rotate the phone as you wish without getting the msg and the stock theme being applied.

Only downside is you can not apply other themes while having it renamed (read disabled). Going to Themes in settings gives a crash, but at least the theme sticks now. If you wish to change the theme again, just rename the apk back to normal and reboot. Most likely the default theme will be applied again but you can now change it (and after changing, same procedure... rename and reboot).

For me this is good enough as I just want the material theme, so not too much hassle. Hopefully it will be of use to others as well.
 
Last edited:

dagrim1

Senior Member
Sep 1, 2008
1,706
365
83
Reflash with stock 5.1.1 ROM via odin.
What is this for? Afaik this issue is still there with 5.1.1... Reflashing stock will reset the theme to default which indeed gets rid of the msg... But setting another team will make it appear again.
 

DTS_ManiaC

Senior Member
Oct 21, 2013
67
47
0
Istanbul
Couldn't find anything else on this, but can't image I will be the only one (although in the xtrestothread there was another user facing the same issue) experiencing this...

After flashing 5.1.1 (Xtrestolite) on my S6 I noticed an annoying thing. When changing my dpi to 480 (and also 520) and applying a theme I got a message after rotating my phone to landscape mode (for example in the browser or camera app.

A dialog appeared with the title "Keyboard cover attached" and the message "Unable to apply downloaded themes while the keyboard cover is attached. The default theme will be applied". Pressing ok applies the default samsung theme and the only other option is to rotate the phone back to portrait after which the dialog disappears.

The issue seems to be with the ThemeCenter.apk in the /system/priv-app/ThemeCenter folder, I'll check if I can patch it somehow but in the meantime I have a dirty workaround... after applying the theme you want just rename the 'ThemeCenter.apk' to something like 'ThemeCenter.apk.mod'. Reboot the phone and you can rotate the phone as you wish without getting the msg and the stock theme being applied.

Only downside is you can not apply other themes while having it renamed (read disabled). Going to Themes in settings gives a crash, but at least the theme sticks now. If you wish to change the theme again, just rename the apk back to normal and reboot. Most likely the default theme will be applied again but you can now change it (and after changing, same procedure... rename and reboot).

For me this is good enough as I just want the material theme, so not too much hassle. Hopefully it will be of use to others as well.
Thanks a lot!! That's exactly what i was looking for :)
 

SirHydarnes

Senior Member
Nov 13, 2013
1,980
2,259
153
22
could you explain exactly what to do?
Install appops from google play store. Open it and tap install then reboot.... Then open it and slide to device and find the app Themes and tap on it and uncheck Draw on top. But once you want to apply another theme, change it back