Lockscreen Mods! This post is a continuous WIP!
Before we do anything, here are the prerequisites you need:
1. You will need a program called VTS (Virtuous Ten Studio) You can get that here.
This is made by the same brilliant minds that created the original m10tools.
2. Idlescreen_Base.apk. That apk is where all of the edits I will be describing are located in.
3. Last but not least, patience. Lots of patience.
If you know how to use VTS, then skip this!
Alright now that you have VTS installed, open it up. In the top left corner click on file -> new project.
Choose M10-Project, and pick your project and solution name. Now click on "import" on the left column and navigate to your Idlescreen_base.apk then click ok.
Now you're ready to get your hands dirty!
Section 1: Time, date, operator, am/pm, and unlock text.
This section will be used to describe all of the amazing things you can do to things in the title.
Navigate to the folder as seen in the screenshot:
And double click lockscreen_time.x10
Scroll down a little bit, and you will see a property labeled: "lockscreen_time"
Any edits you make to this property will affect everything. Meaning Time, date, operator, am/pm etc.
So lets say you want to move the all of that to the left side of the screen. Press the + box to the left to unfold the properties. You will see a bunch of different values like so:
Let's take a look at "offset" :
There are three values. 0:0:0
- The first value is what controls where it sits on the screen horizontally.
- The second value is what controls where it sits on the screen vertically.
- The third value controls..well..I'm not too sure yet. Anytime I make an edit to it it moves everything diagonally.
- Negative values move things to the left of the screen. Positive values move things to the right of the screen.
don't mess with the third one. It is MUCH easier to just play with the first two values.
Now let's move everyhting to the left side of screen! So change the first value to -220 and click "save" on the top left. So it looks like: -220:0:0
Okay so let's test your edit. Go over to the left hand column with all of the folders and right click your project name and select "build project" and then "push to device".
An alternative method you can do that I personally use is to click "push all" at the top. That will build your apk and push it to the device in you step. Do not do that method if you have more than one project open in your solution. It will push both projects.
Now there are two ways you can reboot. They are:
1. Click on the ADB tab and select reboot. Done! When you reboot your new lockscreen should be staring you in the face.
2. I prefer this way beacsue you dont have to wait for the reboot, and it's easier on your device. Click on the ADB tab, and open an ADB Shell prompt. Type in "am force-stop com.htc.idlescreen.shortcut" without quotes. This restarts the lockscreen process with your fresh edit.
You don't need to re-type that every time, just simply press the up arrow key and then press enter. Also, I have it so my phone never sleeps while charging. That eliminates the problem of having to turn the screen back on every time it turns itself off.
Next up we have "CenterScale"
This value determines the size of the text.
Duce explained this pretty well in a post, so I'm going to quote him on that.
Originally Posted by il Duce
I'll use the lock clock as an example
In time x10 find the property under "lockscreen_time" and expand it. The property for "CenterScale" where it's 1:1:1, and the first two values are width and height respectively. They need complete integers in any value. So 2 would work, 3.725 would work, 0.8 would work, but .8 wouldn't.
This logic should apply to anything really, including clock tiles, button sizes, the rosie dock, etc.
Those two properties are the two most important/most used in my opinion. Everything else is pretty self explanatory.
Okay. so I shrunk everything and moved it to the left. Now that I look at it, I kinda want to get rid of the date. How do I do that?
Hiding things from the lockscreen is probably the easiest thing you can do.
In the same x10, find these properties:
-Service Provider (Sprint, ATT, Verizon etc)
-The text " pull ring to unlock"
Under every property, you will find a line like this:
<Bool Name="Visible" Header="239748898" IDC="true">true
Change that to:
<Bool Name="Visible" Header="239748898" IDC="true">false
And BOOM whatever you want gone will no longer be there. Pretty simple.
So that pretty much sums up this section.
Section 2: Lockring & Shortcuts.
This is where it can start to get a little complicated. These are the x10's you will be making edits to:
More to come!
Some examples of what is possible are attached.