yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] s0niqu3:
Hi again,

First, thanks again for the fantastic work you've done porting these to the vibrant.

Second, I was wondering if it might be possible to port the CM6 lockscreen music controls to the default android lockscreen on the vibrant? Yet again, my experience with coding is extremely elementary, sadly I'm mostly a graphic design nerd.

Also, is there possibly any chance of enabling the "next alarm" and "battery status" information from the default android lockscreen on epic/puzzle/glass lockscreens? And maybe also the carrier info text on the epic & puzzle lock screens?

I noticed in the source for the EpicLockScreen.smali and PuzzleLockScreen.smali they both have the following:

.field private static final DISPLAY_CARRIER_NAME:Z = false

I tried setting those to "true" but still no carrier display, so I presume there's a method call to get carrier id/info that the epic and puzzle lock screen's don't have? Maybe this is the same idea for the battery status/next alarm info too?

I've also tried editing the various layout xml's from your source, (mostly the zzz_keyguard_screen_epic_clock.xml since I use the epic lockscreen daily) many, many times over the last few days, and aside from changing the text color of the date, I can't make it display anything else.

Any thoughts?

Again, thanks for all the fantastic work, glad to have you working on the vibrant.

Cheers, =)
[Vibrant Android Development] untermensch:
I think all of that is possible, I have not seen the media controller for CM6

could you post a picture?

as for the carrier display the code is there, but the text color is being set to -0x1

the same thing with the epic lock screen I am not 100% sure but it should be something

like 0xFFFFFFFF for white fully opaque.

EDIT:

setTextColor(I) wants an integer so 0xFFFFFFFF will probably crash.

.line 296
const v2, 0x10201a8 # carrier

invoke-virtual {p0, v2}, Lcom/android/internal/policy/impl/PuzzleLockScreen;->findViewById(I)Landroid/view/View;

move-result-object v2

check-cast v2, Landroid/widget/TextView;

iput-object v2, p0, Lcom/android/internal/policy/impl/PuzzleLockScreen;->mCarrier:Landroid/widget/TextView;

.line 297
iget-object v2, p0, Lcom/android/internal/policy/impl/PuzzleLockScreen;->mCarrier:Landroid/widget/TextView;

invoke-virtual {v2, v7}, Landroid/widget/TextView;->setSelected(Z)V

.line 298
iget-object v2, p0, Lcom/android/internal/policy/impl/PuzzleLockScreen;->mCarrier:Landroid/widget/TextView;

const/4 v3, -0x1 <<<<<<<<<<<<<<<<<<<<<<<<< what color is that???

invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V
[Vibrant Android Development] s0niqu3:
Hi,

Thanks for looking into anything you think will work, I truly appreciate it. Maybe we'll get you on the CM team building CM6.1 for the vibrant, =)

Here's a link to some screenshots showing the music controls in CM6, back from a changelog in july: http://nightly.posterous.com/latest-changes-on-cm6-nightly-builds

and here's the code from the CM6 keyguard_screen_tab_unlock.xml to at least draw the buttons, though I don't know how much work goes into the back-end, and/or where to find the code to enable them. My best guess would be that its also in android.policy, and settings.apk, just like you had to modify for this lockscreen mod.

<ImageButton android:id="@id/musicControlPlay" android:background="@drawable/btn_media_player" android:padding="10.0px" android:visibility="gone" android:layout_width="71.0dip" android:layout_height="52.0dip" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_play" android:layout_alignParentBottom="true" android:layout_centerInParent="true" />
<ImageButton android:id="@id/musicControlPause" android:background="@drawable/btn_media_player" android:padding="10.0px" android:visibility="gone" android:layout_width="71.0dip" android:layout_height="52.0dip" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_pause" android:layout_alignParentBottom="true" android:layout_centerInParent="true" />
<ImageButton android:id="@id/musicControlPrevious" android:background="@drawable/btn_media_player" android:padding="10.0px" android:visibility="gone" android:layout_width="71.0dip" android:layout_height="52.0dip" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_previous" android:layout_toLeftOf="@id/musicControlPause" android:layout_alignParentBottom="true" />
<ImageButton android:id="@id/musicControlNext" android:background="@drawable/btn_media_player" android:padding="10.0px" android:visibility="gone" android:layout_width="71.0dip" android:layout_height="52.0dip" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_next" android:layout_toRightOf="@id/musicControlPause" android:layout_alignParentBottom="true" />

