yashsingh1/xdaforums huggingface dataset:
[Droid Incredible Q&A, Help & Troubleshooting] jager420:
I had the same problem with swype and how I fixed that was to go to manage applications and killed touch input. Went to compose a text message and long press (as if your going to paste) and changed the input method. I only had just got that problem when changing to Uncommon Sence 1.1 so i dont know if that would help your and your ROM.
[EVO 4G Themes and Apps] nukedukem:
This is great! Thanks.
[EVO 4G Themes and Apps] JsChiSurf:
Sure thing. Would love to see a screen capture by someone who pulls this off successfully, to verify there are no errors in the steps / sequence I posted.
[EVO 4G Themes and Apps] nukedukem:
I removed the text completely with 20's, so maybe this isn't the best example, but it worked. Thanks again.
[EVO 4G Themes and Apps] JsChiSurf:
Nope, great example. I fully expected that some would want to do that. Nice. Thanks for the confirmation.
[EVO 4G Themes and Apps] JsChiSurf:
Similar Solution for Status Bar

Here is an example for doing something similar for the status bar drown down menu, by replacing 'Sprint' with your own text, w/o CDMA Workshop.

This did, however, require some smali edits, which I was trying to avoid...
[EVO 4G Themes and Apps] erikivy:
I am a total newb when it comes hex editing and so forth, but I was able to follow every single step with no problems, however, my lock screen still says "Sprint" following a reboot. I'm on Fresh 3.3.0.1. Any suggestions on what to check?
[EVO 4G Themes and Apps] JsChiSurf:
Are you using the HTC Lockscreen, or the Android Lockscreen? This is specifically for the Android Lockscreen.
[EVO 4G Themes and Apps] erikivy:
Ahhhhh, that must be it. Thanks for the quick clarification.
[EVO 4G Themes and Apps] JsChiSurf:
If you want to verify your work, you can temporarily (or permanently) move the HTC Lockscreen out of the way, just to test.

Via adb, try the following:

adb remount
adb shell
cd /system/app
mv HtcLockScreen.apk HtcLockScreen.apk.bak
reboot

After rebooting, your phone should come up with the Android lockscreen in place, hopefully, with your custom text.

If you want to go back to your HTC Lockscreen:

adb remount
adb shell
cd /system/app
mv HtcLockScreen.apk.bak HtcLockScreen.apk
reboot

BTW, if interested, I could take some time and see if I can put together the same mod for the stock HTC Lock as well.
[EVO 4G Themes and Apps] nukedukem:
I would be very much interested in knowing how you did this as I can't run CDMA workshop in a virtual machine.

This may come in handy too :)
[EVO 4G Themes and Apps] erikivy:
This worked perfectly! Thanks for going the extra mile to help a rookie. :) I'm a long-time CM6 user just experimenting with Fresh, so I have no love-affair with the HTC lock screen. I'm happy to see the familiar vanilla lock.
[EVO 4G Themes and Apps] JsChiSurf:
I haven't given up on trying to accomplish this 100% through XML edits. By coupling with a recompiled services.jar, it can be problematic for those who may already have a custom services.jar file for other mods. If I don't find a solution, I'll post what I did for the current method.

I'll take a look. Can't imagine it should be much different that the vanilla lock change.
[EVO 4G Themes and Apps] JsChiSurf:
Sweet. The fact that you pulled it off no longer makes you a rookie :p.
[EVO 4G Themes and Apps] JsChiSurf:
HTC Lock Screen

Okay, attached is the XML file to edit if using the stock HTC Lockscreen, as opposed to the Vanilla Android Lockscreen.

The instructions are virtually the same, with the exception being the name of the attached / applicable file is 'lock_screen_bar.xml'. Again, the attachment has been given a .txt extension for download, be sure to rename by removing the .txt extension prior to editing.

There are a couple of important differences between this mod and the vanilla mod. Since on the HTC Lockscreen the 'Sprint' text is centered, and I wanted to allow for up to 20 characters in the name, you have to center your text across the 20 characters, rather than right align by appending the spaces to the front of your string. Also, I defaulted / hard coded the text in the attached file to be 'Sprint', rather than 'HTC EVO', to make it appear to be more 'stock' in nature.

So, now, when you search for the hex value to replace, which is Sprint surrounded by spaces, you will search for:

20 20 20 20 20 20 20 53 70 72 69 6E 74 20 20 20 20 20 20 20
S p r i n t

