yashsingh1/xdaforums huggingface dataset:
[Android Themes] plegdroid:
This first mod will only move the clock widget into the top center of the lockscreen and will not change the location of the date within the clock widget.

How to center the date and clock is a little harder to achieve and is detailed in post #2.both mods will work on cm9 and cm10.

Before.

View attachment 1108408

After.

View attachment 1108405

revised: 20-06-12.

First, you'll need to decompile framework res apk,using apktool. Iam not going to cover how to use apktool, as the know how already exists here on xda. then edit the below values from the decompiled xml file.

font_right_margin dictates left and right movement, the value in my example is based on a 4.3 inch screen, so playing around this value may give better results on a smaller or bigger screen where 56dip does not dead center the clock widget.

so edit.

@res/values/dimens.xml

edit the lines.

name="keyguard_lockscreen_status_line_font_right_margin">56dip

56dip gives me dead center.

name="keyguard_lockscreen_status_line_clockfont_top_margin">22dip

22dip dictates how far from the top of the screen the top of the clock widget sits in my example.

name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12dip

not sure how bottom margin effects this, but I've set this to 12dip, as higher values pull the widget down in a undesirable way, and this value keeps it in check from doing so.

then take what ever steps to recompile and flash the apk back into system apps.

:)

reference with thanks. :)

http://developer.android.com/reference/android/app/ActionBar.LayoutParams.html

http://stackoverflow.com/questions/3482742/android-gravity-and-layout-gravity

http://sandipchitale.blogspot.com/2010/05/linearlayout-gravity-and-layoutgravity.html?m=1

cm9 cfx 4.0.4 nightlys
[Android Themes] plegdroid:
How to center clock and date on lockscreen. will work on both cm9 and cm10.

The xml you need to edit this time is

@layout. keyguard_screen_tab_unlock.xml.

we're going to change android:layout_gravity="right"

to.

android:layout_gravity="center_horizontal"

and also remove reference to.

android:layout_marginright ="@dimen/keyguard_lockscreen_status_line_front_right_margin

the first mod to move the clock relied on keygaurd_lockscreen_line_front_right_margin to move the clock left or right, as this was the constant that controlled its position from the right margin.

useing the constants, android:layout_gravity="center_horizontal" and android:layout_gravity="center"> these will now place the clock into the center of its container horizontal center without changing its size. and (center) also place it both within horizontal and vertical axis again within its container.

removing reference to android:layout_marginright ="@dimen/keyguard_lockscreen_status_line_front_right_margin, will un anchor the clock from this constant.

so to the mod.

res/layout/keyguard_screen_tab_unlock.xml

<com.android.internal.widget.DigitalClock android:id="@+id/time"

android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin"

android:layout_marginBottom="12dip"

-remove android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"

-remove android:layout_gravity="right">

+add android:layout_gravity="center_horizontal">

<!-- Because we can't have multi-tone fonts, we render two TextViews, one on

top of the other. Hence the redundant layout... -->

<LinearLayout

android:orientation="horizontal"

-remove android:layout_gravity="right"

-remove android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin">

+add android:layout_gravity="center">

<TextView

android:id="@+id/date"

<TextView

android:id="@+id/status1"

-remove android:layout_gravity="right"

-remove android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"

+add android:layout_gravity="center_horizontal"

android:singleLine="true"

android:ellipsize="marquee"

android:textAppearance="?android:attr/textAppearanceMedium"

equaly, the lines android:layout_gravity="right"

could just be changed to.

android:layout_gravity="center_horizontal"

and.

android:layout_gravity="center">

cm9 cfx 4.0.4 nightlys
[Android Themes] evilcuber:
what file is it for the first part?

@res/layout / ?
[Android Themes] plegdroid:
morning mate,

I've re wrote the op, with a better guide. :)
[Android Themes] ahlulnugraha:
It will be nice if you describe the different about "match parent" between "fill parent".;)
[Android Themes] plegdroid:
morning, not sure myself to why it works, iam not a developer, just someone ocd enough to want to center the widget. with no other guidance that I can find anywhere and after a lot of trolling to find it . it's been trial and error to make it work. so the more I can find/figure out I'll add to the op. :)

