Sony to Extend its AOSP Program to Other Devices

Sony will be offering its users the possibility to use AOSP ROMs as an alternative to the … more

Project Ara Smartphone Will Run Modified Android L with Hot Swapping

Project Ara is a very exciting topic–both for hardware and … more

Streamline Android Theme Customization with Graphic Porter

I dont have a custom theme on my Android phone, and the reason for this is because … more

Boost the Brightness of Your Sony Xperia Z1’s LED

I think the last time anyone has ever used a physical torch to find their earphones, … more
Post Reply

[MOD][TUTORIAL] Rotary Lock Screen w/ Music Controls for Sense

6th September 2010, 02:47 AM   |  #1  
ihtfp69's Avatar
OP Senior Member
Thanks Meter: 810
 
1,875 posts
Join Date:Joined: Feb 2009
Donate to Me
More


--==--
As far as I know, this is the first time this has been accomplished on Sense framework for Froyo. I spent a considerable amount of time getting this to work, so I hope everyone likes it. I attempted to make this a MetaMorph theme so it would be easy to apply to any ROM, but I did not have any success. Thus, I will release this with links to framework for different ROMs.

Thanks goes to koush and cyanogen and everyone else that put code into CM6. I started with code from CM6 so it's only fair to show my gratitude for the great dev work they do for this community.

WARNING: I am not responsible for any harm this may directly or indirectly do to your phone. It is always wise to do a backup before applying a mod of this magnitude.


NOTE: You must remove the HTC Lockscreen if you have not done so already. This can be done by running the code below. This mod may also undo some theming you may have done to your rom. After flashing this mod, DO NOT replace your framework-res.apk file with another one or you will end up with a boot loop. I suggest you pull the new one from this mod and theme it manually. Otherwise, run the revert script and then flash whatever theme you want.

Remove HTC lock screen:
Code:
adb shell
mv /system/app/HtcLockScreen.apk /system/app/HtcLockScreen.bak
Install DeskClock.apk:
Code:
adb remount
adb push DeskClock.apk /system/app
Requirements:
  • You must be using one of the supported ROMs.
  • Your ROM must be deodexed.
  • If you are using the HTC clock for your alarms, you will have to install the vanilla clock and use it's alarms instead.
  • If you have a request for support on another ROM, just ask. I may even put a tutorial together on how to mod your own framework.
Install Instructions:
  1. Remove the HTC lock screen if necessary
  2. Install the vanilla clock if necessary
  3. Download the framework zip for the ROM you are running
  4. Download either the Rotary_Music or Rotary_NoMusic zip
  5. Flash both of the zips in recovery
  6. Reboot
  7. Profit
--==--

Thanks to everyone that has donated
Last edited by ihtfp69; 10th September 2010 at 02:05 AM.
The Following User Says Thank You to ihtfp69 For This Useful Post: [ View ]
6th September 2010, 02:47 AM   |  #2  
ihtfp69's Avatar
OP Senior Member
Thanks Meter: 810
 
1,875 posts
Join Date:Joined: Feb 2009
Donate to Me
More
Supported ROMs and Their Framework Zip:
Themes:
Lock Screen Options:
Sense UI
CyanogenMod
  • Coming soon ...
Complete Roms with Lock Screen:
Additional Resources:
Last edited by ihtfp69; 11th September 2010 at 04:38 AM.
6th September 2010, 02:48 AM   |  #3  
ihtfp69's Avatar
OP Senior Member
Thanks Meter: 810
 
1,875 posts
Join Date:Joined: Feb 2009
Donate to Me
More
Lightbulb
TUTORIAL: How to mod your own framework
For this mod to work with your framework, you must alter your framework-res.apk file. It requires only editing /res/values/ids.xml and /res/values/public.xml. You need to add lines to both. There are also a couple layouts you need to add to /res/layout. Keep in mind, this tutorial only applies to dinc Sense framework.
Disclaimer: This requires knowledge of some advanced Android tools. I will not explain how to install or use them in this tutorial. I will only outline on a high level what needs to be done.