BTW, I don't know if this was a default, but on the glass lock screen,the day of the week is a blue text color, so I changed that for myself on the epic lockscreen. For anyone what wants to do the same, the code is simple, one line to change in the zzz_keyguard_screen_epic_clock.xml:

<TextView android:textSize="22.0dip" android:textColor="#ff5cc4ff" android:id="@id/zzz_week01" android:layout_width="86.66998dip" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="12.0dip" android:singleLine="true" android:shadowDx="1.0" android:shadowDy="1.0" />

Thanks again, cheers, =)
[Vibrant Android Development] untermensch:
ok the settextcolor thing is a dead end. I don't know what color -0x1 is but

the glass lock has the same code

but I found this in method updateLayout in the glass unlock screen

while the epic lock screen method is empty

so maybe try changing all instances of GlassLockScreen to EpicLockScreen

and place it in the method updateLayout and see if the text gets set.

iget-object v0, p0, Lcom/android/internal/policy/impl/GlassLockScreen;->mCarrier:Landroid/widget/TextView;

iget-object v1, p0, Lcom/android/internal/policy/impl/GlassLockScreen;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

invoke-virtual {v1}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->getTelephonyPlmn()Ljava/lang/CharSequence;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

I do like the CM media controls better than Samsung's might be a bit less code

too.
[Vibrant Android Development] s0niqu3:
Hi again,

Thanks for the help, I may try that tomorrow if I have time, though I notice there are references to GlassLockScreen$4 in the method, is that referring to the similar named smali file? If so, I don't see an EpicLockScreen$4.smali file in your source, so I'm guessing I shouldn't update all instances?

for example:

.line 681
sget-object v0, Lcom/android/internal/policy/impl/GlassLockScreen$4;->$SwitchMap$com$android$internal$policy$impl$GlassLockScreen$Status:[I

I'm also with you on liking the CM media controls much better than samsung's, and its supposed to work with market apps like Pandora Radio too, and not only the default Music.apk.

Honestly, if you can post the CM media controls, I'd be happy using the default android unlock until CM6.1 finally makes it to the vibrant.

Thanks again for all your help, cheers, =)
[Vibrant Android Development] untermensch:
I would just start by adding the 5 lines in the code box to updateLayout method

that will probably set the carrier text, the rest of the code in the GlassLockScreen-->updateLayout

method deals with no sim card messages and emergency call button and will cause

null exceptions is those resources cant be found.
[Vibrant Android Development] s0niqu3:
Hi again,

Well, I tried adding those lines to the existing method (and setting the initial "display carrier name" to true, and it didn't work. endless loop, bypasses the lockscreen altogether now, boots straight to desktop, then immediately becomes unresponsive, crashes, and loops again straight to the desktop, etc.

Here's the code from my method with those lines, maybe I need to remove the return-void at the end or the .line 1325? Both of those lines were in the original, empty method.

.method private updateLayout(Lcom/android/internal/policy/impl/EpicLockScreen$Status;)V
.registers 2
.parameter "status"

.prologue
.line 1325

iget-object v0, p0, Lcom/android/internal/policy/impl/EpicLockScreen;->mCarrier:Landroid/widget/TextView;

iget-object v1, p0, Lcom/android/internal/policy/impl/EpicLockScreen;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

invoke-virtual {v1}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->getTelephonyPlmn()Ljava/lang/CharSequence;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

return-void
.end method

Oh well, no worries for tonight, I'd love to help you figure out the CM6 media controls if possible too, definitely more interested in that than figuring out the carrier text.

Thanks again, cheers, =)
[Vibrant Android Development] s0niqu3:
Hi again everyone,

Just a quick update, here's a copy of android.policy.jar (taken straight from the JI6 deodexed version untermensch posted) that disables the menu-key to unlock the screen when using the default android lockscreen.

Two requirements (mostly because I'm lazy right now, sorry.)

1) You must be using a deodexed rom based on JI6

2) You must have already flashed the lockscreen mod for deodexed JI6 roms provided in the OP

Should flash fine from clockwork recovery, though please note, the update script will attempt to wipe your dalvik-cache, so you need to disable voodoo (if you use it) before flashing.

Cheers, =)
[Vibrant Android Development] MacGuy2006:
Thanks, holysmokesbatty!
[Vibrant Android Development] the3dman:
How did you fix this? I would like to fix this in the odexed version.
[Vibrant Android Development] s0niqu3:
Hi,