just sharing my findings for other people, who may find it helpful to achieve this mod. :)
[Android Themes] evilcuber:
Is framework res a system apk? Not sure if i select yes or not. also do i have to sign it?
[Android Themes] plegdroid:
afternoon, yes it's a system apk, and no, you don't need to sign it. :)
[Android Themes] evilcuber:
So I did the mods with apk manager and when I put it into my rom and flashed it, the lockscreen graphics are screwed up and the status bar is resized randomly? Also check your PM ;)
[Android Themes] evilcuber:
Hey i still get the same graphics errors with your editd xmls.. and ideas :P?
[Android Themes] plegdroid:
evening,

thanks for the pics, I take it the framework you gave me was already ported to your size of phone screen? . :)

cm9 cfx 4.0.4 nightlys
[Android Themes] evilcuber:
im not sure if it was ported, but i think it is since its based of unofficial cm9.
[Android Themes] plegdroid:
it looks like it was intended for a bigger screen ,sensation?

cm9 cfx 4.0.4 nightlys
[Android Themes] evilcuber:
im not sure :P but i know thats the stock frameworks-res.apk that im using in my rom now (which is based of cm9), and its resized properly before the mod :P
[Android Themes] plegdroid:
my changes will only move the widget to the left , but not change the whole size of the screen, it looks like the whole screen has blown up to much. can, you pull from your decompile copys of the two xml files that need to be changed, and post to my pm please :)

cm9 cfx 4.0.4 nightlys
[Android Themes] plegdroid:
after further reading this edit is not really required, as match_parents, works identical to fill_parent, so was in effect not changing anything.

op amended to reflect this. :)

cm9 cfx 4.0.4 nightlys
[Android Themes] plegdroid:
@Evilcuber.

View attachment 1152237

View attachment 1152239

:D see your pm, progress :D
[Android Themes] maped:
Same error for me :(....when I edit the xml value I've abnormal lockscreen...I'm going crazy with ics lockscreen :banghead:

Inviato dal mio Nexus S con Tapatalk 2
[Android Themes] plegdroid:
morning did yo amend the bottom margin to something like 12dip?

and did you compile correctly, evilcuber, succeded by compiling correctly.
[Android Themes] maped:
I think is apkmanager the problem, because when I touch xml values on framework-res.apk, always I've abnormal lockscreen.

Now I've change

<dimen name="keyguard_lockscreen_status_line_font_right_margin">56.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen>

and this is my results :(
[Android Themes] plegdroid:
when you recompile, are you taking the arsc file, from build file and using that to replace the one in the original uncompiled framework res apk? if your not doing it this way it will fail. :) don't use the recompiled apk, just take the recompiled arsc file.
[Android Themes] maped:
Hey Bro THANKS :) I think I make something wrong on arsc file (I did not know ;) )...but I don't understand :o

- decompile framework-res.apk

- make the change on xml value

- recompile

...and I change the original arsc file with arsc file inside recompiled unsigned framework-res.apk??

EDIT:...I tried but I've no change in my lockscreen (???) :o
[Android Themes] plegdroid:
afternoon, decompile make the changes to framework res apk

. recompile, after recompile, you should have a folder called build within projects folder, you'll find your freshly recompiled arsc file, go to the original, undecompiled framework res apk, open that with 7zip ect, now delete the arsc file from within the original framework res apk, and replace with the new (from build folder ) arsc file.

so to recap in short, take original apk, take 7zip to open original apk and replace with the arsc from build folder. don't use the freshly compiled apk, all your after is the new arsc file from after recompile with the modded xml included and put the modded arsc into the original framework res apk. if that makes sense. :)

nb, don't take anything from the new unsigned framework res apk as that is useless, take from the build folder. only
[Android Themes] maped:
Thank you very very much, I appreciated too much your help!!!