REQUIRED RESOURCES:
apktool - http://code.google.com/p/android-apktool/
DIRECTIONS:
  1. Decompile framework-res.apk
  2. Make the changes outlined below
  3. Recompile
  4. Open the original apk and delete the /res folder and resources.arsc file
  5. Open up the newly compiled apk and copy over the /res folder and resources.arsc file into the original apk
  6. At this point, you can push it over to your phone for testing
REQUIRED CHANGES:
For ids.xml, add the following:
Code:
    <item type="id" name="musicControlPlay">false</item>
    <item type="id" name="musicControlPause">false</item>
    <item type="id" name="musicControlPrevious">false</item>
    <item type="id" name="musicControlNext">false</item>
    <item type="id" name="fill_parent">false</item>
    <item type="id" name="rotary">false</item>
For public.xml, add the following:
Code:
    <public type="id" name="musicControlPlay" id="0x0102021e" />
    <public type="id" name="musicControlPause" id="0x0102021f" />
    <public type="id" name="musicControlPrevious" id="0x01020220" />
    <public type="id" name="musicControlNext" id="0x01020221" />
    <public type="id" name="rotary" id="0x01020222" />
And ...
Code:
    <public type="layout" name="keyguard_screen_rotary_unlock" id="0x01090076" />
    <public type="layout" name="keyguard_screen_rotary_unlock_land" id="0x01090077" />
Last, add these two files to /res/layout:
Last edited by ihtfp69; 7th September 2010 at 09:21 PM.
6th September 2010, 02:49 AM   |  #4  
TheWhiteBandito's Avatar
Recognized Developer
NY/CT
Thanks Meter: 84
 
596 posts
Join Date:Joined: Jun 2010
More
As always, great work ihtfp69. Do the music controls always stay on screen even if there is no music playing? I'm assuming the controls only work for the default music program?
6th September 2010, 02:51 AM   |  #5  
zeke1988's Avatar
Senior Member
Thanks Meter: 33
 
674 posts
Join Date:Joined: Apr 2010
More
do i need to install vanilla clock if im using your SR 2.5.2 or SR 3.0?
6th September 2010, 02:57 AM   |  #6  
Senior Member
Thanks Meter: 94
 
462 posts
Join Date:Joined: May 2008
Nice job ihtfp69. You've been doing good things for the Inc.
6th September 2010, 03:10 AM   |  #7  
phoenixs4r's Avatar
Senior Member
Thanks Meter: 27
 
407 posts
Join Date:Joined: Aug 2010
You rock......



Sent from my ADR6300 using XDA App
6th September 2010, 03:11 AM   |  #8  
ihtfp69's Avatar
OP Senior Member
Thanks Meter: 810
 
1,875 posts
Join Date:Joined: Feb 2009
Donate to Me
More
Quote:
Originally Posted by TheWhiteBandito

As always, great work ihtfp69. Do the music controls always stay on screen even if there is no music playing? I'm assuming the controls only work for the default music program?

They are always on. They will work with whatever your default player is. It works with HTC Music, MusicMod, the stock Android Music, etc ...

Quote:
Originally Posted by zeke1988

do i need to install vanilla clock if im using your SR 2.5.2 or SR 3.0?

Only if you are using the Sense version as you likely do not have it installed. It is already included with SkyRaider Vanilla 3.x.
6th September 2010, 03:11 AM   |  #9  
OSully's Avatar
Senior Member
Flag New York
Thanks Meter: 32
 
950 posts
Join Date:Joined: Aug 2010
Awesome.

Will this overwrite existing customizations such as status bar mods?
6th September 2010, 03:21 AM   |  #10  
ihtfp69's Avatar
OP Senior Member
Thanks Meter: 810
 
1,875 posts
Join Date:Joined: Feb 2009
Donate to Me
More
Quote:
Originally Posted by OSully

Awesome.

Will this overwrite existing customizations such as status bar mods?

It will not undo some status bar mods (like the ones that remove icons from the status bar or change the color of your clock), but may undo some themes like custom battery graphics.

This mod can be applied to any framework, though. It just takes five minutes of work. Currently, I have only done three. I may post a tutorial later if there is interest.

Post Reply Subscribe to Thread

Tags
froyo, lock screen, rotary, sense
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes