[Android Themes] lacoursiere18:
This is bc in his smali, he inlcuded all the dump.. So basically he copied his smali after he decompiled the apk and then pasted it here for a guide, which is totally fine.. But your problem is you are copying and pasting the exact things he has layed out in the OP.. This will not work..

I don't want to step on the OP's toes bc this guide is AWESOME..but if he pops in and grants me permission.. Ill tell you the way around all that..

---------- Post added at 08:40 AM ---------- Previous post was at 08:36 AM ----------

The id is there.. he might have updated to OP since..

<public type="id" name="center_clock_layout" id="0x7f070084" />

That is it^^

EDIT: Sorry disregard that... ?.. Why are you in StatusBar.smali.. I looked through his files and that is not one of the smali's he is replacing..Make sure you are in right directory..and editing the correct smali..

---------- Post added at 09:07 AM ---------- Previous post was at 08:40 AM ----------

Yes it does matter.. Public.xml is generated after you add id's, drwables, array's, strings etc etc..They generate a new public id for whatever you added..

It is VERY unlikely that they will be the same as his.. therefore you have to change them.

In the smali, it calls to a certain public id for example:

.method private updateClockVisibility()V
.locals 2

.prologue
.line 1400
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

if-nez v0, :cond_1

.line 1405
:cond_0
:goto_0
return-void

.line 1401
:cond_1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v1, 0x7f07004d

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v1

.line 1402
if-eqz v1, :cond_0
.method private updateClockVisibility()V
.locals 2

.prologue
.line 1400
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

if-nez v0, :cond_1

.line 1405
:cond_0
:goto_0
return-void

.line 1401
:cond_1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v1, [COLOR="Red"]0x7f07004d[/COLOR]

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v1

.line 1402
if-eqz v1, :cond_0

The id i highlighted in RED calls to this in his publix.xml:

<public type="id" name="[COLOR="black"][COLOR="Red"]clock[/COLOR][/COLOR]" id="[COLOR="red"]0x7f07004d[/COLOR]"

Now in a stock newly decompiled SystemUI from CM11 it might call to:

<public type="id" name="[COLOR="red"]ticker[/COLOR]" id="[COLOR="red"]0x7f07004d[/COLOR]"

SO instead of calling to the "clock" it calls to "ticker" or it could be something else.. Then either your systemui will close or a different icon might pop up ion the status bar and/or might direct you to a different location..

See the conflict..:good:

---------- Post added at 09:07 AM ---------- Previous post was at 09:07 AM ----------

Read my post above..

---------- Post added at 09:08 AM ---------- Previous post was at 09:07 AM ----------

Can you post a log of your cmd line recompiling the apk.. Maybe we can help you..