To re-iterate, it is imperative that you try and keep an equal number of spaces to the left/right of your text, to keep it centered on the lockbar. So, using "John's Phone" as the example, which again translates to:

4a 6f 68 6e 27 73 20 50 68 6f 6e 65

You can see that there are 12 hex characters, since we need 20, I need 8 spaces (20 - 12 = 8), equally distributed to the front and back of the string, or 4 each:

20 20 20 20 4a 6f 68 6e 27 73 20 50 68 6f 6e 65 20 20 20 20

So, we simply search and replace (in hex mode) the original value:

20 20 20 20 20 20 20 53 70 72 69 6E 74 20 20 20 20 20 20 20

For the new:

20 20 20 20 4a 6f 68 6e 27 73 20 50 68 6f 6e 65 20 20 20 20

Then, follow the instructions in the OP to pull/push your file. This time, the file to pull is 'HtcLockScreen.apk' in the '/system/app' folder, and the home for the XML file 'lock_screen_bar.xml' is the '/res/layout' folder of the apk.

And once done, after a reboot, voila:
[EVO 4G Themes and Apps] in4nerd:
:D

WOOOOOOOOOOH 2xThumbs-Up
[EVO 4G Themes and Apps] JTNiggle:
oops, my bad
[EVO 4G Themes and Apps] silverxbv2:
Is this doable on the incredible?

Here is the file. You could possibly modify this for me? I see what you did with the HTC EVO banner in the hex, but I don't know where to add that here.
[EVO 4G Themes and Apps] JTNiggle:
What does it normally say by default? Verizon?

Hey... This thing makes phone calls too!
[EVO 4G Themes and Apps] myMUSICveins:
Can you use root explorer instead of adb push??
[EVO 4G Themes and Apps] evohack99:
Well I'm missing something, I'm doing this all from my phone, I dl file took .txt off opened in the hex app you gave me, nothing in there with 20 value, I must be missing something , sorry if your getting mad with my ignorance in this.

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] evohack99:
Yeah I think I'm up setting him, to tell you the truth I think its the hex editing apk on my phone that is not letting me find the string

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] JsChiSurf:
You searched for the hex value:

20 20 20 20 20 20 20 20 20 20 20 20 20 48 54 43 20 45 56 4F

In the XML file from the OP and did not get a result?
[EVO 4G Themes and Apps] evohack99:
Well the hex ed apk. You gave me won't let me search a string that long, I'll post a pic

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] evohack99:
This is what the apk looks like

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] evohack99:
Okay I rebooted and found something it looks like on line 250 it should say sprint, but you said you changed to htc evo, I'll post a pic

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] evohack99:
Okay wow I figured it out, I feel dumb it runs to the line under it, wow, I even read this thread and found the other guy with that same problem, what I love about computers they can make me feel stupid

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] evohack99:
Well it didn't change anything, after reboot, could it be, because I flashed my vanilla lock screen then flashed a transparent locker ? I'm trying to change the sprint on this screen

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] JsChiSurf:
Did the transparent lock you flashed remove the Sprint banner text all together? I don't see any banner text at all in your screen capture, though it is difficult to see...
[EVO 4G Themes and Apps] Azurewings125:
I'd like to try this out.
[EVO 4G Themes and Apps] evohack99:
Ever sense i dl shoot me, it takes horrible pictures

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] JsChiSurf:
I honestly can't make out a single thing in that picture.

Sent from my HTC Evo
[EVO 4G Themes and Apps] evohack99:
But if you can't see it the "sprint" is still at the top, but what I did a while back was delete the "htc lockscreen.apk" and flashed the vanilla lock , then I flashed warms transparent lock bar. So now all that shows are the lock and unlock circles, then "sprint" at the top. I tried looking in all of the zips too see if I could find s print in them, but no luck there was 3,000,000 some lines.

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] JsChiSurf:
I usually like to see people pull this off on their own, but I'm out of energy. Post up your framework-res file and I'll create a flashable zip for you.

Sent from my HTC Evo
[EVO 4G Themes and Apps] evohack99:
Hows that one, I dl drocap2

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] evohack99:
No man , thanks but if I can't get it, I don't want it givin to me, you have been really helpful, if I could just find where that sprint is located in the millions of code string I could get it from there, if you give up then I'll probably flash a stock rom and go from there.

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] JsChiSurf:
It's not in the stock / default XML on the phone. The crux of this mod is the hack I applied to the XML to force in and override the 'Sprint' text that gets pulled from the system internals and displayed on the lockscreen, if favor of the static text I forced into the XML.
[EVO 4G Themes and Apps] yamaford:
I'm not on the asop rom but I would like to know how you find the line to edit. Example... how did you know what you were looking for when you pulled the file that you edited and posted?

