Themes bug


fedevd

Members
Aug 8, 2014
3
11
I built MIUI v5 for Nexus 4 using Patchrom and everything worked fine, no issues, no rejects, booted up with everything working fine. My only bug resides on themea. I can apply any theme whit no issues but every time I reboot the device my theme get back to default instead of keeping the one I setted. How can I fix this? Here I add a log about it without any reasonable error:

Code:
 09-05 12:04:00.070 I/ActivityManager(607): Killing 3342:com.android.thememanager/9801 (adj 15): depends on provider com.android.providers.downloads/.DownloadProvider in dying proc android.process.media 09-05 12:14:45.088 I/ActivityManager(607): START u0 {act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT] dat=http://www.google.com/search?hl=en-US&ie=UTF-8&source=android-browser&q=miui+themea+restore+stock+reboot pkg=com.android.browser cmp=com.android.browser/.BrowserActivity (has extras)} from pid 2407 09-05 12:15:05.940 W/ContextImpl(703): Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:-1 android.content.ContextWrapper.bindService:517 miui.content.res.ThemeRuntimeManager.bindService:67 miui.content.res.ThemeRuntimeManager.access$300:26 miui.content.res.ThemeRuntimeManager$ThemeServiceThread.run:120 09-05 12:15:05.950 I/ActivityManager(607): Start proc com.android.thememanager for service com.android.thememanager/.service.ThemeService: pid=10420 uid=9801 gids={49801, 2001, 3003, 1028, 1015} 09-05 12:15:12.327 I/ActivityManager(607): Killing 10420:com.android.thememanager/9801 (adj 9): kill background 09-05 12:15:24.230 I/ActivityManager(607): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.thememanager/.ThemeResourceTabActivity bnds=[408,422][544,558]} from pid 910 09-05 12:15:24.250 I/ActivityManager(607): Start proc com.android.thememanager for activity com.android.thememanager/.ThemeResourceTabActivity: pid=10627 uid=9801 gids={49801, 2001, 3003, 1028, 1015} 09-05 12:15:48.616 I/ActivityManager(607): START u0 {cmp=com.android.thememanager/.activity.ThemePreferenceActivity} from pid 10627 09-05 12:15:55.823 I/ActivityManager(607): START u0 {cmp=com.android.thememanager/.activity.ThemeDetailActivity (has extras)} from pid 10627 09-05 12:16:00.248 W/FileUtils(10627): Failed to chmod(/data/system/theme/rights/eb6f9e75-8963-4e33-94cc-09f6a85d1f45.mra): libcore.io.ErrnoException: chmod failed: ENOENT (No such file or directory) 09-05 12:16:00.919 I/ActivityManager(607): Config changes=80000000 {0.86 722mcc310mnc en_US ldltr sw384dp w384dp h567dp 320dpi nrml port uimode=12 finger -keyb/v/h -nav/h s.7 themeChanged=1 themeChangedFlags=268466313} 09-05 12:16:02.030 W/ActivityManager(607): Activity pause timeout for ActivityRecord{4276c918 u0 com.android.thememanager/.activity.ThemeDetailActivity t12} 09-05 12:16:02.801 I/themeservice(910): service connected 09-05 12:16:02.801 I/themeservice(910): saving icon for /data/user/0/com.miui.home/cache/sym_def_app_icon.png 09-05 12:16:02.801 I/themeservice(10627): saving icon remotely(910) for /data/user/0/com.miui.home/cache/sym_def_app_icon.png ALLOW: false 09-05 12:16:03.411 I/themeservice(10627): unbinding service 09-05 12:16:03.802 I/themeservice(910): unbinding service 09-05 12:16:05.353 E/libthemeutils(11046): JNI_OnLoad 09-05 12:16:05.353 I/libthemeutils(11046): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:16:05.353 I/libthemeutils(11046): Load success 09-05 12:16:06.605 E/libthemeutils(11087): JNI_OnLoad 09-05 12:16:06.605 I/libthemeutils(11087): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:16:06.605 I/libthemeutils(11087): Load success 09-05 12:17:35.480 W/WindowManager(607): mConfiguration={0.86 722mcc310mnc en_US ldltr sw384dp w384dp h567dp 320dpi nrml port uimode=12 finger -keyb/v/h -nav/h s.7 themeChanged=1 themeChangedFlags=268466313} 09-05 12:17:35.480 V/WindowManager(607): #1: Token{4253e538 ActivityRecord{4276c918 u0 com.android.thememanager/.activity.ThemeDetailActivity t12}} 09-05 12:17:35.480 V/WindowManager(607): #0: Token{423bea88 ActivityRecord{41b0df30 u0 com.android.thememanager/.ThemeResourceTabActivity t12}} 09-05 12:17:35.480 V/WindowManager(607): #10: Window{4238d9e0 u0 com.android.thememanager/com.android.thememanager.activity.ThemeDetailActivity} 09-05 12:17:35.480 V/WindowManager(607): #11: Window{423de4b0 u0 com.android.thememanager/com.android.thememanager.ThemeResourceTabActivity} 09-05 12:17:54.810 I/themeservice(703): add pending job /data/data/com.android.systemui/cache/com.android.vending.png 09-05 12:17:54.810 I/themeservice(703): binding service 09-05 12:17:54.810 W/ContextImpl(703): Implicit intents with startService are not safe: Intent { act=com.miui.service.THEME } android.content.ContextWrapper.bindService:517 miui.content.res.ThemeRuntimeManager.bindService:67 miui.content.res.ThemeRuntimeManager.access$300:26 09-05 12:17:54.810 W/ContextImpl(703): Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:-1 android.content.ContextWrapper.bindService:517 miui.content.res.ThemeRuntimeManager.bindService:67 miui.content.res.ThemeRuntimeManager.access$300:26 miui.content.res.ThemeRuntimeManager$ThemeServiceThread.run:120 09-05 12:17:54.830 E/libthemeutils(11595): JNI_OnLoad 09-05 12:17:54.830 I/libthemeutils(11595): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:17:54.830 I/libthemeutils(11595): Load success 09-05 12:17:54.840 I/themeservice(703): service connected 09-05 12:17:54.840 I/themeservice(703): saving icon for /data/data/com.android.systemui/cache/com.android.vending.png 09-05 12:17:54.840 I/themeservice(10627): saving icon remotely(703) for /data/data/com.android.systemui/cache/com.android.vending.png ALLOW: true 09-05 12:17:55.831 I/themeservice(703): unbinding service 09-05 12:17:56.572 E/libthemeutils(11620): JNI_OnLoad 09-05 12:17:56.572 I/libthemeutils(11620): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:17:56.572 I/libthemeutils(11620): Load success 09-05 12:17:56.682 I/themeservice(910): add pending job /data/user/0/com.miui.home/cache/com.nolanlawson.logcat.png 09-05 12:17:56.692 I/themeservice(910): binding service 09-05 12:17:56.692 W/ContextImpl(910): Implicit intents with startService are not safe: Intent { act=com.miui.service.THEME } android.content.ContextWrapper.bindService:517 miui.content.res.ThemeRuntimeManager.bindService:67 miui.content.res.ThemeRuntimeManager.access$300:26 09-05 12:17:56.702 I/themeservice(910): service connected 09-05 12:17:56.702 I/themeservice(910): saving icon for /data/user/0/com.miui.home/cache/com.nolanlawson.logcat.png 09-05 12:17:56.702 I/themeservice(10627): saving icon remotely(910) for /data/user/0/com.miui.home/cache/com.nolanlawson.logcat.png ALLOW: true 09-05 12:17:56.762 I/themeservice(11087): add pending job /data/data/com.android.vending/cache/com.nolanlawson.logcat.png 09-05 12:17:56.772 I/themeservice(11087): binding service 09-05 12:17:56.772 W/ContextImpl(11087): Implicit intents with startService are not safe: Intent { act=com.miui.service.THEME } android.content.ContextWrapper.bindService:517 miui.content.res.ThemeRuntimeManager.bindService:67 miui.content.res.ThemeRuntimeManager.access$300:26 09-05 12:17:56.792 I/themeservice(11087): service connected 09-05 12:17:56.792 I/themeservice(11087): saving icon for /data/data/com.android.vending/cache/com.nolanlawson.logcat.png 09-05 12:17:56.792 I/themeservice(10627): saving icon remotely(11087) for /data/data/com.android.vending/cache/com.nolanlawson.logcat.png ALLOW: true 09-05 12:17:57.043 E/libthemeutils(11645): JNI_OnLoad 09-05 12:17:57.043 I/libthemeutils(11645): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:17:57.043 I/libthemeutils(11645): Load success 09-05 12:17:57.173 E/libthemeutils(11661): JNI_OnLoad 09-05 12:17:57.173 I/libthemeutils(11661): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:17:57.173 I/libthemeutils(11661): Load success 09-05 12:17:57.703 I/themeservice(910): unbinding service 09-05 12:17:57.793 I/themeservice(11087): unbinding service 09-05 12:17:59.105 E/libthemeutils(11706): JNI_OnLoad 09-05 12:17:59.105 I/libthemeutils(11706): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:17:59.105 I/libthemeutils(11706): Load success 09-05 12:17:59.285 E/libthemeutils(11731): JNI_OnLoad 09-05 12:17:59.285 I/libthemeutils(11731): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:17:59.285 I/libthemeutils(11731): Load success 09-05 12:18:23.211 E/libthemeutils(11836): JNI_OnLoad 09-05 12:18:23.211 I/libthemeutils(11836): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:18:23.211 I/libthemeutils(11836): Load success 09-05 12:22:14.447 D/MicloudPushService(10848): micloudPushType=MicloudPushType {packageName=com.android.thememanager, contentAuthority=com.android.thememanager, pushType=cmd, pushName=micloud.theme.cmd, watermarkType=p, watermark=0} 09-05 12:28:27.495 D/MicloudPushService(10848): micloudPushType=MicloudPushType {packageName=com.android.thememanager, contentAuthority=com.android.thememanager, pushType=cmd, pushName=micloud.theme.cmd, watermarkType=p, watermark=0} 09-05 12:28:36.295 I/themeservice(857): add pending job /data/data/com.trafficctr.miui/cache/com.xiaomi.xmsf.png 09-05 12:28:36.295 I/themeservice(857): binding service 09-05 12:28:36.295 W/ContextImpl(857): Implicit intents with startService are not safe: Intent { act=com.miui.service.THEME } android.content.ContextWrapper.bindService:517 miui.content.res.ThemeRuntimeManager.bindService:67 miui.content.res.ThemeRuntimeManager.access$300:26 09-05 12:28:36.335 I/themeservice(857): service connected 09-05 12:28:36.335 I/themeservice(857): saving icon for /data/data/com.trafficctr.miui/cache/com.xiaomi.xmsf.png 09-05 12:28:36.335 I/themeservice(10627): saving icon remotely(857) for /data/data/com.trafficctr.miui/cache/com.xiaomi.xmsf.png ALLOW: true 09-05 12:28:36.945 E/libthemeutils(12186): JNI_OnLoad 09-05 12:28:36.945 I/libthemeutils(12186): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:28:36.945 I/libthemeutils(12186): Load success 09-05 12:28:37.206 E/libthemeutils(12212): JNI_OnLoad 09-05 12:28:37.206 I/libthemeutils(12212): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:28:37.206 I/libthemeutils(12212): Load success 09-05 12:28:37.336 I/themeservice(857): unbinding service 09-05 12:28:37.606 E/libthemeutils(12240): JNI_OnLoad 09-05 12:28:37.606 I/libthemeutils(12240): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:28:37.606 I/libthemeutils(12240): Load success 09-05 12:28:37.826 E/libthemeutils(12258): JNI_OnLoad 09-05 12:28:37.826 I/libthemeutils(12258): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:28:37.826 I/libthemeutils(12258): Load success 09-05 12:28:38.037 E/libthemeutils(12271): JNI_OnLoad 09-05 12:28:38.037 I/libthemeutils(12271): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:28:38.037 I/libthemeutils(12271): Load success 09-05 12:30:04.088 E/libthemeutils(12652): JNI_OnLoad 09-05 12:30:04.088 I/libthemeutils(12652): RegisterNatives start for 'miui/content/res/ThemeNativeUtils' 09-05 12:30:04.088 I/libthemeutils(12652): Load success

Hope any one helps me, thanks!!
 
:bump:

Looks like is a language issue.. If I set chinesse language and I reboot the device, the system keep the theme, but with english setted, theme come back to default..

No one any idea about it?