yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Themes and Apps] flipzmode:
Here's what I did to fix it:

\android.policy\com\android\internal\policy\impl\lockscreen.smali

http://flipzmode.pastebin.com/iLYtCfA1 -- changes are highlighted.

.line 519
return-void
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mEmergencyCallButton:Landroid/widget/Button;
invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

.line 533
return-void
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mEmergencyCallButton:Landroid/widget/Button;
invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

.line 559
return-void
iget-object v0, p0, Lcom/android/internal/policy/impl/LockScreen;->mEmergencyCallButton:Landroid/widget/Button;
invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V
[Hero CDMA Themes and Apps] JsChiSurf:
I honestly don't want 20 different iterations floating around, so I went with removing all text only, leaving "some" indicator over nothing. It was an "executive" decision at the time of coding. I can always put the text back in. Let's see how it plays out...
[Hero CDMA Themes and Apps] JsChiSurf:
Thanks for saving me the time. Incorporating your changes right now. I'll follow up when the change is live, and will be updating the original files in the OP.
[Hero CDMA Themes and Apps] smw6180:
Cool. I'll test it out as soon as it's up. ;)

Edit: I'd be interested in getting the 'charging' text back myself, as well. But if it's a PITA don't sweat it. :)
[Hero CDMA Themes and Apps] JsChiSurf:
Okay, files linked to in the OP have been updated, incorporating the Emergency Call fix (thanks Flipz), and restoring the status text for charging, etc.

You do NOT need to update the XML if you have already flashed, as the changes for the above referenced fixes are in the .jar file exclusively.

If someone can flash and confirm I would appreciate it.
[Hero CDMA Themes and Apps] smw6180:
On it. I 'll report back shortly.
[Hero CDMA Themes and Apps] smoother2010:
is there anyway to just make a flashable zip that will take care of all of this instead of using the adb commands? also i wonder if flips will update his 2.1 thread with this and add the alarm clock fix?
[Hero CDMA Themes and Apps] JsChiSurf:
The only way, if you have custom stuff, is to use the MetaMorphs linked above. Do you have a custom taskbar? If not, flashing option #1 will do the trick without having to do anything else.

Also, for now, it is quite easy to simply flash Flipz's stuff with the necessary alarm clocks, etc, then flash this. That's it.
[Hero CDMA Themes and Apps] smoother2010:
i already flashed flips fix but i do have a custom taskbar im afraid.
[Hero CDMA Themes and Apps] JsChiSurf:
Give MetaMorph a shot. It's a free app in the market.
[Hero CDMA Themes and Apps] smw6180:
The only issue I see (which isn't a big deal to me):

When going into/out of airplane mode the emergency call button is indeed gone. However you also lose the charging indicator:
[Hero CDMA Themes and Apps] Jus10o:
I can confirm that your updated fix works. I dont see any emergency call button and I see the charging text.
[Hero CDMA Themes and Apps] JsChiSurf:
Hmm, yea, I'm not going to sweat looking into that, given it is such a specific series of events, etc.
[Hero CDMA Themes and Apps] JsChiSurf:
Cool, thanks for the confirmation.
[Hero CDMA Themes and Apps] smw6180:
Yeah, exactly. The charging text/icon is there without going into airplane mode. And I almost NEVER go into airplane mode in the first place, so I'm not all that concerned about it.

This rocks, thanks for your hard work on it, I appreciate it! :)

Edit: Here's the screenshot again with the charging indicator:
[Hero CDMA Themes and Apps] thatjerk:
Works great! I used the metamorph zips. Thanks to all involved!
[Hero CDMA Themes and Apps] alexthearmo:
Is there a metamorph version of the black lockscreen WITH text? Metamorph is so convenient. If there is such a file, can you point me in the right direction? Thanks!
[Hero CDMA Themes and Apps] JsChiSurf:
danaff37 updated his previous post with the modified/updated files.
[Hero CDMA Themes and Apps] danaff37:
Ha ha I actually posted the fixed ones a couple of hours ago in a post edit.
[Hero CDMA Themes and Apps] JsChiSurf:
Crud. Didn't see any update from you, so I just wasted 3 minutes of my life :(.