The hex. Hex editor apk doesn't seem to show me what I need to see. I guess I'm gonna have. Wait and use the computer at home. It should go easy as much as I've read today. You are a great teacher. Good classroom materials and examples with a touch of patients.
[EVO 4G Themes and Apps] evohack99:
Lol I'm getting somewhere, Guess the 20 char limit I fixed, lol I'll just go change that part to what I want it to say

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] JsChiSurf:
You're close! Looks like you may have accidentally overwrote the wrong section by just a bit. Try again with the original XML in my OP, being sure to replace the exact character count.

Now that you're replacing the file correctly, you should be able to test by just dropping the file I provided in place w/o editing, just to see it come up and say "HTC EVO", thus verifying that the first step worked for you, meaning all that is left is to properly hex edit the file.
[EVO 4G Themes and Apps] evohack99:
That's what I did thanks for everything,

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] JsChiSurf:
Ha! Wasn't sure we'd get there. Nice Job!
[EVO 4G Themes and Apps] evohack99:
Yeah I'm real persistent, but thanks for the help, I made it harder than it had to be.

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] evohack99:
If I change roms will this stay ?

Sent from my netarchy_toast, froyo beast of a machine evo!
[EVO 4G Themes and Apps] Karadorde:
Ho hum. Tried several different things and couldn't seem to get anything to work. Though, I think I was doomed from the start.

These may seem like stupid questions/statements, but bare with me. This is more for my own edification. Just trying to figure everything out.

There is really no point in doing this if I flash nightlies correct? Every time I flash a new nightly I am guessing it will just revert back to Sprint.

Could I edit the framework before flashing my ROM? Use your .xml, place it in the appropriate spot, and then flash?

I think I had more questions, but it is late and I am crabby since I couldn't get this to work haha. Thank you for the help.
[EVO 4G Themes and Apps] JsChiSurf:
It will not stay, as the change you made will be overwritten.

However, since you now have the XML file properly edited, after switching ROMs, since you are using NinjaMorph, it should be as simple as popping the XML file you already have back in place.

Yes, this approach will get overwritten after a new flash, but as mentioned above, once you have it working, it's a 1 minute job to put it back in place.

Sure, depending on what recovery image you use, you may need to re-sign the zip file after editing, so that it flashes successfully.
[EVO 4G Themes and Apps] Karadorde:
Thank you for the help and information sir. I still cannot get it to work. I am either doing something wrong or the framework has changed enough (From CM6 Stable to the latest nightly) that this it just won't work. I will continue to tinker and probably delve a little deeper when 6.1 comes out. Thanks again.
[EVO 4G Themes and Apps] JsChiSurf:
By "not work", what is happening? Bootloop, no change? Just to confirm, you are using the .cm.txt file in the OP?
[EVO 4G Themes and Apps] Karadorde:
Bootloops.

I used the cm.txt file from the OP. Tried the HxD/7zip method from my desktop and even attempted from the phone with NinjaMorph/HexEditor. No luck with either one.

I still want to try editing the framework before flashing the ROM. I will try it with tonight's nightly and see if I can get it to work. If flashing with Amon_Ra I will need to resign, correct?

EDIT: Well I made a run at it. Downloaded the 141 Nightly. Cracked it open. Made the necessary adjustments. Zipped. Signed. Flashed. Bootloops. Oh well. No harm no foul.

Perhaps I could handle this for the AOSP roms. I would need a little bit of guidance, but since there isn't a huge following for this mod from guys with AOSP roms I don't expect you to mess with it too much (PM me. I understand if you don't want to mess with it at all though. Its all gravy either way. Just willing to learn and want to help.) Thank you for the help.
[EVO 4G Themes and Apps] myMUSICveins:
So, thought you might want an update. I decided since I started disliking the animations in the theme I had that I would stop being lazy and research how to perform each aspect of the theme I did like and hope your mods would work afterwards.

Although im still missing the battery icon I want, Im pleased to say every other mod I wanted and then some are done with both your .xml/.apk edits working!

Thanks for the help again.

-Anders
[EVO 4G Themes and Apps] JsChiSurf:
Ha, nice work! Glad to see you went old school and did some things yourself. It's very rewarding. I'm seriously starting to really dislike these auto-kitchens, as they are monkeying with the apks and making things difficult for true themers, etc.

Along the way, I'm sure you've learned a lot in the process, and, quite frankly, getting the animated battery back is another easy exercise in XML editing that you can probably pull off as well, w/o the help of automated utilities....
[EVO 4G Themes and Apps] Karadorde:
Hxd/7zip on the desktop resulted in bootloops.

NinjaMorph/HexEditor on phone resulted in bootloops.

Trying to apply the mod as a flashable zip resulted in bootloops.

Trying to apply the mod as a signed flashable zip resulted in bootloops.

Am I wrong in thinking that the single keyguard_screen_tab_unlock.xml file is so different from 6.0 to 6.1 that it is causing the issues?

I find it hard to believe but I suppose it has to be. Either that or I am not nearly as proficient at this as I had thought I was. Trying not to spam and be a pain. Just really like the idea that I could change this and my notification bar to two separate things and not have to use a pirated version of CDMA workshop.

Not sure where to go from here. Thank you for the help you have provided.
[EVO 4G Themes and Apps] JsChiSurf:
Let's try something. Link me to the precise ROM / version you are running this instance and what you want the banner to say, and I will build something from scratch using the exact ROM source, provide as a flashable zip, and see what happens.
[EVO 4G Themes and Apps] Karadorde:
update-cm-6.1.0-RC1-Supersonic-signed.zip

Banner: SCFD 332
[EVO 4G Themes and Apps] JsChiSurf:
Okay, I downloaded the ROM, extracted the framework-res.apk, modified, injected back into the ROM, signed the zip, wiped, flashed, and upon bootup got this:

The XML was ever so slightly different, but not enough I would have thought to bootloop, but who knows.

Anyway, try and flash the linked framework-res.apk file below, that has been modified to include the banner text you see in the screen capture above.

SCFD Vanilla Lockscreen Banner <--- Flash via recovery
[EVO 4G Themes and Apps] Karadorde:
How do you do that? Is it magic? I don't understand. Thank you so much though. Definitely owe you for this. I'll hit you up when I get back to the house.

When you crack open the xml in hex editor, is it really just trial and error or is there more to it than that?

(I am talking about what you just did with mine. Approximate the location and go from there?)

Sent from me to you via the interwebs.
[EVO 4G Themes and Apps] JsChiSurf:
Looks to me like you were doing everything right, so I would have to assume the updated XML was the main difference.

This mod requires a rewrite to the actual XML, in order to trick the java code into still writing the 'Sprint' banner, but moving it out of the way and making it invisible.

Then, injecting a new TextField with static text that then end user can then modify relatively easily in a hex editor.
[EVO 4G Themes and Apps] Neelzz:
Any idea if this can be done using a root explorer and simply copying the framework-res.apk to your desktop, replacing the modified file and then copying back to the phone?

At the moment Im using CM6 Nightly 140 in case that matters.

Ok. Tried both methods ... pushing the file with adb as well as copying using root explorer. Both resulted in bootloops. Perhaps the CM6 file you linked is outdated?
[EVO 4G Themes and Apps] JsChiSurf:
It might be, but I certainly can't update the CM version nightly if they keep becoming obsolete, it's just not practical.

With that said, since I re-did this for Karadorde yesterday, I've attached to the OP another version with a .6.1.txt extension that you can try. It is confirmed working, so if the file is properly edited, you should be good to go.
[EVO 4G Themes and Apps] Neelzz:
Thank you for the updated file and I apologize if it seemed like i was implying that you were slacking. I was mostly trying to understand if the problem was me editing the file or if that particular file was outdated. I usually don't update my nightly, nightly. Usually only happens if In bored or see an improvement worth the time. Thank you again for your time and effort.
[EVO 4G Themes and Apps] JsChiSurf:
No worries. I was clearly suffering from modding fatigue last night, and once I had another dose of caffeine, I was good to go :).

Let me know if the newly attached worked for you. Sounds to me like your procedures were sound.
[EVO 4G Themes and Apps] Neelzz:
Just used your new file. Worked perfectly. Thank you again. :)

P.S. Can't wait till you release the notification window mod for the CM6. ;)
[EVO 4G Themes and Apps] JsChiSurf:
Thanks for the confirmation.

