Allora, su XDA c'è questo topic [HOW-TO] Hide various Icons from the Status Bar - 2.2 & 2.33 ROMs [UPDATED: 6/4/2011] - xda-developers
al punto 7 c'è la spiegazione su come procedere
tutto chiaro se non per il piccolo particolare del grassettoFirst of all, all credit goes to pardonmyfreedom for this method! He posted this MOD for the Droid Incredible, I tested it on the EVO. Thanks buddy!
This reference assumes that you already know how to recompile a framework file using smali/baksmali.
This method will not take up space on in your status bar (This means the other icons will shift to the right and not leave a blank spot).
This guide is a reference for the smali code changes that must be made inside of services.jar to hide the CLOCK.
You need to edit StatusBarPolicy.smali, which is located within services.jar under com/android/server/status.
Search and find the following code:
Code:
.line 574
invoke-direct {p0}, Lcom/android/server/status/StatusBarPolicy;->updateClock()V
and replace it with:
Code:
.line 574
invoke-direct {p0}, Lcom/android/server/status/StatusBarPolicy;->updateClock()V
invoke-virtual {p2, v3, v6}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V
UPDATE: In v3.70, its .line 575 instead of .line 574
L'unica cosa che ho trovato è un tool automatizzato [TOOL] Automated Smali and BakSmali - xda-developers per "Smali and BakSmali"
qualcuno sa come procedere?
EDIT: ho fatto delle prove, con il tool che ho indicato.
ho provato con un file della revolution 5.2 che già avevo sul pc.
Ho fatto così:
aperta la rom, ed estratto il file service.jar (presente in system/framework)
ho aperto con winrar il file service.jar ed estratto il file classes.dex
poi ho unzippato il tool che ho linkato su e con quello ho decompilato (credo si dica così) il file classes.dex
mi ha creato una cartella con una marea di file .smali ...ma non trovo StatusBarPolicy.smali (in com/android/server non c'è una cartella status)
se riesco a trovare quella stringa in un altro file..poi come procedere all'inverso? come si fa a ricompilare e a sostituire quel file con quello che ho nel cell?