I'll delete my post and reference back to yours.
[Hero CDMA Themes and Apps] JsChiSurf:
Removal of Emergency Call Button on Pattern Lock

Okay, per my post in this thread, I've just incorporated the referenced change, for those that use the pattern unlock, in conjunction with the vanilla lockscreen, for removing the 'Emergency Call Button', into the zips in the OP.
[Hero CDMA Themes and Apps] danaff37:
Lol no biggie, just thought it was funny. Not like making a metamorph is something to fret about. I'm still working on figuring out what's what in an xml, never mind a dex
[Hero CDMA Themes and Apps] JsChiSurf:
Feel free to update your files again, if you want, as the OP source files have changed again, to incorporate the keyguard emergency call button removal from the pattern unlock screen.
[Hero CDMA Themes and Apps] Konikub:
Thanks man...just did. Fisrt I thought the emergency call button was no big deal.....if in airplane mode and needed to make an emergency phone call you could!

....but after going out of airplane mode, the emergency button was still there. Now it never shows up, which is SWELL/even better with me!!! :):)
[Hero CDMA Themes and Apps] alexthearmo:
Ya...but those are both without text. I was wondering if there is a metamorph file of the black one WITH text. I just finished working on a custom theme, and if I flash the black one from Flipz, it changes the battery icon and other stuff back. I could probably pull apart his files and try to push some stuff via adb...but if there is a metamorph black vanilla lockscreen out there somewhere, I'd like to know. Can anyone point me in the right direction? :D Thanks!
[Hero CDMA Themes and Apps] JsChiSurf:
Wrong thread...
[Hero CDMA Themes and Apps] fixxxer2008:
i just tried option 2 and all went well until after reboot, now the phone is froze up. any ideas?
[Hero CDMA Themes and Apps] JsChiSurf:
What does your logcat say? As mentioned, depending on the number of apps, reboot will take a long time, as your cache is rebuilt...
[Hero CDMA Themes and Apps] fixxxer2008:
it's on the final htc logo boot screen and it just froze up on me, it's not moving with the animations. is that normal because it seems like a freeze to me.
[Hero CDMA Themes and Apps] JsChiSurf:
Should be okay if the process was done correctly. Logcat is your friend, is it moving?
[Hero CDMA Themes and Apps] fixxxer2008:
i dunno, ive never used logcat before. im off to work so i have to do a nadroid restore real quick.
[Hero CDMA Themes and Apps] JsChiSurf:
Just type 'adb logcat', and let me know if data is still flowing across the screen.
[Hero CDMA Themes and Apps] fixxxer2008:
ill try it again later tonight and post results. i followed your steps one by one so it should of worked.
[Hero CDMA Themes and Apps] JsChiSurf:
Cool. Let me know.
[Hero CDMA Themes and Apps] danaff37:
here are the zips with emergency call gone from pattern unlock as well

and thanks Chi, your awesome!
[Hero CDMA Themes and Apps] JsChiSurf:
Wallpaper Background Option

Okay, thanks to brian m for pointing out that there was a "fix" posted here for specifying a wallpaper background to use on the Vanilla lockscreen. I used their "fix" as a starting point, but made it a bit more intuitive in terms of manually specifying your wallpaper lockscreen, but thanks to Chpoubs for the original fix / concept.

My goal was to make it automatic, so that whatever wallpaper you choose via the android UI will be used as your wallpaper background. Haven't had success with this yet, but I will keep plugging away.

In the meantime, this fix uses the HTC default wallpaper hard coded in the 'framework-res.apk' file, in the '\res\drawable\' folder, appropriately named 'default_wallpaper.jpg', which looks like this:

I changed this .jpg to my own / desired wallpaper for testing, shown here, for example:

However, as mentioned, in the files attached below, the default HTC wallpaper is what's included. For now, you will need to manually replace the 'default_wallpaper.jpg' file with whatever wallpaper you want to use (must be a .jpg obviously, given the extension). Again, the file to change is in your 'framework-res.apk' file, in the '\res\drawable\' folder, named 'default_wallpaper.jpg'.

Here is a flashable zip for the full change, similar to option #1 in the OP. This contains BOTH the 'android.policy.jar' AND 'framework-res.apk' file, so it will undo taskbar changes, etc.

Lockscreen No Text With Wallpaper <---Only flash if you are running stock theme from Fresh 2.0d.

To manually modify, if you are running a custom setup, first flash option #2 in the OP, then, similar to the instructions in option #2, replace the 'keyguard_screen_tab_unlock.xml' in the '\res\layout\' folder of your 'framework-res.apk' with the following XML file:

keyguard_screen_tab_unlock.xml.wallpaper.txt <---Remove .wallpaper.txt extension after downloading.

Note: If you are using the default wallpaper as your OS background, you will have to save the existing 'default_wallpaper.jpg', rename it, save it to your sd card, and then point back to it from the 'set wallpaper' menu option, as this feature is using this file instead.
[Hero CDMA Themes and Apps] JsChiSurf:
Anybody interested / try the wallpaper version yet?
[Hero CDMA Themes and Apps] brian m:
Clear tabs, no text
[Hero CDMA Themes and Apps] jdawg0528:
i'm interested, been looking for a wallpaper fix for the vanilla lockscreen for a while. not a fan of the lockscreen being clear. i will give this a shot sometime soon. thanks a bunch for figuring this out.
[Hero CDMA Themes and Apps] JsChiSurf:
Looks cool. I like how the one on the right looks like it's in his hand.
[Hero CDMA Themes and Apps] jdawg0528:
wicked cool!
[Hero CDMA Themes and Apps] JsChiSurf:
Did you flash yours yet :)
[Hero CDMA Themes and Apps] jdawg0528:
not yet ... having problems with my rom ... hopefully tomorrow :)
[Hero CDMA Themes and Apps] danaff37:
Hey chi, I made the wallpaper mod, and worked great. I have the metamorph, but can't upload till later when I can get to the laptop, made it on my phone but can't upload it (damn I need a ftp server... Lol)

Sent from my HERO200 using the XDA mobile application powered by T mapatalk
[Hero CDMA Themes and Apps] gqukyo:
Great job on the lockscreen!

I tried option 2 because I'm themed my Hero and I can't seem to pull the framework-res.apk file... it keeps giving me a "not found" error. The file is there because I can see it but I can't pull it. I tried the Metamorph zip but that didn't work for me either, Metamorph kept saying the zip file was not valid.

I ended up using DroidExplorer to pull the file and add the xml file into the apk and copied it right back. After a reboot, it worked perfectly. Not sure why neither of those options worked for me but at least I got it working in the end. :D
[Hero CDMA Themes and Apps] JsChiSurf:
Sounds goods. Post away when you get a chance and I'll link to it in the OP.
[Hero CDMA Themes and Apps] JsChiSurf:
Glad you got it working.
[Hero CDMA Themes and Apps] alan7467:
Can I safely use option #1 if I'm running fresh 2.0d with Flipz vanilla lock screen patch?
[Hero CDMA Themes and Apps] JsChiSurf:
Sure, as long as you are stock on your taskbar, you should be good to go.
[Hero CDMA Themes and Apps] warmachine69:
I want to keep my clock and other text. How do I do that?
[Hero CDMA Themes and Apps] JsChiSurf:
Use flipz's original fix for the stock vanilla lockscreen.
[Hero CDMA Themes and Apps] alan7467:
Excellent. Thank's for the reply! :)
[Hero CDMA Themes and Apps] killacammiami:
i have fresh rom and it went back to the old one... i added the menu unlock patch and i didnt reset and i added ur screen no text patch i rebooted and it didnt work am i suppose to reset after every update? thanks
[Hero CDMA Themes and Apps] JsChiSurf:
What do you mean "went back to the old one"?

