Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,176 Members 51,403 Now Online
XDA Developers Android and Mobile Development Forum

(Guide) how To port Ics Lockscreen To Gb Devices(Qualcom)

Tip us?
 
drakonizer
Old
(Last edited by drakonizer; 21st August 2014 at 05:26 PM.)
#51  
drakonizer's Avatar
Senior Member
Thanks Meter 133
Posts: 207
Join Date: May 2013
Location: Bangalore
@Droidbuster and @sssomnath474

Thanks to both of you I have successfully ported this to both my GB devices, one is TI OMAP and the other one is ST Ericsson (both are HDPI, which is why I thanked somnath, for his HDPI sources). I have realized that this port does not depend on the SoC, but on the device manufacturer itself (because the android.policy.jar classes vary with manufacturer), and so a small piece of advice that I would give to anyone who tried this guide and failed is:
1) To get the lockscreen, all you need is proper smalis and the fonts and the build.prop mod. The HDPI sources are only to fix the appearance of the lockscreen.

2) When changing ids in the smali, make sure you remove one "0" after the x. For example, if your public.xml id is "0x010002b", make it "0x10002b". This is actually very important, as I found out. (maybe @Droidbuster should post this in the OP).

Thanks again and hope this post helps someone!

EDIT: @Droidbuster can you tell me what font is used for the date below the time?
 
Droidbuster
Old
#52  
Droidbuster's Avatar
Member - OP
Thanks Meter 142
Posts: 91
Join Date: Jan 2014
Quote:
Originally Posted by drakonizer View Post
@Droidbuster and @sssomnath474

Thanks to both of you I have successfully ported this to both my GB devices, one is TI OMAP and the other one is ST Ericsson (both are HDPI, which is why I thanked somnath, for his HDPI sources). I have realized that this port does not depend on the SoC, but on the device manufacturer itself (because the android.policy.jar classes vary with manufacturer), and so a small piece of advice that I would give to anyone who tried this guide and failed is:
1) To get the lockscreen, all you need is proper smalis and the fonts and the build.prop mod. The HDPI sources are only to fix the appearance of the lockscreen.

2) When changing ids in the smali, make sure you remove one "0" after the x. For example, if your public.xml id is "0x010002b", make it "0x10002b". This is actually very important, as I found out. (maybe @Droidbuster should post this in the OP).

Thanks again and hope this post helps someone!

EDIT: @Droidbuster can you tell me what font is used for the date below the time?

thanks
you need to replace other font with MyDefineSmall.ttf
The Following User Says Thank You to Droidbuster For This Useful Post: [ Click to Expand ]
 
drakonizer
Old
#53  
drakonizer's Avatar
Senior Member
Thanks Meter 133
Posts: 207
Join Date: May 2013
Location: Bangalore
I see. Also is it possible to change the format of the date? Like by adding day of the week, and making it like jellybean?

Sent from my XT760
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes