yashsingh1/xdaforums huggingface dataset:
[Samsung Epic 4G Touch] dtm_stretch:
How to do this mod yourself

I just sent this to an awesome themer but I figured I might as well post this because I am short on time this week and I feel like anyone can do this mod for themselves. It is going to take me longer to write up this review than it will for you to do the mod lol. I hope you don't feel insulted because I broke it down a lot.

Here are the steps:

1. Download the zip linked here: http://d-h.st/ZiV (I am pretty sure these are the latest smali/backsmali, they have always worked so I never changed them)

2. Extract to a folder, preferably one with just the backsmali and smali in it

3. Drop the file you want to edit in that folder, in our case android.policy.jar

4. While inside that folder hit shift + right click on your mouse then select open command window here (or you can just cd to the location you extracted the tools)

5. From command prompt type:

java -jar baksmali.jar -o android.policy/ android.policy.jar

This will breakdown the classes.dex file to an easily edited format

6. Switch back to the folder, you will see there is an android.policy folder, navigate through all the folders till you find "LockPatternKeyguardView.smali" got to make sure it is this one specifically because there are several named slightly different.

7. Open with notebook++ or whatever editor you use and do a search for

iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z

8. Once you have found that line change the 2 to a 1 (this makes the AOSP lockscreen the priority)

9. In the line right above that change the 1 to a 2 (This makes the slide lockscreen 2nd priority)

10. Click save, close, and switch back to the command prompt.

11. Issue the command

java -jar smali.jar android.policy/ -o classes.dex

this will rebuild the classes.dex

12. From the root of your smali folder open up the orginal jar with your zip manager and delete the classes.dex and drag the newly built classes.dex into the jar. That is it for the android.policy.jar

This can be unlocked with the menu button so you have to modify the framework-res.apk/res/values/bools.xml and you are just looking for config_disableMenuKeyInLockScreen and change false to true, save, and recompile.
[Samsung Epic 4G Touch] dazednconfused:
You are the man. Can't thank you enough for the help. I appreciate you taking the time to do that.
[Samsung Epic 4G Touch] tjohnsonjr:
Here's a modified FC18 android.policy.jar
[Samsung Epic 4G Touch] dtm_stretch:
Thanks I linked the OP to your post.
[Samsung Epic 4G Touch] dtm_stretch:
OP Updated to FC22. I have no longer included the disable increasing ringer mod. If you are interested in that still let me know and I will post the mod.
[Samsung Epic 4G Touch] psych0r3bel:
So uh, I noticed no one asked this yet, probably because I'm missing the obvious due to mental retardation, but is it possible to/how do you add or change the lock screen options? I'd like to add my dialer to it just as a matter of convenience.
[Samsung Epic 4G Touch] dtm_stretch:
You can't, this is just the aosp lockscreen enabled. It isn't customizable.
[Samsung Epic 4G Touch] neverends:
2 questions

1. Do you still have the flashable file for FC18

2. can you post increasing ringer disabler for fC 18...

Thanks
[Samsung Epic 4G Touch] dtm_stretch:
I do, give me a few hours and I will post it when I get home.
[Samsung Epic 4G Touch] Sabbathia:
Thank you, this is fabulous! Now my Google Music lockscreen controls work again. I have no idea why Samsung wouldn't make their TW lockscreen compatible.
[Samsung Epic 4G Touch] dtm_stretch:
Err, my bad I didn't do FC18 Tjohnsonjr did. Sorry, didn't mean to get your hopes up. If/when you move on to FC22 let me know and i'll post the ringer mod.
[Samsung Epic 4G Touch] bcparker:
Can you PLEASE post a revert .zip so you can go back to JUST the stock lockscreen for FC22 if need be.
[Samsung Epic 4G Touch] dtm_stretch:
There ya go added to the OP. By the way you can just pull the android.policy.jar from the system/framework folder of what ever rom you downloaded and push that to system/framework to revert the changes and you will be done faster than using CWM to flash a zip.
[Samsung Epic 4G Touch] bcparker:
Thanks so much. my set-up is now perfect.
[Samsung Epic 4G Touch] maxximuscool:
Can the Notification bar be hidden? I would like to get it gone. It burn my screen.
[Samsung Epic 4G Touch] dtm_stretch:
Nope, that is the way it is on stock aosp.
[Samsung Epic 4G Touch] MeWarning:
Will this work alright on Calk's v1.3a based on FC24?
[Samsung Epic 4G Touch] daniel4653:
Yes it will
[Samsung Epic 4G Touch] dtm_stretch:
Make sure you use the version for themes, if you don't you will negate any changes or fixes that Calk made to his rom.
[Samsung Epic 4G Touch] El_Parcero:
thanks..