Not sure what you mean by "reset". Did you download/flash option #1?

If by "back to the old one" means you are using the stock HTC Lockscreen, you have to move it out of the way again, per the OP.
[Hero CDMA Themes and Apps] killacammiami:
yea ok !!! yea by reset i meant reboot and by old i meant stock lock screen !!! i used flash option 1 !! without doing the mv method !!
[Hero CDMA Themes and Apps] JsChiSurf:
That'll do the trick. You have to move the original lockscreen out of the way, so that the default / built-in is used instead.
[Hero CDMA Themes and Apps] killacammiami:
thank u so much this forum is so useful !! and i know search and ull find ur answer lol but theres over 200 pages in a thread lol
[Hero CDMA Themes and Apps] danaff37:
here's a metamorph for adding wallpaper. once you apply it with metamorph, just go into /sdcard/AndroidThemes/Lockpaperadd/framework-res/drawable, and replace default_wallpaper.jpg with your own jpg, just make sure to leave the file name as default_wallpaper.jpg. And for those who don't know, native resolution is 480x320 if you want to make your own.

edit: the wallpaper I have in there is the one I used, kinda tasteless but still pg-13, just so ya know.
[Hero CDMA Themes and Apps] danaff37:
just adb rm HtcLockScreen.apk
[Hero CDMA Themes and Apps] JsChiSurf:
OMG! Too bad it's PhotoShopped and not the real deal...
[Hero CDMA Themes and Apps] jedijackie:
This worked great, no problems, thank you!!! :)

Ok, so I'm not too bright (but can read and follow instructions real well... it's a jarhead thing), so could anyone please offer a brief run down on exactly how to replace the included rainbow 'default_wallpaper.jpg' image, with an image of my own selection?

I can get to the actual folder using Root Manager and can see the currently applied rainbow default_wallpaper image.jpeg... but I don't know what to do from there. I have MetaMorph, but don't know what to do in there either. I have adb shell, but unless I can copy/paste the exact text... again, I'm not too bright. :confused: But I have made it this far by reading every post I can find and have been pretty successful at it (thanks for the continued 'fellowship' guys!)

I know to rename the image and know to use a .jpeg image, but can someone please list what steps I need to do to actually replace the default image with my own selection in my \res\drawable\ folder? Thanks!
[Hero CDMA Themes and Apps] JsChiSurf:
I'm no MetaMorph expert, so I don't know if it matters, but the folder structure doesn't appear to be right to me in the attached MetaMorph. I think you may have included a few too many folders until getting to the nitty gritty, unless it doesn't matter...
[Hero CDMA Themes and Apps] JsChiSurf:
This excerpt from the OP gives a high level guide for changing files in your .apk. You can use the same process for the default_wallpaper.jpg file as well, just a different locations and file to replace. Hopefully this will prod you along in the right direction.
[Hero CDMA Themes and Apps] jedijackie:
Awesome, thank you JsChiSurf!!! Worked perfectly!!! (Wow, I can follow instructions afterall, how-bout-that).:D
[Hero CDMA Themes and Apps] rjj1976:
I tried this and it didn't work.
[Hero CDMA Themes and Apps] JsChiSurf:
Yes, I think the structure in the zip file is wrong.
[Hero CDMA Themes and Apps] Sporkman:
what one of these will flash ok with flipz rom
[Hero CDMA Themes and Apps] JsChiSurf:
Any of them. Just depends on your current setup for which is the optimal choice. If you are running stock Fresh 2.0d, Option #1 is the easiest solution.
[Hero CDMA Themes and Apps] danaff37:
whoops, screwed that zip up, trying to make it on my phone. here's the new one
[Hero CDMA Themes and Apps] rjj1976:
Just tried this on top of my DamageControl V2.07 and Flipz black background on the vanilla lock screen. It applied ok but I still have the black background on the Vanilla lock screen. Should it work with my setup? Thanks
[Hero CDMA Themes and Apps] JsChiSurf:
Haven't tried the MetaMorph file, but assuming it works as intended, it WILL change the background to the use a wallpaper, however, it is only for that purpose, and the text / clock / etc, will NOT be removed, as the 'android.policy.jar' file must first be updated using the link in the first post (option #2).
[Hero CDMA Themes and Apps] danaff37:
yeah the wallpaper metamorph is just as an update to the other ones to apply a wallpaper... I should have specified, my bad.
[Hero CDMA Themes and Apps] Sporkman:
worked perfect thx
[Hero CDMA Themes and Apps] JsChiSurf:
Cool. Feel free to add screenshots to show what is possible :).
[Hero CDMA Themes and Apps] jdawg0528:
thanks brother. worked like a charm :)
[Hero CDMA Themes and Apps] BAttitude7689:
any way to have the lockscreen with text and have the black background instead of the transparent?
[Hero CDMA Themes and Apps] brian m:
Vanilla lock with black background
[Hero CDMA Themes and Apps] BAttitude7689:
THANK YOU!!! I knew I seen it somewhere and I just couldnt remember where I saw it lol thanx alot
[Hero CDMA Themes and Apps] kratos313:
Re:

is there a way to disable the vibrating on the lockscreen

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA Themes and Apps] dametzg:
Does the current one in the first post show the icons and wording for when the alarm clock is set and/or while charging? I noticed the lockscreen went through some changes as this thread went on and I couldn't quite figure out how the current one is set up.
[Hero CDMA Themes and Apps] danaff37:
If I remember right, the second set of metamorphs I posted has alarm and charge notifications intact. I know I have them on mine, but I added the wallpaper update too so not 100% sure...
[Hero CDMA Themes and Apps] JsChiSurf:
All versions throughout this thread, including those in the OP, have the status text enabled.
[Hero CDMA Themes and Apps] JsChiSurf:
It's on my list of things to look at. It may prove difficult, as the SlidingBars are actually internal android widgets, rather than a separate .apk file that can be edited.
[Hero CDMA Themes and Apps] danaff37:
Hey chi, can I ask ya a favor? I'm trying like hell to learn how to do all this on my own, but I cannot figure out how to edit the classes.dex... I searched and tried several things, but it always seems to say to use the baksmali, which for some reason won't run for me, I'm guessing because I have win 7 64.
[Hero CDMA Themes and Apps] JsChiSurf:
Shoot me a PM and we can talk. BTW, I use [bak]smali on win 7 64, so that shouldn't be an issue.
[Hero CDMA Themes and Apps] clifton421:
Ever since I installed this new lockscreen with a custom Ironman wallpaper, my market has stopped working. It will not work on new apps or upadte existing ones. The apps will download fine but when the installation starts I get a forceclose error for the "process com.android.vending". I have tried updating my profile, updating PRL, clearing the market cache, clearing dalvik-cache, and several reboots, but nothing fixes it. Any ideas on why (or if) the wallpaper broke the market? I don't want to restore to the old vanilla lockscreen because I like this one, lol
[Hero CDMA Themes and Apps] danaff37:
Don't know why it broke, but just use your favorite file browser and go to /system/app find vending.apk and click on it to install again.

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA Themes and Apps] thajacka:
nevermind.............
[Hero CDMA Themes and Apps] JsChiSurf:
I think you have a classic case of "coincidence". I really can't see how (though nothing is impossible) the tweak made should really affect the market in any way, and I haven't seen any other reports, including myself, in terms of market problems.

You could certainly, however, flash back the stock vanilla lockscreen and compare, just to rule it out.
[Hero CDMA Themes and Apps] clifton421:
I finally fixed it. I went into astro file manager and navigated to the /system/app folder. I uninstalled vendor (market). It said something along the lines of the orginal application will be used if uninstalled and I clicked ok. I then open the market on my hero (without reinstalling anything) and it worked fine. I agree that I don't think the wallpaper broke the market but I am glad that it is working now. Thank you everyone for your help. :D
[Hero CDMA Themes and Apps] jonesdana:
Works awesome on DC 2.0.7.2.

THANKS!
[Hero CDMA Themes and Apps] Gregalous:
JsChiSurf do you have a version that is compatible with the wallpaper background that has the Sprint/Time/Date text?
[Hero CDMA Themes and Apps] JsChiSurf:
I didn't create one since this whole thread was/is centered around the "textless" version.

However, if you are already running the stock Vanilla lockscreen, you should be able to just grab the XML file referenced in this post, and insert into as referenced in your existing framework-res.apk file, along with your desired default_wallpaper.jpg file, and you should be good to go.
[Hero CDMA Themes and Apps] Gregalous:
That's what I thought, and I tried it and it didn't work. I'm using Flipz's Vanilla lockscreen fix from his site, so I wasn't sure if it would work. I'll give it another try just to double check.

EDIT: Also the .jar file in the OP still keeps the shadow from the Time text on the lockscreen.
[Hero CDMA Themes and Apps] JsChiSurf:
Should work. The shadow is not controlled in the .jar file, it's in the XML.
[Hero CDMA Themes and Apps] Gregalous:
It worked when I put in the .xml manually, I guess MetaMorph just didn't feel like working that one time :P

And the shadow is gone too, works great! Thanks for all your work.
[Hero CDMA Themes and Apps] brianwilcox:
Great tutorial and great mod. Thanks JsChiSurf
[Hero CDMA Themes and Apps] alehoop:
please help me out...

when i open up command prompt you guys posted to write

adb remount

when i type that it says

'adb' is not recognized as an internal or external command, operable program or batch file

am i suppose to type something else before this??
[Hero CDMA Themes and Apps] brian m:
Depends where you put the android-sdk

Here's my path:cd c:\android-sdk-windows\tools
[Hero CDMA Themes and Apps] alehoop:
what u mean?? sdk windows ??

srry i'm not that good

im new =\
[Hero CDMA Themes and Apps] brianwilcox:
Did you root your phone yet?
[Hero CDMA Themes and Apps] JsChiSurf:
http://developer.android.com/sdk/index.html
[Hero CDMA Themes and Apps] alehoop:
yeah i rooted my phone

ahh i see i got it

tytyty very much
[Hero CDMA Themes and Apps] barnacles10:
I am trying to use this with the wallpaper. I have pulled the framework apk and copied the provided xml into it and pushed it back. However, after reboot, I still have the clear unlock screen. Any help?
[Hero CDMA Themes and Apps] JsChiSurf:
Did you use this XML file?

Also, make sure you renamed the file correct, by removing the .wallpaper.txt extension before dropping it in the applicable folder.
[Hero CDMA Themes and Apps] barnacles10:
Yes I pulled the XML file from the wallpaper post. I initially dropped the file with the wallpaper.txt at the end, but then went back and dropped it without. Would the previous drop that I put in without those removed be causing an issue?
[Hero CDMA Themes and Apps] JsChiSurf:
Sholdn't be an issue. But, you may want to consider going the MetaMorph route, rather than manually editing your files.

See Here. Gregalous put together some morphs of my mods.
[Hero CDMA Themes and Apps] barnacles10:
Thanks, I see he says don't flash as update.. but you do flash these files I assume right..
[Hero CDMA Themes and Apps] JsChiSurf:
Re: [NEW] Vanilla Lockscreen WITHOUT Sprint/Time/Date text

No. you install using the metamorph application. Free in the market.

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA Themes and Apps] barnacles10:
Great, thanks. You've been a great help. This forum is great.. I learn something new everyday :D
[Hero CDMA Themes and Apps] barnacles10:
Could someone direct me to the link of the file I need to flash to fix my alarm clock? I'm not able to disable it. Flipz fix is mentioned in the OP, but I can't find it.