Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[GUIDE][GB] Change path thickness of Pattern Lockscreen to ICS style

$
0
0
Guide to changing path thickness of Pattern Lockscreen to ICS style



I wandered places searching this off. I found some traces in direction of my destiny but none of them worked fully correctly


So, as stated, I searched a lot for this mod and came face to face with failures and smali errors. So, I had to figure it out myself some modification to do in it to make it work.


Note: IT is not COMPLETELY my mod but I have done modifications in it to make it work. This is based on a guide for Froyo outside of XDA.


Pre-Requisites:

1. PC with Java JDK or JRE
2. Deodexed ROM
3. 7-Zip
4. classes.dex decompiling tool
5. Notepad++
6. Patience
7. Carefulness for editing smali files


Let's Start


1. First we would have to decompile classes.dex inside framework.jar
For that, you can use my Tool ROM Tool v2

First using 7zip, Right click on your framework.jar and open it as archive and drag and drop classes.dex in input folder of the tool

(Note: If you don't have classes.dex in framework.jar [only META-INF and preloaded-classes.dex], then your framework isn't deodexed)

Now, open Script.bat and choose 1 (Decompile classes.dex)

2. Now, we will make the changes. Go to decompiled folder and go to \classout\com\android\internal\widget and open LockPatternView.smali in Notepad++


Search for mDiameterFactor:F
[Ctrl+F]


See the code above it.

It should be like this:-

Code:

const/high16 v2, 0x3f00

If it is, then you will have to remove red part /high16

Because it will not allow the change of code we will be doing which will have a different hexadecimal value which will not be supported till this code is in effect

Now, it will look like this:-

Code:

const v2, 0x3f00


Now, we will change the thickness value 3f00 to 3dcccccd

Final code will look like this

Code:

const v2, 0x3dcccccd

Save it

I am attaching final and before smali for comparison below.
Attachment 1936707

(Note: If you don't have /high16, it's good , then just just change the value and save)

3. Go to Script.bat again and choose 2 (Recompile classes.dex) and after it's done, you will get classes.dex

Drop it in framework.jar

4. Push framewotk.jar in /system/framework

Eg:

Copy it in platform-tools folder of android SDK and type following with pressing Enter after each command

Code:

adb remount
adb push framework.jar /system/framework/
adb shell chmod 644 /system/framework/framework.jar
adb shell killall system_server


Last command will Hot Reboot your phone to apply changes. It is fast and better than rebooting phone.


5. Enjoy




Screenshots


Before



After


Credits

A member from other forum to answer a question to other member of that forum :p
Google for letting me search somethings
Samsung Galaxy Ace s5830i members for supporting me so much

Attached Files
File Type: zip Smali.zip - [Click for QR Code] (24.0 KB)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>