just if we could mod it so it opens a messaging app instead of the camera.. but for now im happy.. thanks for this mod its just what i was searching for
[Samsung Epic 4G Touch] bhavi_jp:
Very nice. Need it for FD02.
[Samsung Epic 4G Touch] slyty08:
Samsung Galaxy Note

Will this work on the ICS Galaxy Note Rom?
[Samsung Epic 4G Touch] dtm_stretch:
I'll update it this weekend for FD02 unless someone else does first.

Not the specific zips but you can definitely make the mod for the note.
[Samsung Epic 4G Touch] dtm_stretch:
OP updated to FD02
[Samsung Epic 4G Touch] z31k:
I tried the zip file and it killed my crt.. Is that normal?
[Samsung Epic 4G Touch] dtm_stretch:
Yup, the crt mod is in the framework-res.apk. So if you are running something other than FD02 stock deodexed you need to flash the any theme version.
[Samsung Epic 4G Touch] R-Sarius:
Does anyone have a link for the fc18 version of this?
[Samsung Epic 4G Touch] dtm_stretch:
OP updated to FD24
[Samsung Epic 4G Touch] reddragon72:
Will you due up the FD26? I just jumped to it and totally forgot about the crappy ass touchwiz crap!! Man I really really hate touchwiz, it is the only downfall of this phone.
[Samsung Epic 4G Touch] dtm_stretch:
The FD24 version will work just fine on FD26. As soon as I can get my hands on a stock-deodexed version I will update.
[Samsung Epic 4G Touch] reddragon72:
Sounds good!
[Samsung Epic 4G Touch] VECTUS:
Love this man! Great work!!:D
[Samsung Epic 4G Touch] tjohnsonjr:
Here is FD26
[Samsung Epic 4G Touch] MoridinAmalasan:
Does this one work for any theme?
[Samsung Epic 4G Touch] dtm_stretch:
It should work on any ICS touchwiz based rom or theme.
[Samsung Epic 4G Touch] k2thejx5:
Love this lockscreen plan on making an update for the new leak?
[Samsung Epic 4G Touch] dtm_stretch:
Yes, I will. It might not be so soon though. I am sure tjohnsonjr will update his rom and post the necessary file though if I don't get it done before. Is there a deodexed version available?
[Samsung Epic 4G Touch] k2thejx5:
Pretty sure one came out last night actually
[Samsung Epic 4G Touch] T.C.P:
You should post the changes you made so ppl don't bug u as much ;)
[Samsung Epic 4G Touch] rrmzr1:
+1
[Samsung Epic 4G Touch] dtm_stretch:
I am a little confused fellas, I haven't made any changes, in fact I am still on FD24 myself. This is still based on FD24 because there isn't a publicly available FE07, stock and deodexed. Agat has already done this but I am sure he has just gotten a little busy and hasn't uploaded it to his account. I also wouldn't recommend flashing the older versions over FE07 since that is a version upgrade.
[Samsung Epic 4G Touch] rawdikrik:
I think people wanted instructions on the changes you made... But it looks like you posted them in the OP.

Anyone interested in doing this should go here : http://xdaforums.com/showthread.php?t=1538828

If it was the weekend, id try it myself. It's been awhile since i did anything productive around here :)
[Samsung Epic 4G Touch] dtm_stretch:
Thanks, yeah there is no change log because nothing changes except for the firmware it is based on which is in the title of the thread.

I also posted a more detailed guide here http://xdaforums.com/showpost.php?p=23897497&postcount=38 and this includes the necessary tools and even information not included in _Jkay's original guide.
[Samsung Epic 4G Touch] rawdikrik:
The link in that post is no longer valid.

Is this what we need? http://code.google.com/p/smali/downloads/list
[Samsung Epic 4G Touch] rrmzr1:
The files in that like are no longer available.
[Samsung Epic 4G Touch] dtm_stretch:
Yep, just remember to rename the tools or adjust the commands to match the version number

Here is a new link http://d-h.st/ZiV
[Samsung Epic 4G Touch] nellycruzz:
This work with T-Mobile galaxy s2 pics?
[Samsung Epic 4G Touch] dtm_stretch:
The guide or the actual zips? The guide should be the exact same for all SGSII'S but the flashable zips won't work.
[Samsung Epic 4G Touch] rrmzr1:
How can I change the lock screen if rom is odexed
[Samsung Epic 4G Touch] nellycruzz:
I mean I just want aosp lock screen. That's all. The lock screen apk I suppose
[Samsung Epic 4G Touch] dtm_stretch:
You can't, this requires a smali edit which you are unable to do if the phone is still odexed at least as far as I know.

Unfortunately, then this will not work. I do not own your phone but I assure you if you want to do the mod yourself it is very simple. This is not an apk, the lock screen is already built into the framework and android policy it just has to be turned on.
[Samsung Epic 4G Touch] datajosh:
dtm_stretch - what do you use to de/recompile framework-res? The policy.jar edit was easy but I keep getting errors trying to recompile framework-res.
[Samsung Epic 4G Touch] dtm_stretch:
This is really a pain on ICS. I have had the tool agat posted in the development section work and sometimes not and I also use the ICS apk manager posted in the Galaxy nexus forum.

Edit: Try this one http://xdaforums.com/showthread.php?p=23935070
[Samsung Epic 4G Touch] datajosh:
Thanks, I'll give it a try as soon as my system finishes deodexing FE10
[Samsung Epic 4G Touch] dtm_stretch:
Which method are you using to deodex? You should definately share it when you are done.
[Samsung Epic 4G Touch] datajosh:
I'm using dsixda's Android Kitchen to deodex. A bit of work to set it up but the results seem to be good so far.

Still can't get framework-res to recompile properly but the menu unlock thing doesn't bother me too much right now, just glad to get the AOSP lockscreen going. (I can post the FE10 version once I verify it's working, haven't flashed everything yet.)
[Samsung Epic 4G Touch] datajosh:
For those wanting this on FE10, here's the stock deodexed ROM:

[ROM] FE10 Stock, Rooted, Deodexed (ICS / 4.0.4)

And the AOSP Locksreen ZIP is attached. You MUST be on a deodexed ROM for this to work. The menu button will unlock the screen since I couldn't get framework-res.apk recompiled properly.
[Samsung Epic 4G Touch] dtm_stretch:
Op updated to FE10. Thank Datajosh above this post for doing the deodexing and for editing android.policy.
[Samsung Epic 4G Touch] timmetal6669:
Sorry toa sk this here, but is ether an AOSP lock screen for the latest EL29 ROMs like calkulins 3.0 and mijjz's 3.0? Was on ICS for a while but with all the bugs and now a half ass recovery instead of CWM not to mention all the brick fear hype, I decided to go back to GB. plus i get boot animation and all apps work. So I'm trying to make it as much like ICS as possible. If anyone knows how to unlock the AOSP lock screen on mijjz 3.0 or know a link where i can find it I'd really appreciate it. Using widget locker right now and i don't like it. Also a crt on for mijjz 3.0 would be cool too. Thanks
[Samsung Epic 4G Touch] dtm_stretch:
Unfortunately, I am not that skilled to make this work for gingerbread roms. The AOSP lockscreen is already built into the touchwiz roms it just needs to be turned on. I don't think I have seen anyone backport this mod, although, maddoggin created a pretty nice mod with a bunch of lock screens. As for CRT animation, it is actually a pretty simple modification for both ICS and GB, it just involves changing one line of code from false to true. There are plenty of guides out there for that and it is a really easy one to get you started in themeing.
[Samsung Epic 4G Touch] dtm_stretch:
Updated to FE14.
[Samsung Epic 4G Touch] datajosh:
Ain't no party like a Samsung leak party 'cause a Samsung leak party don't stop
[Samsung Epic 4G Touch] dtm_stretch:
Thanks dude! I was still in process of deodexing the rom. Did you evey get the apk manager figured out?

Sorry for putting this here timmetal6669 but I tried to respond to your pm and it send you have pm's disabled.

I am pretty sure it is nearly impossible on gingerbread or someone would have done it already. The framework for the lockscreen is already built into ICS roms so you would have to completely rewrite all of the code into GB. The closest you can get is the TSM lockscreen mod, which already available for GB, and they had to build a whole app to interact with the systemUI.apk and the settings.apk. I honestly have no where to point you because I haven't seen anyone, other than the TSM mod, make the lockscreen for GB. Sorry. If you know how to compile from source you might be able to port all of the code pertaining to the ICS lockscreen to GB. As for doing that I have no idea.
[Samsung Epic 4G Touch] datajosh:
No problem! I had it deodexed but barnacles10 beat me to posting the ROM :) Haven't tried the apk manager yet because the menu unlock hasn't bothered me but I might this weekend.
[Samsung Epic 4G Touch] dtm_stretch:
OP updated
[Samsung Epic 4G Touch] datajosh:
I'm ready for the OTA already
[Samsung Epic 4G Touch] datajosh:
FE22
[Samsung Epic 4G Touch] slick4mitch:
So, I flashed this but still have the TW lockscreen ...
[Samsung Epic 4G Touch] dtm_stretch:
I didn't have any issues with what datajosh posted, plus I just updated and tested all the flashable zips and it worked. Which kernel did you use to flash?

OP Updated to FE22.
[Samsung Epic 4G Touch] slick4mitch:
User error ... ;)
[Samsung Epic 4G Touch] datajosh:
Hopefully this is the final build!
[Samsung Epic 4G Touch] dtm_stretch:
Yeah no joke, OP updated. Thank this man for being so damn fast deodexing and getting the android.policy.jar edited. Btw Datajosh, have you had a chance to look at the version of this mod that allows you to toggle it in settings?
[Samsung Epic 4G Touch] datajosh:
I haven't, my main focus has been on trying to get rid of the AM/PM, I keep playing with Clock.smali in SystemUI.apk but can't get it yet. I'm great at inadvertently getting rid of the status bar though! :p
[Samsung Epic 4G Touch] dtm_stretch:
The AM/PM mod also has a version that just adds a check box in settings, it is the same for lockscreen. I am just having trouble getting it to work. Check out the international sgsii they have some guides up.
[Samsung Epic 4G Touch] datajosh:
Our smalis seem to be a bit different from the other GS2 ICS builds - I finally got AM/PM removed, not sure if I have the desire to dig in and make a toggle though :)
[Samsung Epic 4G Touch] slick_rick:
You have lockscreen mod for June 22nd leak? Lol (check thread title)
[Samsung Epic 4G Touch] datajosh:
FF11!
[Samsung Epic 4G Touch] CyberpodS2:
Will this work on Agat's roms?
[Samsung Epic 4G Touch] datajosh:
It should work on any FF09 or FF11 ROM
[Samsung Epic 4G Touch] CyberpodS2:
Sweet! Thank you..
[Samsung Epic 4G Touch] rrmzr1:
FF18?
[Samsung Epic 4G Touch] dtm_stretch:
Yeah sorry about that, I have been running CM9. I will be switching back soon so I should have something up this week. If you are interested somewhere in this thread I have posted a step by step with tools included on how to do it yourself.
[Samsung Epic 4G Touch] dtm_stretch:
Finally updated to FF18. Anyone interested in the phone ringer mod or the 1x/3g mod?
[Samsung Epic 4G Touch] prguzman1978:
Which one of these files can i flash being on a stock ROOTED FF18 ODEX Rom?
[Samsung Epic 4G Touch] dtm_stretch:
Well, none technically as it is for deodexed. However, if you are feeling frisky just try either of them and if it doesn't work just flash the version that returns you to stock or restore your backup.
[Samsung Epic 4G Touch] gradford11:
Great work, thank you.
[Samsung Epic 4G Touch] prguzman1978:
No thanx I will pass lol...
[Samsung Epic 4G Touch] dtm_stretch:
Really, not feeling frisky? I will look into getting a odexed version up this weekend.
[Samsung Epic 4G Touch] prguzman1978:
For real that's what's up I will be waiting for the file...
[Samsung Epic 4G Touch] dtm_stretch:
Any chance you or someone else can upload the android.policy.jar and the android.policy.jar.odex from the system/frameworks folder for me?
[Samsung Epic 4G Touch] prguzman1978:
Yes give me a minute...

---------- Post added at 01:44 AM ---------- Previous post was at 01:32 AM ----------

Here's the link to my dopbox https://www.dropbox.com/home/Android
[Samsung Epic 4G Touch] dtm_stretch:
I think you need to put the files in the public folder then post the link
[Samsung Epic 4G Touch] prguzman1978:
my bad lol https://www.dropbox.com/home/Public
[Samsung Epic 4G Touch] dtm_stretch:
Once it is in the folder you have to right click > dropbox > link
[Samsung Epic 4G Touch] prguzman1978:
I never used it to link files but here it is again https://www.dropbox.com/sh/md1sh6f7vo0j83z/z0dVIB5xyq?m
[Samsung Epic 4G Touch] dtm_stretch:
Alright OP updated with the odexed version make sure to thank Crawj for sharing his knowledge and posting the guide. I tested this on stock, rooted, FF18, and odexed from the .tar that Sfhub created. Please make a back up first just in case. Let me know how everything goes.
[Samsung Epic 4G Touch] rsngfrce:
Ok, maybe a dumb question, but if I use the odexed version on my odexed phone, do I need an odexed version of the TW Lockscreen to revert, or will the version posted work?
[Samsung Epic 4G Touch] dtm_stretch:
Great question, yes you do. I am doing away with the zip that reverts because it was only created when we couldn't make back ups on the leaks. Just stick with backups if you don't like the mod.
[Samsung Epic 4G Touch] prguzman1978:
Works perfect dtm_stretch i appreciate you and Crawj for taking your time to bless us with an odexed version of the AOSP lockscreen mod thanx peace...
[Samsung Epic 4G Touch] dtm_stretch:
FH13 added to OP, I will get an odexed version up this weekend.
[Samsung Epic 4G Touch] CyberpodS2:
Sweet, I am flashing Agat's FH13 right now so that will be a great addition... Thanks man...
[Samsung Epic 4G Touch] dtm_stretch:
Odexed is up.
[Samsung Epic 4G Touch] bigpeng:
Can you make it so the weather shows up too like how Rujelus22 has it?

Fh13 that is.

Thanks in advance.
[Samsung Epic 4G Touch] dtm_stretch:
Hmm interesting I didn't even notice that it doesn't work. I will send rujelus22 a pm and see if he can help me out.
[Samsung Epic 4G Touch] Apk07:
What about having another option on the lock-screen to open messaging like CM9? I love the AOSP lockscreen but I do miss having that messaging button
[Samsung Epic 4G Touch] bigpeng:
Rujelus22 has that option in his addons too if dtm wants to ask about that as well.
[Samsung Epic 4G Touch] dtm_stretch:
Rujelus22 has hooked me up with the weather fix. Ill try and and get it out sometime this week (i haven't had a chance to implement it), as for the option for alternates for the camera that will take considerable more work, which might be outside my skill set. I imagine we will have to modify the framework and .jar to incorporate the ability to select other options. However, I will give it a shot and maybe I can annoy rujelus22 to help me out with that also.
[Samsung Epic 4G Touch] dtm_stretch:
Alright, here is the weather fix. One big issue with the fix; it is in the framework-res.apk so it will undo any theme you have. As for the options other than the camera app, that will be on hold for a while. I want to try out some jellybean. Also if you want to post your framework-res.apk of the them you are using I can add the fix for you.

Also make sure to thank Rujelus22 for being an awesome developer who is willing to share his knowledge.
[Samsung Epic 4G Touch] Aganar:
Tried to flash FH13 AOSP Lockscreen.zip through stock recover and got the dead android red triangle picture. Should I be loading CWM on there first before trying to flash this?

EDIT: After I backed out of it the log said "Signature verification failed." I take it this is because the zip is unsigned?
[Samsung Epic 4G Touch] dtm_stretch:
You have to flash it with a custom recovery.
[Samsung Epic 4G Touch] Aganar:
Uhh...did that through Agat's FF18 recovery and now the phone won't get past the end of the boot animation (sitting on "4G")

Glad I made a nandroid backup...
[Samsung Epic 4G Touch] dtm_stretch:
Which zip did you flash, from what recovery, and what rom are you on? Kinda leaving out some details.
[Samsung Epic 4G Touch] Aganar:
I flashed "FH 13 AOSP Lockscreen.zip" on a rooted FH13 stock ROM with FF18-CWM-agat-src recovery.

EDIT: The recovery installation seems to have changed my kernel. It's now AGAT_v0.1.1 #2
[Samsung Epic 4G Touch] dtm_stretch:
Is that deodexed?
[Samsung Epic 4G Touch] Aganar:
I thought it was, but it might be just rooted. Should I try the Odexed zip?
[Samsung Epic 4G Touch] dtm_stretch:
Yes sir, let me know if that works. Good move making a back up. Are you interested in having the weather on the lockscreen?
[Samsung Epic 4G Touch] Aganar:
Will try if this works. More concerned about getting this up and not bricking my device. :)

Also hoping it will bring back Google Music lockscreen functionality.

---------- Post added at 10:19 PM ---------- Previous post was at 09:48 PM ----------

Does work! Miss the transparent option from CM9, though. I have a Live wallpaper but the Touchwiz settings are forcing me to choose a static image.
[Samsung Epic 4G Touch] dtm_stretch:
Good to hear. I have been looking for a while on how to implement a transparent lockscreen but no luck.
[Samsung Epic 4G Touch] Aganar:
Be cool if you could figure it out. I could always go back to CM9/10 but I'm getting way better battery life out of stock.

Thanks again!
[Samsung Epic 4G Touch] someguyatx:
I fail at reading directions today. Finally got this to work after flashing the wrong thing twice. Thanks for keeping this up to date.
[Samsung Epic 4G Touch] Warboy:
Can someone do this for FH23?
[Samsung Epic 4G Touch] dtm_stretch:
I am actually thoroughly enjoying AOSP JB right now so I have no intention of returning to ICS nor do I want to play the leak game. However, I have posted a step by step HERE and I would be more than willing to walk you through creating the mod. This is really easy, especially if you are just learning this stuff and it is a great mod to start with.
[Samsung Epic 4G Touch] _dan:
I can post aosp lockscreen with reboot options if its cool with you dtm.

---------- Post added at 10:21 AM ---------- Previous post was at 10:18 AM ----------

I was working on removing the tw lockscreen background for a while.

Look!

https://www.dropbox.com/s/nynsejxufng6x5h/video_Aug_20_2012_0.mp4

You can see that the live background is there when i swipe to unlock.
[Samsung Epic 4G Touch] dtm_stretch:
Hey awesome! Yeah if you want to post everything in your thread we can let this thread die.
[Samsung Epic 4G Touch] _dan:
Here's FH23 with reboot options.

http://db.tt/FwNdmUGP
[Samsung Epic 4G Touch] adamw1101:
That link isnt working
[Samsung Epic 4G Touch] attrapp:
I created a FI03 AOSP lockcreen for myself so here it is if anyone would like it :)
[Samsung Epic 4G Touch] teknthoozed:
Question..

Is there anyway to change the font on this lock screen? Thanks for sharing your work!
[Samsung Epic 4G Touch] dtm_stretch:
Did you include the weather fix? Do you want it? Thanks for picking this up. Also, if you are going to keep up with the leaks you might as well start a new thread so you can update the OP.
[Samsung Epic 4G Touch] attrapp:
I probably won't keep it updated as I usually use an AOSP based rom but thank you. I made this to try out the newest recaulked rom as I don't like the ripple AOSP lockscreen that is included as an option and I thought I would share.
[Samsung Epic 4G Touch] lord dredd:
can we get an UPDATED one for FI03 from the OP :)