...but...I've take original apk, used 7zip to open original apk (extract from my rascream rom) and I've replace original arsc file with the arsc from build folder...and my phone goes into bootloop (I've only change the value to 56).

I think it is a problem of the AOSP rom (I've rascream sandwich for crespo NS), however, is already a step ahead :)

Thank you again bro ;)
[Android Themes] plegdroid:
your very welcome, I take it when it's compiling in apkmanager, and when it asks the question "is this a system app? you press "yes", and when it asks do you want to copy assets you press "no" ? :)
[Android Themes] maped:
Yes :o...on the second question I have to answer yes and overwrite the files??
[Android Themes] plegdroid:
no second question should be no :)

if you said no that is correct.

could be like you said, down to it being aosp..
[Android Themes] mixtapes08:
So i have this question on maped the other day to how to center clock on lockscreen then he link me to this.

And thank you OP because I got it to work :D

Thanks

What i did is

1. Decompile framework

2. Edit xmls

3. Recompile

*is this a system app? > Y

*aside from bla bla etc? > N

4. In the unsignedframework-res.apk i copy the resouces.arsc file

5. Place the resouces.arc to the original framework then bam! It works like a charm :)

Before:

After:

Sent from my Nexus S®
[Android Themes] maped:
Bro thank you so much and thanks to mixtapes too!!!!

The problem in this case is apk manager, your mod works fine when you have correct settigs :)!!!!!!
[Android Themes] plegdroid:
try the wanam version of apkmanager, that's the version that I use.

http://xdaforums.com/showpost.php?p=23935070&postcount=14
[Android Themes] victorwalter:
is it possible to hide the clock?

thanks

[]s

VW
[Android Themes] plegdroid:
evening, to hide or remove the clock? :)

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Themes] victorwalter:
Remove =)
[Android Themes] plegdroid:
more than likely, but I haven't tried :D

have you had a search, or googled

for a result? while iam here though.

:P, first thought would be to remove the lines for the clock widget from within the keygaurd tab xml.

or to hide if removing the lines throws up errors at recompile, you could make it transparent by lowering the alpha values in which ever xml would change that.:) (possibly styles xml )

edit, framework res apk/res/values/colours xml.

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Themes] victorwalter:
thanks for your reply.

i didn't found nothing to CM9/10 (i found only the app "widget lockscreen" but I need to use it with transparent lockscreen) and unfortunately i'm noob to compile and try it,

thanks again.

[]s

VW
[Android Themes] g3ckospy:
does these mkd apply also with the horizontal lockscreen?
[Android Themes] plegdroid:
Evening, sorry for the late reply, phone in for repair. In all honest ive not tried. I'll have a look ..:)
[Galaxy S II Q&A, Help & Troubleshooting] JLAHUD:
Hello guys,

I know there are a lot of threads related to my problem, but as I may have a different situation I am opening a new thread.

Basically my phone is recognizing no SIM Card anymore. I was on a call when the phone fell from my hand and after that this problem started to happen.

Looking for some solutions I have discovered that this problem might be because of the lost of the IMEI. Looking in my phone I have figured out that I have lost not only the IMEI, but also its Phone Code and its base band.

I have tried to use the GSII_Repair, ktool, EFS PRO and nothing has worked. I have also tried to install a new ROM using the Odin, but the problem still remains.

Note: I have the backup of the efs folder

Phone Info:

GT-I9100

Andoid: 4.0.3

Baseband: Unknown

Kernel: 3.0.15-I9100VJLP7-CL371396se.infra@SEP-67#3

Compilation: IML74K.VJLP7

Phone number: Unknown

IMEI: Unknown

PDA: I9100VJLP7

PHONE: Unknown

CSC: I9100ZTOLP4

PCODE: Unknown

I don't know what else I can do. Any tips?

Sorry for my English. :confused:

Regards,

Jefferson
[Galaxy S II Q&A, Help & Troubleshooting] MagnumJoe:
Hmmm..

I have a feeling this is a hardware problem after the fall. Something is wrong with the SIM detection pins, maybe? If all software solutions are not working, then probably it's a hardware one. I think you should get it checked at tech support.
[Galaxy S II Q&A, Help & Troubleshooting] JLAHUD:
Hardware test

MagnumJoe, thanks for your reply.

