Ich benötige Hilfe beim Bearbeiten der Services.jar

FormelLMS

FormelLMS

Dauergast
380
Hi,
ich habe am Hero schon ein paar Themes gemacht, möchte das gleiche jetzt für das Nexus One machen.
Dort ist es ja nun auch so, dass die weiße Leiste oben ziemlich schlecht aussieht.
Bisher habe ich im Web immer veränderte service.jar gefunden.
Nun möchte ich das aber selbst mal können.

Wer von euch hat das schonmal gemacht?
Eigentlich möchte ich nur die Schrift weiß statt schwarz in der Statusbar haben.
Ich weiß, dass das über die services.jar geht.

Ich habe bereits den Tipp bekommen, dass es drei Programme gibt:

You can get smali/baksmali here.

I use PSPad to edit the files in windows. I right click and select open with PSPad.


Once you crack open services.jar/classes.dex with baksmali ....there are (2) files of concern, the first is com/android/server/status/StatusBarIcon.smali ... locate this file and open it up and search for ...

Code:
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V
Above that line (2 lines up) ... you'll see ...

Code:
const/high16 v6, -0x100
That's black .. change to ...

Code:
const v6, -0x1
That's white ... this is a simply color change and easier since invoke-virtual is going to give us color out right ... we just have to change the color.

Then locate file ... com/android/server/status/com/android/server/status/StatusBarService.smali

There are (3) lines you need to search for here ... now they don't have inherent color change properties anymore ... which is why colorChange.jar is jacked up for you.

The threes lines to search for (and yes they are each in different places of the file) ... are ...

Code:
iput-object v7, p0, Lcom/android/server/status/StatusBarService;->mDateView:Lcom/android/server/status/DateView;

iput-object v7, p0, Lcom/android/server/status/StatusBarService;->mSpnLabel:Landroid/widget/TextView

iput-object v7, p0, Lcom/android/server/status/StatusBarService;->mPlmnLabel:Landroid/widget/TextView;
Again, since these are iput-object calls ... there's no inherent color changing properties ....

You must add the (2) color change lines above each of these lines ... the first lines set a variable for the color value (which in the example) ... the second line forces the text to that color with a call to setTextColor(). So when you're done ... those three lines will be 9 lines (3 lines in 3 seperate places in the file) ... as such ...

Code:
const v8, -0x1

invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V

iput-object v7, p0, Lcom/android/server/status/StatusBarService;->mDateView:Lcom/android/server/status/DateView;
Code:
const v8, -0x1

invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V

iput-object v7, p0, Lcom/android/server/status/StatusBarService;->mSpnLabel:Landroid/widget/TextView;
Code:
const v8, -0x1

invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V

iput-object v7, p0, Lcom/android/server/status/StatusBarService;->mPlmnLabel:Landroid/widget/TextView;
See how we're now setting a color variable and calling invoke-virtual prior to iput-object? ... that's the magic.
wink.gif


Save all that up and then run smali ... reinsert your classes.dex ... and you should be all set.

~enom~

Aber ich verstehe das nicht.

Wenn mir da jemand helfen könnte... Ich kann nichtmals dieses baksmali starten. ich denke, damit wäre mir schon gut geholfen...

Danke euch!!!
 
Hast du das schonmal gemacht?
Java ist, meiner Meinung nach drauf. So ein bisschen weniger Orakeln und drumherum reden wäre toll.

Welches Java meinst du? Dieses: Java-Downloads für alle Betriebssysteme - Sun Microsystems habe ich installiert.

Wäre toll, wenn ich wirklich Hilfe bekommen würde. Danke nochmals.
 

Ähnliche Themen

D
Antworten
17
Aufrufe
391
datNeMo
D
H
Antworten
2
Aufrufe
1.306
Hcman
H
P
  • Gesperrt
Antworten
2
Aufrufe
1.333
hagex
hagex
Zurück
Oben Unten