You should be able to run dex-opt wrapper on the classes.dex in my modified/fixed android.policy.jar and then do a DD to copy over the correct signature per the instructions in the original thread here:

http://xdaforums.com/showthread.php?t=779803

And also, fixing the key was fairly simple, there's a method in LockScreen.smali name .method shouldEnableMenuKey() look for the line "return v4" and change it to "return v6"

The .smali edit tip/fix also comes from that thread, several pages in though.

In the OP there was another tip to disable the menu ky by setting:

<bool name="config_disableMenuKeyInLockScreen">false</bool>

in framework-res.apk /res/values/bools.xml but that didn't work for me on the vibrant/JI6, hence the smali edit instead.

Cheers, =)
[Vibrant Android Development] the3dman:
Here is a version of the lockscreen mod for stock odexed JI6 with the menu button disabled in the android lockscreen. Thanks to s0niqu3 for all her help on this!
[Vibrant Android Development] schtuka:
boy, i wish this could be ported to captivate froyo soon.............
[Vibrant Android Development] blackerwater:
This is awesome. Love it thanks

Sent from my vibrant
[Vibrant Android Development] henreeg:
On the lock screen, my girl decided to pull the little ball down on the Epic lock screen and it unlocks.

o ___o

The little arrow is pointless then. I don't care though... love the lock screen.
[Vibrant Android Development] untermensch:
I also got a field not found exception when I tried it

tho I can set the text manually by adding these lines after settextcolor

const-string v3, "T-Mobile"

invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
[Vibrant Android Development] mbh8280:
THANX!!! But how do I install it?
[Vibrant Android Development] hotwired34:
untermensch,

I have an Epic and as of right now, there is nothing to get rid of the Battery Fully Charged popup. Would it be possible to take out everything from this except the component that kills the battery full popup and apply it to an Epic? If so, would you be so kind as to make a post in the Epic area with a way to get rid of the popup?

Thanks in advance.
[Vibrant Android Development] thechadhall:
i flashed this on both JFD and JI6 without any issues
[Vibrant Android Development] hotwired34:
Can someone tell me which file(s) gets modified to remove the battery full popup? I can try and modify the files for the Epic and see if I can get it working.

Thanks
[Vibrant Android Development] tjsynkral:
http://xdaforums.com/showthread.php?t=793653

All it took was a simple Google search
[Vibrant Android Development] hotwired34:
Thank you. I am sorry, I did use the search, but in the Epic section. Using Google brought me here, which is why I asked here.

Thanks again.
[Vibrant Android Development] s0niqu3:
Hey again,

So I'm trying to port this to eugene's froyo, and it seems like the changes to android.policy.jar (well, at least for the lockscreen) were minimal, so this should still work, but I'm wondering exactly how you changed settings.apk? I can't just diff the files, since the files don't always decompile the exact same each time they've been compiled/decompiled.

Any chance at getting a diff list of the changes you had to make to settings.apk? That seems to be the only thing really stopping me from getting this working.

Thanks again, cheers, =)
[Vibrant Android Development] kd_bui:
I applied the 4g lockscreens to my stock JI6 with OCLF. Everything works great but it replaced my accurate battery icon with the stock inaccurate battery icon. I then reflashed the accurate battery icon and phone keeps rebooting everytime it reaches to the lockscreen. Is there an update that include the accurate battery icon? Thanks for your help.

I found what I need. Thanks.
[Vibrant Android Development] camalot:
I flashed the "Reboot" in the shutdown menu mod, not thinking and now i don't have the lockscreens... I don't need reboot that bad, I love the option for the 4 lockscreens
[Vibrant Android Development] kd_bui:
I like this mod better than the reboot mod. This mod doesnt work with the reboot mod so I have to pick this. I can live with rebooting manual. :D
[Vibrant Android Development] kuhan:
So, I went into a US Cellular store and played with a Mesmerize. The lockscreen is similar to the Captivate and Vibrant "Glass" Unlock, but with a few visual modifications.... Think you could work that in?

video (about 3 min in): http://www.youtube.com/watch?v=kIZZa1seEUQ
[Vibrant Android Development] jmattp:
Has anyone tried flashing this to a Captivate? My wife has one, we might try it tonight. We'll do a backup first, but if someone knows for a fact that it won't work, it'll save us the time.
[Vibrant Android Development] mark72501:
How to install ?

