5,598,908 Members 30,547 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
ihtfp69
Old
(Last edited by ihtfp69; 10th September 2010 at 02:05 AM.)
#1  
ihtfp69's Avatar
Senior Member - OP
Thanks Meter 803
Posts: 1,875
Join Date: Feb 2009

 
DONATE TO ME
Arrow [MOD][TUTORIAL] Rotary Lock Screen w/ Music Controls for Sense



--==--
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
Phone #1: Rooted Droid Incredible - SkyRaider ROMs
Phone #2: Rooted Thunderbolt - SkyRaider Zeus
Tablet: Motorola Xoom

Click to follow me on Twitter!

If you like something I did, donate to my beer fund and click the Thanks button!
The Following User Says Thank You to ihtfp69 For This Useful Post: [ Click to Expand ]
 
ihtfp69
Old
(Last edited by ihtfp69; 11th September 2010 at 04:38 AM.)
#2  
ihtfp69's Avatar
Senior Member - OP
Thanks Meter 803
Posts: 1,875
Join Date: Feb 2009

 
DONATE TO ME
Supported ROMs and Their Framework Zip:
Themes:
Lock Screen Options:
Sense UI
CyanogenMod
  • Coming soon ...
Complete Roms with Lock Screen:
Additional Resources:
Phone #1: Rooted Droid Incredible - SkyRaider ROMs
Phone #2: Rooted Thunderbolt - SkyRaider Zeus
Tablet: Motorola Xoom

Click to follow me on Twitter!

If you like something I did, donate to my beer fund and click the Thanks button!
 
ihtfp69
Old
(Last edited by ihtfp69; 7th September 2010 at 09:21 PM.)
#3  
ihtfp69's Avatar
Senior Member - OP
Thanks Meter 803
Posts: 1,875
Join Date: Feb 2009

 
DONATE TO ME
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:
Phone #1: Rooted Droid Incredible - SkyRaider ROMs
Phone #2: Rooted Thunderbolt - SkyRaider Zeus
Tablet: Motorola Xoom

Click to follow me on Twitter!

If you like something I did, donate to my beer fund and click the Thanks button!
 
TheWhiteBandito
Old
#4  
TheWhiteBandito's Avatar
Recognized Developer
Thanks Meter 84
Posts: 596
Join Date: Jun 2010
Location: NY/CT
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?
 
zeke1988
Old
#5  
zeke1988's Avatar
Senior Member
Thanks Meter 33
Posts: 674
Join Date: Apr 2010
do i need to install vanilla clock if im using your SR 2.5.2 or SR 3.0?
Galaxy Nexus LTE
iPhone 5

VZN unlimited 4G
AT&T 3GB LTE
 
scuccia
Old
#6  
Senior Member
Thanks Meter 85
Posts: 438
Join Date: May 2008
Nice job ihtfp69. You've been doing good things for the Inc.
 
phoenixs4r
Old
#7  
phoenixs4r's Avatar
Senior Member
Thanks Meter 27
Posts: 410
Join Date: Aug 2010
You rock......



Sent from my ADR6300 using XDA App
 
ihtfp69
Old
#8  
ihtfp69's Avatar
Senior Member - OP
Thanks Meter 803
Posts: 1,875
Join Date: Feb 2009

 
DONATE TO ME
Quote:
Originally Posted by TheWhiteBandito View Post
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 View Post
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.
Phone #1: Rooted Droid Incredible - SkyRaider ROMs
Phone #2: Rooted Thunderbolt - SkyRaider Zeus
Tablet: Motorola Xoom

Click to follow me on Twitter!

If you like something I did, donate to my beer fund and click the Thanks button!
 
OSully
Old
#9  
OSully's Avatar
Senior Member
Thanks Meter 31
Posts: 951
Join Date: Aug 2010
Location: New York
Awesome.

Will this overwrite existing customizations such as status bar mods?
 
ihtfp69
Old
#10  
ihtfp69's Avatar
Senior Member - OP
Thanks Meter 803
Posts: 1,875
Join Date: Feb 2009

 
DONATE TO ME
Quote:
Originally Posted by OSully View Post
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.
Phone #1: Rooted Droid Incredible - SkyRaider ROMs
Phone #2: Rooted Thunderbolt - SkyRaider Zeus
Tablet: Motorola Xoom

Click to follow me on Twitter!

If you like something I did, donate to my beer fund and click the Thanks button!

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

Advanced Search
Display Modes


XDA PORTAL POSTS

Samsung EFS Tool Updated to V5, Brings Universal Device Support

You may recall that we’ve talked about XDA Recognized Contributor … more

Say Goodbye to Holo Blue Once and for All

When Google released Android 4.4 KitKat back in October of last year, they changed quite a bit … more

Sony Z Ultra Google Play Edition Receives Bluetooth Certification for Android 4.4.3

You may recall that a few days ago, Sprint jumped the gun … more

Easily Configure Xposed Module Projects in Eclipse

XDA Recognized Developer rovo89‘s innovative and versatile Xposed Framework allows … more