Yes, it can be a hardware problem. But It can also be a corrupted file that is making the mess. I really don't know. Do you know any software that can test hardware parts? I don't know if that exists. What I know is that using the code *#0*# you can test the display, speaker and other things, but nothing related to the SIM detection.
[Galaxy S II Q&A, Help & Troubleshooting] MagnumJoe:
Well i didn't know you can test these parts with this dial, I am not an expert :) But the way you recounted things, reminded me of computer hardware errors.

It's very hard that a file stays resistant to flashing. Superfile? Lol. I am more inclined to it being hardware.

All i know, that hardware testing is done by current and voltage measurements on hardware components, checking circuits, capacitors, etc.. while the phone is opened. I had this idea when i told you to check it with tech support.
[Galaxy S II Q&A, Help & Troubleshooting] JLAHUD:
I totally agree with you that the problem appears to be more related to hardware. The main problem is that a tech support here is not very trustful and I have had bad experiences with them. It's more likely to them to say that it is the main board that is with problem and that I have to change it all, rather than verify in which part the problem is exactly and to fix it ( I have come across with that twice). So this option will be my last one.

But it is also true that a problem of a IMEI lost is also common. In addition, even with no SIM card inserted it is possible to check the IMEI by dialing *#06#. So for me it's not very clear that the problem is hardware, even beliving so.

Just thinking, the phone could behave like a computer. I mean, if the computer has a hardware problem, during the boot it beeps and acording to the duration and to the amount of beeps you can know where the problem is. If the phone behave in the same way, it would be really helpful.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nmnarora:
@trantiena10 shared this link in the general section, I thought to share it here in the dev section.

WT19i

http://narod.ru/disk/51833859001.cf1a96943518243acc58940b1106847b/WT19i_4.1.B.0.431_Generic.rar.html

@thievun added MF link :

http://www.mediafire.com/?31a4krabpcc810a

@giosal mirroring all sony links :

ftp://giosal.webhop.net/Incoming/Sony_Updates

www.4shared.com/rar/iXSC0Tah/WT19i_41B0431_PH_Generic_1254-.html?

By boyq

WT19a

For those in need for WT19a :

@andreson01 posted

https://www.dropbox.com/s/b6cmbt2lzs9vvz7/WT19a_4.1.B.0.431_america.ftf

http://www.4shared.com/file/oYw2yWhW/WT19a_41B0431_america.html wt19A! (by Betogar)

http://www.mediafire.com/?275uwf5j7niksdh [MIRROR] wt19A!

(by davidcmc)

Plz PM me if any links die, ill remove them

Quick Review :

- Everything works!

- New bootlogo (SONY), new bootanimation (Walkman) and new baseband 72, old kernel 2.6.32.9

- Games work fine, you might notice a little lag, but since the OS install is fresh maybe that is why. I tested temple run, the accelerometer works fine and touches are responsive as they should be (infact i feel higher fps, not sure though).

- Accelerometer in normal app rotations might be a lil slow as compared to CM7.2. But thats not a major problem is it?

- Walkman app, launcher are the same, but with new icons from NXT theme

- As compared to my friend's neo v on .562, this is smoooooth....infact just like 2.3.4, quick and responsive

- Camera is the same as on Minicmsandwich lite AOSP

- Phone app (Infinite view) is slow, but is now perfectly resized for mdpi

- Calender & Calculator are same

- Two galleries - Xperia gallery(similar to 2.3.4 gallery) and ICS standard gallery

- Little jerkiness while recording 720p with image stabilizer ON, with it off, no problems.

- Track ID still wont work for lost DRM keys, unless u install the new version from Play store.

- Brightness Levels are less as compared to non stock roms like CM7.2, etc.

- Battery life needs to be tested!!!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] giosal:
will mirror it at ftp://giosal.webhop.net/Incoming/Sony_Updates
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Svartehjerte:
it's WT19i or WT19a?

EDIT: F***, haven't see the title
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Till-Kruspe:
yes...I have flash it...working fine...no lag at all... :D got new boot animation...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Syris:
It's fast and pretty :)

We only need now is root it!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] gmp009:
Does this support arabic language?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] iCung:
any bugs? have you unlocked the bootloader?