Coming soon. It's just a tad bit of a pain, as I have to nandroid, wipe, flash the ROM, mod, test, package, release, nandroid back, etc...:eek:
[EVO 4G Themes and Apps] killakarl:
Thanks JS

used the OP and have everything working thanks for all the hard work!
[EVO 4G Themes and Apps] JsChiSurf:
Okay, the Notifications Window post has been updated with an attachment for CM6.1. This was much trickier to pull off given the level of built-in customization for notifications, etc, for CM, and my need to override those options via XML, w/o requiring an edit to the Java code, but it is done.

Same instructions apply, with a few minor caveats as mentioned at the end of the post, most notably:

1. Home folder for the xml is '/res/layout', as opposed to '/res/layout-hdpi' for sense based ROMs.

2. The font color is fixed to black and cannot be changed via the CM settings

3. Be sure to remove the .cm6.1.txt extension.

Go here to download the XML.
[EVO 4G Themes and Apps] JsChiSurf:
Anyone running CM6.1 try the newly added option for setting the Notifications Window banner? Just looking for confirmation.
[EVO 4G Themes and Apps] Karadorde:
Working with it right now. I will post back here in a few.

EDIT: Worked like a charm. Couldn't be happier. Thank you sir. Excellent work.
[EVO 4G Themes and Apps] JsChiSurf:
Sweet. Thanks for the confirmation!
[EVO 4G Themes and Apps] Jon:
Just tried and it works :)

I did make a boo-boo and not do a nand backup; and perhaps I used the wrong file but after rebooting all my account info was gone (apps and settings were there, just no contacts or emails)

I restored to my latest backup from the other day, I am going to pull the file and try to edit it as it is in my system and try again.

Thanks OP for this tut!
[EVO 4G Themes and Apps] JsChiSurf:
Yes, it is mentioned in the OP that making live changes to a framework file may reset your contacts / logins, etc. It's not really a big deal, you just re-login, and sync, etc.

However, if you want to be sure and avoid this, you can push to the phone right after reboot, before the phone comes up, or turn into a flashable zip.
[EVO 4G Themes and Apps] Jon:
Thanks :D

I just skipped to the meaty parts of what to replace and where to put it.

Every time I don't read everything it bites me in the @$$. Even if this would happen no matter what I didn't even see it in the post.

Either way, thanks for the tut, rather not see 'SPRINT' on my lockscreen
[EVO 4G Themes and Apps] fmedina2:
So how do we change the notification drop down banner?
[EVO 4G Themes and Apps] JsChiSurf:
Assume you got your adb issue resolved?

Go to the OP and follow the link at the bottom to the notifications window option.
[EVO 4G Themes and Apps] fmedina2:
Well, I have two EVO's. One is "technically" my girlfriends... :D but for some reason it worked perfect on my phone, but when I tried to change her lock screen, it kept saying directory not open I believe. Seems that her phone had to be in recovery but mine didn't. Shes running Warm and I am running cyanogen. Although I should be doing this in recovery anyways shouldnt I? Still new to adb.
[EVO 4G Themes and Apps] JsChiSurf:
Sounds to me like the one you are having problems with is running a stock kernel that does not support, out of the box, remount for adb?

Try just dropping the file on the sdcard and using root explorer to drop it in place, or, flash a custom kernel which I'm thinking should resolve as well.
[EVO 4G Themes and Apps] fmedina2:
Well I got hers to work. She has netarchys kernel so I had to go into recovery and do that mtdblock thing, but with CM6 all I had to do was remount. Just did the notification mod on my EVO, just getting tired of the white screen hangs that come with snap turbo... :mad:

Notification mod worked! Thanks!
[EVO 4G Themes and Apps] fmedina2:
Hmm, couldnt get the notification to work with Myns ROM. Maybe its the font?
[EVO 4G Themes and Apps] foresure84:
tried all night ...can you please point me in the right direction the rom i am using is

Azrael version 2.41
[EVO 4G Themes and Apps] JsChiSurf:
Need more details / description of what happened, steps taken, etc.

I'm not familiar with the Azrael ROM, so I don't know the starting base ROM to know compatibility, but Myn's, I would think, should be fine, as it is based, I believe, on the latest Sprint release.
[EVO 4G Themes and Apps] Echo2Lincoln:
Riptide9 ColorNClear

If anyone is interested I use Riptide's ColorNClear V8 theme. So I just changed the files for the lock screen and notification bar in theme zip files and reflashed. Worked well :) I didn't have to touch adb.

Thanks JS