[HTC Sensation] mohit1234:
Hi everyone!!

I saw that there were threads on customizing the lockscreen rings but there were none on changing the background in the Sensation forums

So.......

Here's a tutorial on how you can edit the background on the Sense 3.0 Lockscreen!!

First and Foremost, DO A NANDROID BACKUP!!!!! I am not responsible for any mistakes that you make or if anything happens to your phone.

Now we can start the tutorial!! :D

Download the m10 tools from here

Using Root Explorer (Or any other file explorer) go to system/app and copy the IdleScreen_Weather.apk to your sdcard.

Copy this apk to your computer and open m10editor.exe

You could also directly PULL the apk from your phone:

adb pull /system/app/IdleScreen_Weather.apk will pull the file to whatever directory you open the command prompt from

(Thanks to NRGZ28 for giving this suggestion)

Once the m10 program has opened up, click on load and browse to the IdleScreen_Weather.apk

Once it has loaded, go to the m10 files tab and select the decode images box on the bottom.

Double click on Lockscreen_weather_bg.m10 and it will ask you if you wish to decompile it. Click on yes and wait for it to decompile.

Now you will be brought to another tab where you can see Textures. Under this you will see 3 more textures.

Click on any one of the textures and you will see the background image. Right click the image and click on Show in Explorer.

The folder containing the png will open up. Replace that image with your image making sure that the file you are copying has EXACTLY the SAME name.

NOTE: Your png should be exactly 540x960. Also you will have to invert your picture vertically. This can be done with any photo editing program. I use Photoshop for this.

Then once you have replaced all the 3 background with whatever pictures you want, go back to the m10 program and go to the Start tab. Here you can link the path to the Android SDK if you have so that you can zipalign it and push it to your phone. Then tick the Zipalign APK box(Only do so if you have linked the Android SDK to the program). Then click on save.

If you didnt link the Android SDK to the app, you can still manually zipalign it. In order to do so, download the Android SDK and browse to the tools folder.

Open a cmd window here.

Type:-

zipalign -f -v 4 (name and path of your file).apk outfile.apk

Rename the new apk that has been created from outfile.apk to IdleScreen_Weather.apk

Now you can either push this apk to your phone or copy and paste it using Root Explorer ( or any other file explorer) or you can make a flashable zip out of it.

To make a flashable zip, download the blank update.zip that i have attached in this post. Then open it with winrar or winzip etc.. and then copy the apk file into the system/app folder in the update.zip

DO NOT EXTRACT the update.zip

Then you can flash this zip file normally from recovery.

Also make sure that if you are copying the file to the system/app, set the permissions as RW-R--R

Now reboot and enjoy your new lockscreen background!! :D :cool:

This will also work for the Friendstream, Stocks or any other lockscreens. Only the file name will be different.

I will be taking requests, so if you want any particular background just attach the pictures and i will make it for you as soon as possible :)

This is a modification of McLabia's thread in the Thunderbolt Forums. A huge thanks to him for making such an amazing tutorial!

http://xdaforums.com/showthread.php?t=1160206

Thanks to Lee for his awesome Leedroid ROM!!

Thanks to Flemmard and DiamondBack2010 for their m10 tools!

A big thanks to all the other devs on xda!!

If I've missed out anyone who has contributed to this, please tell me and i will add their names. :)