Remove All Ads from XDA

[MOD][PORT][APP]Vanilla Locks & Gestures (Multi-Silder/Rotary) & Config. App - Sense

2,414 posts
Thanks Meter: 1,405
By JsChiSurf, Inactive Recognized Developer on 18th January 2011, 06:21 PM
Post Reply Email Thread
Okay, the wait is finally over! As the title of the thread states, included below is a heavily modified framework for deodexed HTC Sense ROMs (3.70 base), that will give you the ability run any vanilla style lockscreen you desire, including options for standard tab/slider, multiple-sliders (4 tabs for unlock/mute/phone/messaging), or Rotary.

First, and foremost, thank you to the CM team for most of the starting source. I used their framework, and settings app as a starting point, and merged this with the original rotary source port I created for the Hero, which was based on the original Droid android 2.0 ROM.

This mod/port required heavy edits to multiple framework files, and the base/starting framework files I used were the Power Control Widgets, so flashing the mod linked below will also apply the notification menu widgets. There's really no choice in the matter, as otherwise, I would have to maintain two completely different sets of frameworks for this port/mod, which would create a mess.

So, just from the framework side of things, the mod includes the following files:

services.jar, android.policy.jar, framework.jar, and framework-res.apk*

*Note: services.jar was not affected by this mod, but since framework.jar and framework-res.apk include, as mentioned, the power control widgets as its base, I had to include it in the zip).

When you apply this mod, given that the framework files referenced above will be replaced, any customizations/themes you may have applied will be removed and need to be re-applied with my framework files included below as the starting point. What does this mean? You CANNOT apply a previous theme you were using, not based off of the framework files in this thread, after having applied this mod. It will break. If you are not comfortable with this, you will want to wait until your ROM dev incorporates this into a new "point" ROM release.

Since all of the above framework files are being replaced, after applying, your initial reboot will take a while, as your Dalvik cache will get rebuilt. Be patient and don't panic.

Also, since the power control widgets were used as the starting framework, the framework files include the following modifications out of the box:
  • Allow for transparent notification menu background (xeudoxus & fxn)
  • Remove USB Debugging icon (me)
  • Remove GPS off reticle icon, retain GPS on reticle (me)
  • USB Tether / Hotspot Fix (vaelek & aamikam)
  • Disable Menu Unlock on Lockscreens (me) (new to this mod/port)

In addition to the framework files referenced above, the flashable zip will also install the following 2 applications:

DeskClock.apk <--- You MUST use this clock to set your alarms, to avoid issues when disabling your alarm, when using Vanilla Style locks on Sense ROMs. You will find this application in your app drawer via the following icon:

EDIT 1/29/11: To modify your clock widget, to take you to the above referenced Android clock, when setting your alarm, rather than the HTC clock, which you shouldn't use, see HERE if using the animated flip, and HERE for the stock non-animated flip.

LockScreenSettings.apk <--- This is the application I "created" to set your lockscreen style and options (shown below).

The "LockScreen Settings" application can be found in the app drawer via the following icon:

Following are screen captures of the options available to you via the LockScreen Settings application:

As shown above, the settings application allows you to do the following:
  • Select your lockscreen style (tab v. rotary)
  • Enable Music Controls
  • Set if music controls are always present vs. only when music is playing
  • For tab version, add sliders for Phone & Messaging
  • Assigning Messaging Application to Messaging Tab/Slider
  • Setup Lockscreen Gestures, Trail, Color, Etc.
  • Disable slider/rotary dial and use gestures only (screen void of any unlock icons).

It is important to note that for now, as this is a complete hack that I created for putting this application together, that a reboot is REQUIRED after making any changes for your settings to take affect. I hope to resolve in the future, but it will have to do for now. A Hot Reboot will also do the trick, rather than a full restart.

Now, when applying this mod/port/app, in addition to the above files being installed, the updater-script will also automatically remove your HtcLockScreen.apk file, if present, in order to make sure the vanilla locks are used instead, AND install the necessary lockscreen_gestures to your /data/misc/ folder. This file is REQUIRED for the gestures to be written/saved for your phone, without it, gestures will NOT work. Application of the gestures portion may appear to stall when flashing. Be patient, it will apply. If, for whatever reason, after applying, you are unable to save gestures, try manually creating the necessary gestures file, with instructions provided here.

Download Vanilla Lockscreens Framework & Applications <--- Flash via Recovery

EDIT 1/29/11: The above link has been updated to include a newly modified DeskClock.apk with a "fixed" gallery button, to take you to the HTC Gallery/Album, rather than the stock Android gallery, which is not likely on your phone, preventing the button from working (second from the left at the bottom of the clock screen). See HERE for a standalone flashable zip for the clock only, if you've already applied this mod. It also includes an updated LockScreenSettings apk file to remove the "vestigal" appearance of RenderFx from your widget selections, since they do not apply to this mod.
The Following 27 Users Say Thank You to JsChiSurf For This Useful Post: [ View ] Gift JsChiSurf Ad-Free
18th January 2011, 06:21 PM |#2  
JsChiSurf's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,405
Donate to Me
Screen Captures
Following are screen captures of the various lockscreen versions you can apply with the settings application:

Stock Sliding Tab Lock:

Sliding Tab Lock w/ 4 Sliders:

Rotary Lock:

Blank Lock (gestures only):
The Following 9 Users Say Thank You to JsChiSurf For This Useful Post: [ View ] Gift JsChiSurf Ad-Free
18th January 2011, 06:25 PM |#3  
JsChiSurf's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,405
Donate to Me
For the rotary lockscreen, if you do NOT prefer the direction arrows (see below), apply the attached using MetaMorph to remove:

Remove direction arrows on rotary lock <--- Apply using MetaMorph
The Following 9 Users Say Thank You to JsChiSurf For This Useful Post: [ View ] Gift JsChiSurf Ad-Free
18th January 2011, 06:27 PM |#4  
ccapasso's Avatar
Senior Member
Thanks Meter: 18
Awesome work man! Can't wait to give it a shot!
18th January 2011, 06:28 PM |#5  
lost_man10002's Avatar
Senior Member
Thanks Meter: 66
Wow another awesome mod thanks man u rock

Sent from my PC36100 using XDA App
18th January 2011, 06:30 PM |#6  
Senior Member
Thanks Meter: 11
wow man this is so awesome I cant wait to give this a shot. thanks so much for all the work you put into this.
18th January 2011, 06:49 PM |#7  
Senior Member
Flag Jax and The DMV
Thanks Meter: 843
Donate to Me

JS is the man
18th January 2011, 06:57 PM |#8  
Stoney 666's Avatar
Senior Member
Thanks Meter: 741
Will this be able to be ported to Dinc?
18th January 2011, 06:58 PM |#9  
JsChiSurf's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,405
Donate to Me
Originally Posted by Stoney 666

Will this be able to be ported to Dinc?

Don't see any reason why someone with the skill couldn't. All the heavy lifting is done.
18th January 2011, 06:59 PM |#10  
luckylui's Avatar
Senior Member
Flag Chi-Town
Thanks Meter: 416
Donate to Me
Vanilla lock here i come!
Great work OP!!!!!!!

Minimalistic Mikfroyo 4.4
18th January 2011, 07:02 PM |#11  
beatblaster's Avatar
Senior Member
Flag Chicagoland
Thanks Meter: 293
Donate to Me
John strikes again! Big props to the MAN!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes