Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,834 Members 50,379 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][GB][JB] How To Add Seconds Hand to Analog Clock

Tip us?
 
cleverior.ipul
Old
(Last edited by cleverior.ipul; 29th March 2014 at 05:26 PM.)
#1  
cleverior.ipul's Avatar
Senior Member - OP
Thanks Meter 315
Posts: 384
Join Date: Nov 2012
Location: Bogor
Default [GUIDE][GB][JB] How To Add Seconds Hand to Analog Clock

read me first
 
tell me if i posting in wrong sub forum


Tested on my Galaxy Pocket GT-S5300 with GB 2.3.6 and JB 4.1

Quote:


Required :
  1. Knowledge about how to compiling apk
  2. Framework-res.apk & framework.jar from ur system
  3. Tools for compiling apk.
  4. And this file

Tutorial :
  1. Rename framework.jar to framework.apk.
  2. Extract PNG&Smali.zip.
  3. Decompile Framework-res.apk and framework.apk.
  4. Copy everything in the folder framework.jar into framework.apk in the projects folder
  5. Copy everything in the folder frmwork-res.apk into framework-res.apk.apk in the projects folder
  6. Recompile framework-res.apk and make sure there are not errors.
  7. Decompile again framework-res.apk.
  8. Open framework-res.apk\res\values\public.xml
  9. Open framework.apk\android\widget\AnalogClock.smali
  10. Change the blue code as it is in public.xml of framework-res.apk

    Code:
    0x1080215   => public type="drawable" name="clock_dial"  
    0x1080216   => public type="drawable" name="clock_hand_hour"   
    0x1080217   => public type="drawable" name="clock_hand_minute"
    0x1080615   => public type="drawable" name="clock_hand_second"
    Quote:
    note : remove 0 after X. Example : 0x01080123 to 0x1080123
  11. Compile framework.apk. and rename rename to framework.jar
  12. Push. (DONT FORGET TO DO NANDROID BACKUP)
  13. Done

 
credit : Febiantoro Pebot
The Following User Says Thank You to cleverior.ipul For This Useful Post: [ Click to Expand ]
 
cambiaso74
Old
#2  
Junior Member
Thanks Meter 6
Posts: 19
Join Date: Sep 2013
thank you very much
 
cleverior.ipul
Old
#3  
cleverior.ipul's Avatar
Senior Member - OP
Thanks Meter 315
Posts: 384
Join Date: Nov 2012
Location: Bogor
Quote:
Originally Posted by cambiaso74 View Post
thank you very much
read my signature, please
The Following User Says Thank You to cleverior.ipul For This Useful Post: [ Click to Expand ]
 
sonnguyenpg
Old
#4  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Aug 2013
Quote:
Originally Posted by cleverior.ipul View Post
read my signature, please
Goods guild! I done succec in OS 4.1
Thanks!
 
cleverior.ipul
Old
#5  
cleverior.ipul's Avatar
Senior Member - OP
Thanks Meter 315
Posts: 384
Join Date: Nov 2012
Location: Bogor
Quote:
Originally Posted by sonnguyenpg View Post
Goods guild! I done succec in OS 4.1
Thanks!

u're welcome
The Following User Says Thank You to cleverior.ipul For This Useful Post: [ Click to Expand ]
Tags
analog clock, ginggerbread, seconds hand, tutorial
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes