Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Try to get AOSP lockscreen

OP fromnowon

22nd April 2012, 06:26 PM   |  #1  
fromnowon's Avatar
OP Senior Member
Thanks Meter: 98
 
145 posts
Join Date:Joined: Mar 2012
Hi,
since I don't really like the Glass lockscreen on YP-G1,I wanna change it to AOSP style.
However,UOT kitchen can't make it though I've tried many times uploading files

So,I searched for way to mod these files manually in forum.Like:
http://forum.xda-developers.com/showthread.php?t=969354

Stuck ROM's is fully odexed,so I got android.policy.jar and android.policy.odex.After decompiling android.policy.odex(340KB),editing codes,recompiling,I got a dex file(296KB).It was smaller than before,making me confused...

Then I renamed it to 'classes.dex' putting into android.policy.jar,and made a CWM zip and flashed it as usual.

Reboot,ah,just got a bootloop

Anyone could give me a hand?This stuff almost made me mad...
Last edited by fromnowon; 22nd April 2012 at 06:56 PM.
23rd April 2012, 04:21 AM   |  #2  
fromnowon's Avatar
OP Senior Member
Thanks Meter: 98
 
145 posts
Join Date:Joined: Mar 2012
If AOSP lockscreen's codes were not exist in firmware,then what I've done was just in vain...

But Klin has succeed in changing lock style via UOT.So there should be sth wrong in editing these codes for me.

Keep working on it.
23rd April 2012, 05:23 AM   |  #3  
klin1344's Avatar
Recognized Contributor
Flag Cerritos, CA
Thanks Meter: 5,536
 
3,477 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Quote:
Originally Posted by fromnowon

If AOSP lockscreen's codes were not exist in firmware,then what I've done was just in vain...

But Klin has succeed in changing lock style via UOT.So there should be sth wrong in editing these codes for me.

Keep working on it.

You have to change a method in android.policy.jar. I think it was in class lockpatternkeyguardview.

Sent using Tapatalk
The Following User Says Thank You to klin1344 For This Useful Post: [ View ]
23rd April 2012, 11:27 AM   |  #4  
fromnowon's Avatar
OP Senior Member
Thanks Meter: 98
 
145 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by klin1344

You have to change a method in android.policy.jar. I think it was in class lockpatternkeyguardview.

Sent using Tapatalk

Hi,Klin.
Could you please send me your android.policy.jar and android.policy.odex?I downloaded your custom ROM R5,but couldn't be unpacked by UltraISO,even failed to mount the rfs file in Linux

Thax!
23rd April 2012, 03:27 PM   |  #5  
klin1344's Avatar
Recognized Contributor
Flag Cerritos, CA
Thanks Meter: 5,536
 
3,477 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Ok, I'll give it to you when I get home this afternoon. But my rom is deodexed, so it doesn't have android.policy.jar.odex.
And also, the reason you can't mount the factoryfs.rfs is because it is an extremely image in an Odin flashable format. If you want it sooner, you could download r4 and mount it and take the file you need.

Sent using Tapatalk
The Following User Says Thank You to klin1344 For This Useful Post: [ View ]
23rd April 2012, 04:50 PM   |  #6  
fromnowon's Avatar
OP Senior Member
Thanks Meter: 98
 
145 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by klin1344

Ok, I'll give it to you when I get home this afternoon. But my rom is deodexed, so it doesn't have android.policy.jar.odex.
And also, the reason you can't mount the factoryfs.rfs is because it is an extremely image in an Odin flashable format. If you want it sooner, you could download r4 and mount it and take the file you need.

Sent using Tapatalk

Thank you~
Starting to learn Android,I'm interested in everything about it.
24th April 2012, 12:54 AM   |  #7  
klin1344's Avatar
Recognized Contributor
Flag Cerritos, CA
Thanks Meter: 5,536
 
3,477 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Sorry for the delay, but here ya go.
There is no odex version because it is already deodexed.
Attached Files
File Type: jar android.policy.jar - [Click for QR Code] (274.7 KB, 8 views)
The Following User Says Thank You to klin1344 For This Useful Post: [ View ]
24th April 2012, 02:17 AM   |  #8  
iJimaniac's Avatar
Senior Member
Thanks Meter: 414
 
1,355 posts
Join Date:Joined: Oct 2011
So, would using a deodexed android.policy.jar on a stock odexed rom not work?

Sent using Tapatalk
24th April 2012, 03:08 AM   |  #9  
klin1344's Avatar
Recognized Contributor
Flag Cerritos, CA
Thanks Meter: 5,536
 
3,477 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Quote:
Originally Posted by iJimaniac

So, would using a deodexed android.policy.jar on a stock odexed rom not work?

Sent using Tapatalk

Probably not. But you could try it if you want, and if it boot loops just adb push the original one to your phone. But if your rom is a different framework other than 2.3.6 than this definitely won't work.

Sent using Tapatalk
24th April 2012, 03:27 AM   |  #10  
fromnowon's Avatar
OP Senior Member
Thanks Meter: 98
 
145 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by klin1344

Sorry for the delay, but here ya go.
There is no odex version because it is already deodexed.

Thx.
In fact I got lots of bootloop while testing such things,haha
I would investigate this file and hope to find sth.
Thx again!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes