yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Robobob1221:
Are you using someone elses ROM as a base or your own? Does it already have static instances? I'm like you, a newbie to this, and if you do copy over these .methods you gotta make sure that any public references are actually present in your values and maybe other xml in the res folder, and that any of those v numbers in the smali don't reference another instance, at least I think that's so, from what I've read.

That link I provided was referencing the not the systemUi, maybe services.jar. you try it in the clock smali, if you got one?
[Android Software/Hacking General [Developers Only]] thicklizard:
yes it already has the static instances. would the code be differrent from services.jar and systemui?
[Android Software/Hacking General [Developers Only]] Robobob1221:
In the clock smali, if you have it, search for the .method private final updateClock()V.

What constant values (const-string v4) do you have? Is it "am" and "pm" like in the post or something else??
[Android Software/Hacking General [Developers Only]] thicklizard:
.method final updateClock()V

.locals 3

.prologue

.line 125

iget-object v0, p0, Lcom/android/systemui/statusbar/Clock;->mCalendar:Ljava/util/Calendar;

invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

move-result-wide v1

invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

.line 126

invoke-direct {p0}, Lcom/android/systemui/statusbar/Clock;->getSmallTime()Ljava/lang/CharSequence;

move-result-object v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/Clock;->setText(Ljava/lang/CharSequence;)V

.line 127

return-void

.end method

Is the exact code
[Android Software/Hacking General [Developers Only]] Robobob1221:
EDIT: I just had a thought. any reference to

Lcom/android/server/status/

you should try replacing with

Lcom/android/systemui/statusbar/

in the original link

.method private final updateClock()V
.locals 6

.prologue
.line 940
iget-object v0, p0, Lcom/android/systemui/statusbar/Clock;->mCalendar:Ljava/util/Calendar;

invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

move-result-wide v1

invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

.line 941
iget-object v0, p0, Lcom/android/systemui/statusbar/Clock;->mClockData:Lcom/android/systemui/statusbar/IconMerger;

iget-object v1, p0, Lcom/android/systemui/statusbar/Clock;->mContext:Landroid/content/Context;

invoke-static {v1}, Landroid/text/format/DateFormat;->getTimeFormat(Landroid/content/Context;)Ljava/text/DateFormat;

move-result-object v1

iget-object v2, p0, Lcom/android/systemui/statusbar/Clock;->mCalendar:Ljava/util/Calendar;

invoke-virtual {v2}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

move-result-object v2

