Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[GUIDE]MTK LockScreen

$
0
0
Hello all! This is basicly a easy build.prop mod for changing lockscreen on mtk devices like Alcatel ot-991, ot-918, Spice Mi-350n Hero 7300, Star A3...

What Is Required :

PHP Code:

Rooted phone 
Notepad++(for opening build.prop files)
Android Commander
Tool for decompiling jar files apkmanager/apktool/virtous or... 

Weel if u had all mentioned above u have to find build.prop file. On alcatel stock roms that file is used to be in custpack folder but often is in system folder. When u find it open it and search for line :

Quote:

curlockscreen=[number/letter]
and now depending on what device you have that number/letter could be for example :

>>HERO 7300<<
*LOCK_SCREEN_ORI:I = 1
*LOCK_SCREEN_SLIDE:I = 2
*LOCK_SCREEN_SENSE:I = 3
*LOCK_SCREEN_SENSE_G11:I = 4
*LOCK_SCREEN_GLASS:I = 5
*LOCK_SCREEN_SENSE_G11_PLUS:I = 6
*LOCK_SCREEN_SENSE_PLUS:I = 7
*LOCK_SCREEN_GLASS_G2:I = 8
*LOCK_SCREEN_IPHONE:I = 9
*LOCK_SCREEN_SENSE_G14:I = a
*LOCK_SCREEN_WAVE:I = b
*LOCK_SCREEN_ROLLER:I = c

>>STAR A3<<
*LOCK_SCREEN_ORI:I = 1
*LOCK_SCREEN_SLIDE:I = 2
*LOCK_SCREEN_SENSE:I = 3
*LOCK_SCREEN_SENSE_G11:I = 4
*LOCK_SCREEN_GLASS:I = 5
*LOCK_SCREEN_SENSE_G11_PLUS:I = 6
*LOCK_SCREEN_SENSE_PLUS:I = 7
*LOCK_SCREEN_GLASS_G2:I = 8
*LOCK_SCREEN_IPHONE:I = 9


>>SPICE Mi-350n<<
*LOCK_SCREEN_ORI:I = 0x1
*LOCK_SCREEN_SLIDE:I = 0x2
*LOCK_SCREEN_WINDBELL:I = 0x3


>>ALCATEl OT-991 / OT-918<<
*LOCK_SCREEN_ORI:I = 0x1
*LOCK_SCREEN_SLIDE:I = 0x2
*LOCK_SCREEN_JRD:I = 0x3

and this is how it should look like in case of OT-991/918

Attachment 2216448 Attachment 2216502 Attachment 2216450
lockscreen1 lockscreen2 lockscreen3

...but if you having custom rom there is a chance that developers already modify strings so u can't make that chances.
Best way is to decompile android.policy.jar (if u dont know how find it here) and search for LockPatternKeyguardView.smali which is located in :

Quote:

com/android/internal/policy/impl

When u open "LockPatternKeyguardView.smali" look for ... (or something like that) :

Quote:

# static fields
.field static final ACTION_EMERGENCY_DIAL:Ljava/lang/String; = "com.android.phone.EmergencyDialer.DIAL"

.field private static final DEBUG:Z = false

.field static final DEBUG_CONFIGURATION:Z = false

.field private static final EMERGENCY_CALL_TIMEOUT:I = 0x2710

.field public static final LOCK_SCREEN_JRD:I = 0x3

.field public static final LOCK_SCREEN_ORI:I = 0x1

.field public static final LOCK_SCREEN_SLIDE:I = 0x2


.field private static final TAG:Ljava/lang/String; = "LockPatternKeyguardView"

As u can see in this case, /Alcatel ot-991/ there is 3 lock screens (bolded strings). So that is the best to find out what number u have to write after "curlockscreen" string in build.prop.
Little explanation - "JRD" is Alcatel lockscreen - vertical pull down (pict. 3), "ORI" is Gingerbread original - horizontal slide (pict. 1) and "SLIDE" in this case is pull up lock with weekdays in bootom (pict. 2).
Oh and one last thing if u miss the number/letter that is not present in android.policy (for example u write 22 instead of 2) it should be fine, just ur lockscreen is gonna be set to default one.


After changing build.prop push it back to folder and reboot phone.

Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	N/A
Size:	173.7 KB
ID:	2216448   Click image for larger version

Name:	3.png
Views:	N/A
Size:	155.5 KB
ID:	2216450   Click image for larger version

Name:	2.png
Views:	N/A
Size:	255.7 KB
ID:	2216502  

Viewing all articles
Browse latest Browse all 4090

Trending Articles



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