Forgive me. I'm brand new to Android and my Captivate running 2.2 JI6. I want this mod so I can use the stock lockscreen but, I confess, reading through this thread is like reading the Bible in Greek and Hebrew. I don't understand the lingo, etc., that is second nature to many of you.

Would someone be so kind as to list a step-by-step detail of how to install this on my device? I am rooted, have ROM Manager installed. I just don't know what to do.

Again, sorry...I know many here are like "oh great, a newbie" but yes, that's what I am. I have spent 2 hours on this forum, some on this thread, tonight and can't figure it out at all.

Thanks for your time!
[Vibrant Android Development] jmattp:
1: I'm pretty sure people who can read Hebrew can probably read the Hebrew Bible.

2: I just asked if anyone has tried it on the Captivate. My wife is going to try it tonight on her Captivate probably in an hour or so unless someone can confirm that it would be a waste of time. I have a Vibrant.

To flash it:

DO A BACKUP FIRST. (Clockworkmod>backup restore>backup) THIS MOD MIGHT NOT WORK

Download the version for your baseband. To check baseband version, tap Menu>Settings>About Phone>Baseband Version. Mine ends with "JI6" because I got the update. If you want the update, use Kies Mini from Samsung.

Put the downloaded file in the phone's internal storage, reboot into recovery (select "reinstall packages" if it didn't go to Clockworkmod automatically). Select "flash zip from SD card", then select "choose zip from sd card". Choose the one you downloaded, select "yes", then reboot.

If everything is screwed up, reboot into Clockworkmod Recovery again and restore by following the same steps you did to backup, except restore this time. I wipe data and cache before I restore, but I don't know if that's necessary. It certainly doesn't hurt.
[Vibrant Android Development] mark72501:
I'll wait to see if it works on her Captivate, then, and do it after that, if it does.

Thanks for the steps! That helps.

And, yes, people who know Hebrew can read the Hebrew Bible...obviously I meant it's like me trying to read the Hebrew Bible...that wouldn't be a pretty sight.

Thanks again!
[Vibrant Android Development] kuhan:
To be fair, the way he worded it, we can metaphorically read Hebrew.

That being said, I don't think it'll work on 2.2 at all. I doubt it would work on Captivate at all, either, but I don't know, so it's worth a shot. Just be sure to back that asset up.
[Vibrant Android Development] mark72501:
When I click for it to backup, it goes into recovery and starts doing its thing and then I get an error...it shows (what I can see):

MBR Checksum Error

Movinand Checksum Confirmation Fail

-- movi_checking done!...

update media, please wait

update media, finished

-- Install from package...

Finding update package...

Opening update package...

Verifying update package...

E:failed to verify whole-file signature

E:signature verification failed

-- Appling Multi-CSC...

Installing Multi-CSC

Installation aborted.

Any ideas...?
[Vibrant Android Development] kuhan:
That's during backup? Did you backup from the ClockworkMod app or straight from recovery?
[Vibrant Android Development] mark72501:
I went into ROM Manager (ClockworkMod) and under the "Backup and Restore" section I clicked "Backup Current ROM" and that's what I got... :confused:
[Vibrant Android Development] kuhan:
try booting into Clockwork Recovery and then going to backup/restore and backup.
[Vibrant Android Development] mark72501:
OK, tried that. Clicking the option to reboot in recovery yields the exact same results as I listed above (so I won't list here again) with the error stuff in red on my phone screen as I typed them above. EDIT: And no option to backup is listed.

:confused:
[Vibrant Android Development] jmattp:
My wife's Captivate has JH7 firmware (she just updated it with Samsung Kies Mini). Like I said, this mod might not work... we didn't bother trying because the OP didn't make this for JH7.
[Vibrant Android Development] takato23:
hey, why when i put the deoxed Ji6 version on my Bionix Final R1 with PRoject Core V2 kernel, reboot, recovery and download options from shutdown button has gone? and the notification bar has change too
[Vibrant Android Development] mark72501:
Is something messed up with ROM Manager / ClockworkMod on my phone?
[Vibrant Android Development] kuhan:
for one, this changes the framework, where those options are. Additionally, the lockscreens are built in to Bionix Final, so you really didn't need to do this. Just reflash Bionix Final. (or Fusion... it's better :D)
[Vibrant Android Development] TJD319:
Is it possible to port this to JK2?
[Vibrant Android Development] drizze99:
I would love to know the same thing!!
[Vibrant Android Development] lightninbug:
as would I!!
[Vibrant Android Development] bert269:
Yep...me too, please....