invoke-virtual {v1, v2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

move-result-object v1

const-string v4, "PM"

const-string v5, ""

invoke-virtual {v1, v4, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

move-result-object v1

const-string v4, "AM"

const-string v5, ""

invoke-virtual {v1, v4, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

move-result-object v1

iput-object v1, v0, Lcom/android/systemui/statusbar/IconMerger;->text:Ljava/lang/CharSequence;

.line 942
iget-object v0, p0, Lcom/android/systemui/statusbar/Clock;->mService:Lcom/android/systemui/statusbar/StatusBarService;

iget-object v1, p0, Lcom/android/systemui/statusbar/Clock;->mClockIcon:Landroid/os/IBinder;

iget-object v2, p0, Lcom/android/systemui/statusbar/Clock;->mClockData:Lcom/android/systemui/statusbar/IconMerger;

const/4 v3, 0x0

invoke-virtual {v0, v1, v2, v3}, Lcom/android/systemui/statusbar/StatusBarService;->updateIcon(Landroid/os/IBinder;Lcom/android/systemui/statusbar/IconMerger;Lcom/android/systemui/statusbar/NotificationData;)V

.line 943
return-void

.end method

OK I've made some more edits. THere was a reference to IconData but I didn't have that so changed it to IconMerger. If you have it change it back.

I think that this might have more chance of working as all the references being made the smali a present in our systemui.apk not the services.jar. give it a go and see what happens

If it fails spectacularly:(, as I suspect, do as Bill Bowers suggested find another sense 3.0 Rom that has such mod implemented and check out their clock smali update .method. It will probably be of more help.
[Android Software/Hacking General [Developers Only]] thicklizard:
If it fails spectacularly:(, do as Bill Bowers suggested find another sense 3.0 Rom that has such mod implemented and check out their clock smali update .method. It will probably be of more help.[/QUOTE]

going through several tweaks apks. this is what i come up with.

invoke-virtual {v2, v4}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v4

check-cast v4, Landroid/preference/ListPreference;

iput-object v4, p0, Lcom/roman/tweaks/activities/ClockActivity;->mAmPmStyle:Landroid/preference/ListPreference;

Not sure where to go from here.
[Android Software/Hacking General [Developers Only]] Robobob1221:
I believe these are making reference to the tweak apks, sush as SOSTweaks or LeeDroidTweaks. You need that as well to make those work.

I've edited that update .method again to make all the references to the files found in the systemui rather than services.jar in my previous post. One I'm not sure about is the IconData one, as we have IconMerger so I changed it to that. Try it again see if it works. Sorry if it doesn't:confused:

I had missed one but I've edited it again so try it now
[Android Software/Hacking General [Developers Only]] thicklizard:
I appreciate all your help still a no go though.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Man, sorry.

What is it, no status bar or bootloops?
[Android Software/Hacking General [Developers Only]] thicklizard:
no status bar. Ive managed to center the clock and remove gps icon i just can not get rid of the am pm
[Android Software/Hacking General [Developers Only]] Robobob1221:
i noticed there was a space in my am and pm quotes. whether that affected it....

mind me asking, how you get the centered clock??:o
[Android Software/Hacking General [Developers Only]] Robobob1221:
Thanks I'll check it out later.

Let me know if you find a solution to the am/pm thing. I'll look again at it tomo. Must sleep, early morning here!
[Android Software/Hacking General [Developers Only]] maped:
I think there is no tutorial specific for ICS (all is for froyo or ginger) to change color to clock / date / carrier in lockscreen mode (and center clock too).

I'm trying in all ways but my rom AOSP rascream ics 4.0.4 not hear of it.

http://xdaforums.com/showpost.php?p=26663929&postcount=3426

Other users are put like me :o

http://xdaforums.com/showpost.php?p=26350029&postcount=2531

and others but I don't find the post ;)
[Android Software/Hacking General [Developers Only]] Max128:
Hello, I need help.

I have sense 3.0 on my htc flyer. I follow this tutorial (http://xdaforums.com/showthread.php?t=1238079) to put a backround in my notification bar.

Finally, nothing changes. :(
[Android Software/Hacking General [Developers Only]] Robobob1221:
I'm a bit stumped with the mod. Other how to threads I think are referimg to the froyo is and it seems a lot of changes have occurred. I've looked at Swags Systemui, and a few others but they have been heavily customised using Romanbb tweaks as a base I think. If possible you could ask them for a guide.

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] billbowers:
For sense 3.0, decompile systemui.apk and navigate to res/drawable-hdpi. Then find statusbar_background.png, and erase the image. Don't delete it, load it into a graphic editing program and erase it, then save the file, recompile and push to system/app.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Some help needed/ suggestion

OK so I've been trying to get this mod to work Add toggle settings for hiding clock, am/pm

I got the settings to work by changing the .field privates references.

The settings.apk was no problem

I've moved onto the SystemUI.apk and now I've come across a stumbling block. being a different phone there will be difference in smali and the evo4g doesn't have a PhoneStatusBar.smali which is referenced in the Clock.smali.

const/4 v0, 0x0

invoke-static {v2, v7, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v7

const/4 v0, 0x0

if-eqz v7, :cond_nohide

const/16 v0, 0x8

:cond_nohide
const v1, 0x7f0e0027

invoke-virtual {p0, v1}, [COLOR="Red"]Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;-[/COLOR]>findViewById(I)Landroid/view/View;

move-result-object v1

invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

This is the only instance in the code. Now I was wondering, can I remove it or does it need to be replaced with another reference? If so to which smali would it be?
[Android Software/Hacking General [Developers Only]] thicklizard:
I followed that tutorial problem I had was the rom I'm on doesn't have public xml in the settings apk
[Android Software/Hacking General [Developers Only]] daevan:
cloning android devices

HI GUYS, IM NEWBE, IM FROM MEXICO AND I´M WONDERING IF THER´S A SOLUTION FOR ME... I NEED TO CLON ALMOST 2000 SAMSUNG ACE S5830i, THE PROBLEM IS... THAT IM USING SMARTLOCK TO OBVIOUSLY BLOCK ALL THE APPS (´CAUSE IT´S A WORK TOOL NOT A FUNNY GADGET :(..) AND 3G WATCH DOG FOR 3G DATA, I NEED TO CLON THE SAME APPS AND CONFIGURATIONS IN ALL THE DEVICES... IN FACT I DID IT WHIT CLOCKWORKMOD BUT IM USING TOO AN APP CALLED FORMIIK IT´S AN APP THAT SYNC INFORMATION THROU´3G NETWORK AND ALL THE PHONES ARE ENGAGED TO A CENTRAL SYSTEM BY THE UUID, THE PROBLEM IS THAT WHEN I RESTORE THE CWM IMAGE, IT CLONES THE UUID TOO, AND IT DRIVES ME CRAZY, I HOPE THAT SOME ONE COULD GIVE ME A CLUE, I´VE TRIED WHIT ADVANCE RESTORE AND NOTHING HAPPENS, ODIN CLONES RADIOS TOO I THINK... I DON´T KNOW WHAT ELSE DO..
[Android Software/Hacking General [Developers Only]] Max128:
I replace my picture with my wallpaper. Black instead of white. I restarted and no change bar is always white, what did I do it?
[Android Software/Hacking General [Developers Only]] fernando sor:
Have you tried titanium backup?
[Android Software/Hacking General [Developers Only]] fernando sor:
Public.xml is in every app. That's where the ids are numbered.
[Android Software/Hacking General [Developers Only]] thicklizard:
found it i had a bad decompile. next question how do i know what to change the resource id to?
[Android Software/Hacking General [Developers Only]] fernando sor:
What are you wanting to do?
[Android Software/Hacking General [Developers Only]] thicklizard:
Add toggle in settings to hide am pm

this is what Ive done just getting errors upon recompile

<public type="string" name="battery_history_awake" id="0x7f0a0a08" />

<public type="string" name="battery_history_screen_on" id="0x7f0a0a09" />

<public type="string" name="disable_ampm" id="0x7f0a0a10" />

<public type="string" name="disable_ampm_text" id="0x7f0a0a11" />

<public type="string" name="disable_time" id="0x7f0a0a12" />

<public type="string" name="disable_time_text" id="0x7f0a0a13" />

<public type="string" name="battery_history_phone_on" id="0x7f0a0a0a" />
[Android Software/Hacking General [Developers Only]] fernando sor:
You mean you want to add a toggle to quick settings?
[Android Software/Hacking General [Developers Only]] thicklizard:
Just the regular settings under date and time
[Android Software/Hacking General [Developers Only]] Robobob1221:
You don't need to enter the public values. Just make sure that you enter the new ids, and the check box reference in date_pref in the xml folder. Compile the apk and it should automatically generate the public.xml values for you. That's how I do it now and it works no problem.

Also public values you gave don't follow the value system, too high numbers I think or wrong position.

Do you have the PhoneStatusBar.smali in your SystemUI.apk then?

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] fernando sor:
It won't be called that in ginger bread
[Android Software/Hacking General [Developers Only]] Robobob1221:
Do you know what it will be called I've searched through most of the smali is the systemui but can't find the .method I'm looking for :(

Is it StatusBarService.smali?

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] thicklizard:
Is this what it should like then

<public type="string" name="disable_ampm" id="@+id/new_button"/>

<public type="string" name="disable_ampm_text" id="@+id/new_button"/>

<public type="string" name="disable_time" id="@+id/new_button"/>

<public type="string" name="disable_time_text" id="@+id/new_button"/>
[Android Software/Hacking General [Developers Only]] fernando sor:
Yes
[Android Software/Hacking General [Developers Only]] thicklizard:
look at this method

.method setDateViewVisibility(ZI)V
[Android Software/Hacking General [Developers Only]] Robobob1221:
I meant enter nothing into the public xml.

Add this to string.xml

<string name="disable_time">Hide Time</string>
<string name="disable_time_text">Remove time from status bar</string>
<string name="disable_ampm">Hide AM/PM</string>
<string name="disable_ampm_text">Remove AM/PM from time in status bar</string>

this to xml/date_time_prefs.xml

<CheckBoxPreference android:title="@string/disable_time" android:key="hide_time" android:summary="@string/disable_time_text" />
<CheckBoxPreference android:title="@string/disable_ampm" android:key="hide_ampm" android:summary="@string/disable_ampm_text" />

when you compile the Settings.apk it will generate the public.xml so no need to enter anything
[Android Software/Hacking General [Developers Only]] Robobob1221:
One thing I forgot to mention and I dunno if you've already done it you need to change the checkbox reference to match the htc checkbox reference. And also for the private reference in the smali for DateTimeSettings the preference needs to be htc specific. Well at least that's what worked for me.

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] thicklizard:
Could you give me an example?
[Android Software/Hacking General [Developers Only]] Robobob1221:
ok for the checkbox in the xml/date_time_pref. Make the change for hide am/pm as well:

<com.htc.preference.HtcCheckBoxPreference android:title="@string/disable_time" android:key="hide_time" android:summary="@string/disable_time_text" />

in the DateTimeSettings.smali the op used:

Lcom/android/settings/DateTimeSettings
Landroid/preference/CheckBoxPreference

They were quoting for aosp settings, I think, so you want to change to reference htc settings and preference. So your .field private would be:

.field private mHideTime:Lcom/htc/preference/HtcPreference;

.field private mHideAmPm:Lcom/htc/preference/HtcPreference;

and checkbox reference:

Lcom/htc/preference/HtcCheckBoxPreference

Make sure those are changed otherwise I think the settings will FC or not work.

BTW did you get SystemUI.apk to compile ok? I'm having problems with that. Theres a problem with the Clock.smali edits. I'm not sur which lines are causing the problems
[Android Software/Hacking General [Developers Only]] Robobob1221:
What might be wrong???

Ok so I think I've narrowed down my problem to one line, as with it removed the SystemUI compiles. In the original post the line was this:

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

So I have changed it to this:

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

What do I need to change in order for it to work? Anyone??
[Android Software/Hacking General [Developers Only]] thicklizard:
That's what I edited to as well with no luck
[Android Software/Hacking General [Developers Only]] Robobob1221:
I saw over on the d3rp thread you got the am/pm solved. What did you change to get it working?
[Android Software/Hacking General [Developers Only]] BombayBoy:
book loader unlocked?

Hi,

from the above log, can someone tell me if the bootloader is unlocked?

Thanks:)
[Android Software/Hacking General [Developers Only]] il Duce:
I can't tell.
[Android Software/Hacking General [Developers Only]] maped:
seems to know the values ​​for centering the clock on lockscreen mode and change color in blue holo is a state secret :(. No one on xda and rootzwiki able to help me (and the community too) for search a solution on ics 4.0.4.

P. S. Who wants to help are welcome, for now are still in these results.

P.S.S. I think it's a smali or jar files to edit, the framework-res.apk now I've looked all over :o

http://xdaforums.com/showpost.php?p=26681508&postcount=316
[Android Software/Hacking General [Developers Only]] jf85:
Can some one help me with my non booting xperia ray ?

it cannot boot in to anything so i need to flash it but how ???

i cannot do anything on it after i got angry and tryed to install an rom cuz an devloper here installed one for me and that rom dident work at all.. couldent call not get calls ether couldent use market so i tryed to install an rom from here but i followed all the things it sayd but it got me to this.. PLEASE HELP ME FAST !.. 2 weeks old phone...
[Android Software/Hacking General [Developers Only]] Robobob1221:
Can you get into your custom recovery, CWM or whatever you're using?

Have you searched the xperia ray forum for an answer?

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] jf85:
Well i cant come to cwm cuz i gues it's eather not still there or just bug.

And yes ive searched but right now im sitting on an computer that is going to be returned to sender so this computer i cant sit on so long

Or rather the grapic card shuts down after awhile so its hard to sit a long time searching on my problem.

the thing i know is that it is able to wright somthing in fastboot right ?

so it flashes my device on some way right ?:confused:
[Android Software/Hacking General [Developers Only]] Robobob1221:
Try flashing CWM again from hboot. Look here. You'll need to find zip image to match your phone.
[Android Software/Hacking General [Developers Only]] jf85:
i sayd ! i cant start anything from my mobile ?!

how shud i be able to use hbot ?

what is hbot !?
[Android Software/Hacking General [Developers Only]] Robobob1221:
Does your power button work?

Volume Down Button+Power Button takes you to Bootloader

Did you read the link?? Click Here How to flash clockwork mod from bootloader. It doesn't need to boot up your rom
[Android Software/Hacking General [Developers Only]] jf85:
no problem now ive fixed it :) ty any ways
[Android Software/Hacking General [Developers Only]] Edubyah:
Compiling and porting

Does anyone know how to start compiling AOSP or CM for a device not in the menu? Really like some help starting this project. Thanks in advance anybody.

Edit: Also I'd like to know what to do when "repo init -u <url of repo> -b ics" ends with error

fatal: manifest 'default.xml' not available
fatal: manifest default.xml not found
[Android Software/Hacking General [Developers Only]] thicklizard:
Edit I found my error
[Android Software/Hacking General [Developers Only]] rishabhssj0:
very useful thread

ty for it
[Android Software/Hacking General [Developers Only]] Zerosuit Connor:
Trying to port an arc rom to the play, how would I go about doing this?
[Android Software/Hacking General [Developers Only]] gray_mac:
unlocking bootloader for Sony Xperia S (LT26i)

Hey guys

If you can help and share some advice I'd appreciate it. Trying to unlock bootloader for the LT26i and its having none of it. I'm using http://xdaforums.com/showthread.php?t=1527159 doomlord tutorial to do it, and following it to the exact letter, but each time its not working.

Im not able to boot it into fastboot mode, each time I do it, its just going to flash mode.

Im getting through this part;

get the IMEI code for ur device: type *#06# in phone dialer to find it out, note only the digits (no dashes)

download the fastboot package with usb drivers (alternate drivers if the ones in package dont work)

make sure u have a windows PC with USB cable to connect the phone

power down ur phone and keeping the Volume Up button pressed connect the USB cable to PC this will trigger FASTBOOT mode and windows will start driver installation, extract the above package and point the driver install to that location (usb_driver) folder

but when doing the volup and power button, plug the USB cable in to PC it just triggers flash mode not fastboot, which is really annoying as I want off Sony and ORangeUK's bloatware and rock out on CM9 :)

any tips on how I can get it to go into fastboot mode to progress on to the next step of unlocking bootloader.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Power Menu mod

If I want to edit the power menu which .apk would that be? I want to change the background image to match my pop up menus (see my attached pics).

Is it possible to get these to match?? Would it be that I need to change the @style reference in the xml somewhere?
[Android Software/Hacking General [Developers Only]] fernando sor:
All of those images are in com.htc.resources
[Android Software/Hacking General [Developers Only]] vanessaem:
Pretty please, can someone tell me the png of that purple cropping box in ICS 3.6?
[Android Software/Hacking General [Developers Only]] savoca:
Not exactly :P I started the Derp line of roms in February just because it sounded neat :)
[Android Software/Hacking General [Developers Only]] jeffsanace:
Im not around a whole lot, so I would like to thank everyone that is participating with this thread. It's nice to see people coming here for help and actually getting it. This is what it's all about. Thanks to all.

Sent from LTEVO!
[Android Software/Hacking General [Developers Only]] Robobob1221:
Anyone know of any mods or an app which can get music controls in the notification panel?

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] LGAlly:
I have a HTC Rhyme, and I unlocked bootloader for it, but it seems there's no working root for the Rhyme. Was wondering if you guys could help me find one, or direct me to one.

Thanks!
[Android Software/Hacking General [Developers Only]] Robobob1221:
Have you checked out this thread Click here or this one click here?
[Android Software/Hacking General [Developers Only]] LGAlly:
I tried using the "doomlord" option but when I clicked the runme.bat, after pressing a key anywhere, it said something like it couldn't find the path specified.
[Android Software/Hacking General [Developers Only]] Robobob1221:
That's from the first thread. Did you take a look at the second thread linked. That was an alternative for different software that couldn't be rooted by doomlords

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] :
Help Please [SMS Related]

Since yesterday my SMS messages just won't save, I send a message and it dissapears, so happens with my recieved ones. I've unchecked the Delete old messages option. I think it's a bug, does anyone have a fix for this ?

L.E. : I do have enough memory [500 mb on Phone and around 300 mb on SD Card]
[Android Software/Hacking General [Developers Only]] LGAlly:
Thanks, I'll look into it. But I have to ask, is there a reason to root the Rhyme? There's no custom ROMS that I know of.
[Android Software/Hacking General [Developers Only]] billbowers:
Removal of bloat ware for one...and just to be able to have access to your phones inner workings. I have a tablet that I still keep stock, but it's rooted. It's a personnel thing for me. I don't like being locked out of my own devices
[Android Software/Hacking General [Developers Only]] Robobob1221:
Using this thread as a starter you could theme your own custom rom.

Just to clarify the rhyme is the Sensation XL?

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] LGAlly:
Oohoo, that's too much for me, I'm not great at that. Idk, is that a question?