allright, so it'll be the last piece of custom ROM "puzzle" :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ramezzidane:
i'v just finished update during Sony PC Companion 2.1

every thing's fine and amazing boot animation
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] davidcmc:
WT19a, please. :(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] iCung:
via pc companion? how about the root acces?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nmnarora:
The boot animation reminds me of my old w810i ....aaah....that feeling. As many people were crying about the performance, man this rom is speedy....play store automatically installed my last 23 apps, and this thing never hung for a second....:eek:

plus good to see the walkman key working and the lights working together! :p

Finally a good day for all of us!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mdfzhi:
does it still use the old 2.6.32.9 kernel?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lyrel09:
can i flash it while my bootloader is locked? and is this the same as the original version when upgrading using pc companion?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] prateek_gemini:
sadly yes ...

---------- Post added at 09:17 PM ---------- Previous post was at 09:17 PM ----------

Yes you can .... version is same ..i.e ICS 4.0.4 But some apps and stuff is different for different regions.......
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Somyab:
can anyone post the full review of ics on lww

Sent from my live with walkman xda premium app
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] smokerman:
if we have unlock bootloader and network unlock and or custom kernel can we use this to test and go back to our custom kernel/rom?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] prateek_gemini:
yes you can flash with locked bootloader / unlocked bootloader / custom rom and kernel / stock rom and kernel .... whatever be the state of ur phone u can flash it ... to go back take backup of ur current rom using cwm ... ( the kernel u r using now might have to be flashed again in case you want to go bakk )
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] motorazrv3:
One question!

I once did a gb update ota. after that all my apps had gone. so the phone was set back to factory settings.

When i take this ftf file and flash it via flashtool over my current stock gb rom, will it also be set back to factory settings?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tracer123:
Great ROM ;)

with root is better :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] smokerman:
how you rooted this?:D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Till-Kruspe:
What is your phone...how you root it...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lyrel09:
when im in flashtool it always say dirver need to be installed, what am i missing?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] iCung:
check the driver folder in the flashtools folder :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dtb11288:
unlock bootloader :D

if not, you can use downgrade kernel method :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] smokerman:
this wont mess with my network unlock??

i m not sure of this..so i didnt try to flash yet..i see on file to flash simlock.ta what does it mean?? any help? thanks.:)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Shyael:
How to install update to ICS without root? :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Till-Kruspe:
Flash using flashtool...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] thieuvn:
Mediafire link uploaded by me: http://www.mediafire.com/?31a4krabpcc810a

Click THANK if u found it useful :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lyrel09:
already installed adb drivers, the problem now is when i star flashing it say flash cancelled and the phone goes to charging mode. they say you dont need to unlock bootloader to flash this latest version.. mine is .62 and rooted
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Shyael:
Install it via Sony PC Companion - it's save and without any errors. :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] smokerman:
anyone knows? someone with network unlock it remains the same? even with this simlock .ta in ftf file?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] prateek_gemini:
do u guys also experience dialpad opening lag .... not whn u r opening it consecutively ... but when u open it after a loooong time .. it takes about 3-4 sec
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Andreson01:
Hey folks, more a link for wt19a in .ftf

https://www.dropbox.com/s/b6cmbt2lzs9vvz7/WT19a_4.1.B.0.431_america.ftf
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] djdeepblue:
How can I get the stock ICS looks & theme? I'll install some 4.0 launcher, but what about the menus & icons? is it possible? i hate the sony theming.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] prateek_gemini:
just w8 for kamarush to release his minicmsandwich lite with libs from this official release ... that would have stock ics looks
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] djdeepblue:
i can't, my bootloader is not unlockable without paying!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] skramz:
Just a noob question..

I flashed the ftf using the tool by quanghut123. Its running great, but I noticed that theres no longer root access... how do I get the root access back?

My phone before had the MiniCMSandwich Lite AOSP by kamarush, just to let you now....
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jokamaciek:
HERE
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] D-dy:
how about if i flash it with Ticked System Exclude in flashtool ?

coz, with that way superuser still in system (tested when upgrade from .58 to .62)

just to make sure, coz it ics not gb. maybe the method was diffrent :)