Can someone please port this for us - on the JK2 build....It is sooo cool to have it.

Thanks guys
[Vibrant Android Development] gonintendo:
same, i'd love it on jk2
[Vibrant Android Development] gonintendo:
actually scratch that, id like it on obsidian (v2)
[Vibrant Android Development] Mi|enko:
Obsidian is based off of JK2. . .
[Vibrant Android Development] gonintendo:
yeah i know but i wasn't sure if there were any changes large enough to affect this project so i figured i'd clarify.
[Vibrant Android Development] d3xt3rlab:
can u port it for JK2 froyo plz? i love this mod. thanks.
[Vibrant Android Development] geoffcorey:
use the search, it's already been ported to JK2, but only works with stock JK2.

Doesn't work with macnut (r10 and lower, not sure about the anticipated r11) and doesn't work with team whiskey roms (since untermensch released the diffs, TW should be incorporating th JK2 mod into their releases).
[Vibrant Android Development] McBang2023:
But what about the reboot screen?

So ive looked over all the post in both threads and still can't find my answer. After flashing the J16 clockwork version of this mod, i wanted to reboot my phone. But i found that my reboot options (reboot, recovery, download) are no longer avaiable. i figured i post here since the OP is the same for both mods. Can anyone shed light on how i can have both mods. The lockscreen mod and the reboot mod found here (http://xdaforums.com/showthread.php?t=811532&page=12):confused:
[Vibrant Android Development] geoffcorey:
flash the lockscreen choice mod, then reboot then flash the power options mod after wards. that's how i did it and i kept both options.
[Vibrant Android Development] McBang2023:
It shows the multi-boot screen and they operate just fine, but when you select an option for which lock screen you want, it does not change. if i select epic, it still shows the glass screen. Any other suggestions? :confused:
[Vibrant Android Development] Emily2424:
Lock screens for vibrant

Hi, I'm running stock on my vibrant. Haven't done anything to it besides doing a lag fix. I wanted to know if there is an easy way for me to get the fascinate's lock screen and the epic lock screen on my vibrant. I don't know how to put roms or any thing like that on my phone
[Vibrant Android Development] Emily2424:
i have a vibrant with baseband version t959uvj16. how do i get the fascinate and epic lock screens on my phone?
[Vibrant Android Development] crazy77:
Help!!

Ok so I am really new to this, sorry for my ignorance. I downloaded the JI6 clockwork odexed zip and I rebooted in clockwork. I then pressed install zip from sd card, and it says installing update, and then it stops at that screen. I left it to install for 12 hours, and it still hadn't gone anywhere. I was wondering what I am doing work, and how to fix this. Thank you so much for your help
[Vibrant Android Development] podanimesh:
please tell me how touse diff files in settings.apk.

i want to use it in I9003
[Vibrant Android Development] ali1276:
Dude, these files are for 2.1, you shouldn't be using them with 2.3.4, you do realize that the 9 lockscreen mod includes these right. :)
[Click Android Development] SAuRoN92:
Is there a way to port latest gapps and apps like phone.apk and the browser etc to android 1.6?

i'm thinking a android 1.6 ROM with all froyo applications that it will look like froyo and have a working camera etc

why try getting froyo to work when we can improve what we already have

at the moment i'm installing Linux on my laptop and i'm gonna get cracking at this any developers interested in my idea?
[Click Android Development] francians:
Nice idea, first of all, I suggest to try every app to see what works..

I think the big porting pb for the ones that don't work will be the newer APIs
[Click Android Development] SAuRoN92:
so basically we need to re dev the apps from scratch?
[Click Android Development] SAuRoN92:
i sense alot of coding involved in this project {sigh}
[Click Android Development] serega43:
Is it possible to create such a patch which will be able to enable JIT on 1.6 Roms?
[EVO 4G Q&A, Help & Troubleshooting] sibobaby510:
So yesterday i updated my Radio and Wimax with Calkulin and all of a sudden i turn on 4G and it scans, connects, and scans. It usually just stays on scan.

My 4G MAC address is 00:16:08:00:24:05

I am currently running Fresh 3.3.

Help please ive been looking alllll day couldnt find anything.
[EVO 4G Q&A, Help & Troubleshooting] aliaselchore:
same here

i got the exact problem and also running fresh. i tried updating wimax, radio, PRL, and profile and still scans then tries to connect and goes back to scanning

HELP........:confused: