lock screen mod, need guidence porting - Samsung Infuse 4G

http://forum.xda-developers.com/showthread.php?t=1077998
found this in the vibrant section and it is very much like the lockscreen mod that dagr8 has on his roms. i really love the miui lockscreen and music controls because it works with 3rd party music players and because you can open the dialer and messager apps directly from the lock screen. since this has all the needed files in a .zip i was wondering if somebody could port this to the infuse or guide me on how to do it. i would like to learn.

Bump. Wishing you luck as this will be beneficial to many of us.

95 views and no answer, hmm maybe i can pm one of the devs that uses this on another phone.. .

APK Manager and baksmali to decompile, notepad++ to edit.
Sent from my Infuse 4G

thank-you I will try it.

Related

Request: AOSP Style Vanilla Lock Screen for Fresh 2.3.3

Before I begin, I want to let everyone know I searched endlessly for the problem I'm having and have found absolutely nothing. I'm hoping someone out there can help solve this problem for me. Also I'm posting here rather than any other section because it seems as though I would get the best help here.
I downloaded all of fresh's different vanilla clock options and tried them all individually making sure to wipe data/dalvik cache and haven't been able to achieve the results I'm looking for. Here are the problems:
1. His vanilla lock screen works but not when I receive calls, only when I turn off/on screen. When I receive calls I get the standard Htc lock screen. I've tried everything I can think of including using root explore to remove factory lock screen and also going in through the adb shell. Both ways seem successful until I get a call and realize I have the same problem all over again.
2. The second problem is that the vanilla clock on the lock screen is blurry and doesn't look the way it supposed to. It's black instead of white and very faint. I've found a way to get rid of the clock in the lock screen but would rather have one.
Basically I'm trying get the vanilla lock that's in darchdroid 2.7 or one that operates in that manner and looks the same. I'm assuming that that's the original unmodified/themed vanilla lockscreen.
Oh, and all this time I thought all those vanilla lockscreen mods (JsChiSurf, flipz, and the Gregalous's metamorph) handled calls this way!
I would also like to see this. Just a pure AOSP lock screen with all the looks and functionality of the original.
I'm confused my clock in the rotary aosp lockscreen is white and when I get a call the arc from the HTC lockscreen comes up but that's what's in the frameworks. I don't know what darchdroid looks like cause I've never tried it. I prefer sense roms.
Papa Smurf151 said:
I'm confused my clock in the rotary aosp lockscreen is white and when I get a call the arc from the HTC lockscreen comes up but that's what's in the frameworks. I don't know what darchdroid looks like cause I've never tried it. I prefer sense roms.
Click to expand...
Click to collapse
I prefer Sense based roms as well after having numerous problems with dd 2.7 I ran out of patience. Plus fresh is running incredibly smooth for me. But the vanilla lock screen on that rom is neat because it's made so that it comes up all the time in similar fashion to phones that come stock with vanilla such as the original droid. This means that when you get a call to answer/unlock the vanilla lock screen comes up as well. No Sense lock whatsoever. Also I believe that it's themed so it's not completely clear but only semi transparent so that you can tell the lock screen is there. Lol I'm probably not doing a good job at describing it and don't have any screen shots since I"m not using dd 2.7 anymore.
Below is a thread from a while back about putting aosp apks on Sense based roms and you (Papa) have a post that you signed the zips so that they could just be flashed on instead of pushed. I wonder if this is possible with the vanilla lock screen? I figured if anyone would know it would be you or jschisurf. I extracted dd 2.7 rom and looked through the individual files for the lock screen but since I don't know what I'm doing (I've programming illiterate) I didn't see anything.
http://forum.xda-developers.com/showthread.php?t=667715&highlight=aosp+apk
It will have to be done differently. Its not an app. Its in the android.policy file in the frameworks folder. I'm not great at classes.dex edits. IR bet is to ask jschisurf. He's the man when it comes to those edits
Should I send him a pm along with a link to this thread then?
Sent from my HERO200 using XDA App
aerajan said:
Should I send him a pm along with a link to this thread then?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
That would be ur best shot
You might want to check out WidgetLocker if you haven't heard of it. It's $1.99 and really customizable.. here's the thread http://forum.xda-developers.com/showthread.php?t=732986
And here's a video review of it http://www.youtube.com/watch?v=9InDlQTy5lY At 5:15 it looks like you can get the exact AOSP lock functionality as well as static wallpaper. Then it's just up to you to find the clock widget you like..
Ok thank you. I will pm him and see what happens.
c00ller said:
You might want to check out WidgetLocker if you haven't heard of it. It's $1.99 and really customizable.. here's the thread http://forum.xda-developers.com/showthread.php?t=732986
And here's a video review of it http://www.youtube.com/watch?v=9InDlQTy5lY At 5:15 it looks like you can get the exact AOSP lock functionality as well as static wallpaper. Then it's just up to you to find the clock widget you like..
Click to expand...
Click to collapse
c00ller, thanks so much for finding this app!!! I downloaded it already and it's awesome! The only thing I wish it could do is replace the answer call drag down bar as well which is part of what I was looking for. This is great though! I wouldn't have know about it otherwise.
No prob I'm actually thinking of getting it myself. I agree though, it would be perfect if it also showed slide to answer a call
1. His vanilla lock screen works but not when I receive calls, only when I turn off/on screen. When I receive calls I get the standard Htc lock screen. I've tried everything I can think of including using root explore to remove factory lock screen and also going in through the adb shell. Both ways seem successful until I get a call and realize I have the same problem all over again.
is there any way to make the receive call the same as the lockscreen?
The in call lockscreen is mutually exclusive of the standard lockscreen, and thus why deleting HtcLockScreen.apk has no impact on the in call lockscreen that displays.
The problem is, the in call lockscreen is controlled by Phone.apk. If it were possible to simply load the AOSP Phone.apk, it would likely work, but I don't think it is that easy, as there would likely have to be major "surgery" to the .apk to integrate into the HTC framework, etc.
The other option is to try and take the elements of just the AOSP Phone.apk file that control the in call lockscreen and incorporate them into our (HTC Phone.apk). Either way, a lot of work, I'm guessing, would be required to make it happen.
So, long story short, this isn't technically a lockscreen issue at all, but a Phone.apk "issue" to address, if possible.
I haven't taken the time to see what it may involve, and haven't even tried to see if an AOSP Phone.apk would load, out of the box (doubt it), but that's the starting point for anyone interested in tackling it.
aerajan said:
Before I begin, I want to let everyone know I searched endlessly for the problem I'm having and have found absolutely nothing. I'm hoping someone out there can help solve this problem for me. Also I'm posting here rather than any other section because it seems as though I would get the best help here.
I downloaded all of fresh's different vanilla clock options and tried them all individually making sure to wipe data/dalvik cache and haven't been able to achieve the results I'm looking for. Here are the problems:
1. His vanilla lock screen works but not when I receive calls, only when I turn off/on screen. When I receive calls I get the standard Htc lock screen. I've tried everything I can think of including using root explore to remove factory lock screen and also going in through the adb shell. Both ways seem successful until I get a call and realize I have the same problem all over again.
2. The second problem is that the vanilla clock on the lock screen is blurry and doesn't look the way it supposed to. It's black instead of white and very faint. I've found a way to get rid of the clock in the lock screen but would rather have one.
Basically I'm trying get the vanilla lock that's in darchdroid 2.7 or one that operates in that manner and looks the same. I'm assuming that that's the original unmodified/themed vanilla lockscreen.
Click to expand...
Click to collapse
JsChiSurf said:
The in call lockscreen is mutually exclusive of the standard lockscreen, and thus why deleting HtcLockScreen.apk has no impact on the in call lockscreen that displays.
The problem is, the in call lockscreen is controlled by Phone.apk. It it were possible to simply load the AOSP Phone.apk, it would likely work, but I don't think it is that easy, as there would likely have to be major "surgery" to the .apk to integrate into the HTC framework, etc.
The other option is to try and take the elements of just the AOSP Phone.apk file that control the in call lockscreen and incorporate them into our (HTC Phone.apk). Either way, a lot of work, I'm guessing, would be required to make it happen.
So, long story short, this isn't technically a lockscreen issue at all, but a Phone.apk "issue" to address, if possible.
I haven't taken the time to see what it may involve, and haven't even tried to see if an AOSP Phone.apk would load, out of the box (doubt it), but that's the starting point for anyone interested in tackling it.
Click to expand...
Click to collapse
By judging from your work i can see that you are quite good at these, would you mind if you could help us out? i guess a lot of people would want this
Jschisurf, thank you for your feedback! I knew if anyone might have an idea it would be you based on the numerous threads involving your work. I wish I could take what you said and begin tackling it however, I've got no skill in this area. The most I could do is offer you or anyone who can do this a small donation to tackle it and can get it working. However, that being said, I can't imagine how much of a pain in the ass this would be based on what's involved so I'm not going to push it.
I've tried to load aosp phone.apk in past but no go

Theming Sense Lock-Screen

So I have searched around on Google as well as XDA and I can't seem to find my answer. I would like to edit the default Sense 2.0 lock-screen images but I can't seem to find them. I know Rosie images are in the HTC Resources APK as well as the Framework Res APK but looking around in either one of these APKs has not led me to find the lock-screen images. If they are here, can anyone tell me which directory the PNGs are in as well as the file name?
While I am asking, what do I have to edit in Rosie to disable landscape mode?
Thanks for any help guys. I apologize if it has been answered before but my searches aren't helping.
I believe you need to look for the HTCLockScreen.apk. I don't remember where it is located though. Haven't used a Sense ROM in a long time.
*It's IncREDible*
The HTCLockscreen all doesn't have the pull down graphics that I am looking for. Already checked
FYI I am doing this on a Sense 2.0 ROM
Sent from my Incredible using XDA App
They are in the com.htc.resources.apk and all begin with lockscreen
If I remember correctly the are in drawable-hdpi
Wow. Don't know how I missed them. Thanks for the help. Anybody want to help me tackle the rotating Rosie?
Like I said, haven't been on a Sense ROM in a LONG time. Not since Redemption Revolution first came out. Been running senseless or OMFGB ever since.

[Q] Lock Screen Mods

Perhaps some of you will disagree with me but the SK4G stock lock screen blows. I have a burning desire to replace it with something that doesn't remind me of a broken windows and make me read to tell time.
So far I've tried the market apps and have not been satisfied with that route. Some of them are beautiful, but none the less they all feel like hack jobs and none of them allow you to use a pattern/pin/password unlock code.
I do know that it is possible to change the lock screen at the OS level. I feel that this is the correct route to implement a graceful, functional, lock screen mod.
I also know that is has something to do with the following files:
/system/framework/android.policy.jar
/system/framework/framework-res.apk
/system/framework/twframework-res.apk
I've already spent some time crawling through the SMALI files of android.policy.jar (specifically LockPatternKeyguardView.smali) and I've been comparing it to its brother in the SGS.One thing I noticed about LockPatternKeyguardView.smali in the SK4G is that it is much bigger than its SGS brother.
I've been able to identify a whole bunch of statements that reference the Sidekick unlock screen SMALI files. I also see that android.policy.jar for the SK4G contains SMALI files for both the puzzle and glass unlock screens. This suggests to me that I should be able to enable these by modifying android.policy.jar.
My questions are:
Where can I go to get aquainted with the SMALI syntax?
What do the other two files do? I've seen these mentioned a lot in theme development but do not understand what parts of them play into the functionality of a lock screen or if they play a purely cosmetic role.
Is LockPatternKeyguardView.smali the correct file to play with?
Am I missing other files I should modify?
Why do the names of the SK4G SMALI files not map perfectly to what appear to be calls to them in the LockPatternKeyguardView.smali?
Am I completely wrong in my approach?
Thanks everyone for reading and for your input.
I've been working on this today, as I would also like to see the stock lockscreen on this phone instead of the sidekick lockscreen. I'm working on it, but as you have found, Samsung changed some stuff up to screw with us. android.policy.jar is where you want to look to change the lockscreen style.
Framework-res.apk and twframework-res.apk are used for theming, as they contain most of the images used in system applications, such as icons and lockscreen images.
I do believe that what we are looking for is in LockPatternKeyGuardView.smali, but I cannot confirm this, as I am not a pro-dev.
you can try the nolock app from the app market but what sucks is its always running so its using batter and cpu :/
ill keep digging and trying to figure it out
I don't suggest any of the fake lockscreen apps, as they just glitch and have more issues than they're worth. I'm working on it, and I'll figure it out one way or another. I just need to talk to Dr. Honk again to see if he has any more suggestions on where it might be, as the settings are slightly different from the sgs4g where I was looking to port it from.
A day or so ago I discovered this thread:
http://forum.xda-developers.com/showthread.php?t=779803
This thread talks about the same modification but for the SGS instead of the SK4G.
The focus of this one specifically is the getLockScreenMode()Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode; method in LockPatternKeyguardView.smali.
The changes are easy to see, I just don't quite understand what's happening.
This method also happens to be quite different in the Sidekick than the one from the SGS. Again, I don't quite see what those differences mean yet.
I'll post the code before and after modification when I get home later tonight so folks down have to go downloading.
I'm working on this, have AOSP working as one of the 9 of the 9 lockscreen mod. It will be posted when it's done.
You can also use widgetlocker its pretty cool not that laggy didn't waste much battery there's diffrent themes and you can customizer the sliders, or it can drag down, many options.
Sent from my SGH-T839 using XDA Premium App
sduvick said:
I'm working on this, have AOSP working as one of the 9 of the 9 lockscreen mod. It will be posted when it's done.
Click to expand...
Click to collapse
Please share how you did it. Sorry for ignoring this thread and not posting code. I got railroaded into a business trip.
Sent from my SGH-T839 using XDA App
As I said in my previous post, I'm working on porting the 9 lockscreen mod, so I just looked at the differences in the source for the original 9 lockscreen mod, and tried adding them into our rom parts. I'll release it when I've got everything working correctly.
I see you got the mod working. Congrats and good work! How did you do it?
I just looked at the source from Whitehawkx's 9 lockscreen mod and tried to make it work as best I could. I got the changes to the lockpatternkeyguardview smali, but only the puzzle and aosp lockscreens were compatible with our phone. If/when I finish the AOSP project, it should be much easier to port all 9 locks. So for now, I'm discontinuing the 9 lock porting project, until I get further along in the AOSP project.
This is Revolution & i approve this message
sduvick said:
I just looked at the source from Whitehawkx's 9 lockscreen mod and tried to make it work as best I could. I got the changes to the lockpatternkeyguardview smali, but only the puzzle and aosp lockscreens were compatible with our phone. If/when I finish the AOSP project, it should be much easier to port all 9 locks. So for now, I'm discontinuing the 9 lock porting project, until I get further along in the AOSP project.
Click to expand...
Click to collapse

[Q] Modifying musicwidget.apk?

Hi All,
Is there any way to modify the musicwidget.apk in stock 2.3.3 ROM so that it can work with ADW Launcher?
After using the new stock music player, I have started liking it too much and want to get rid of all 3rd party music players. The only issue is that the music widget cant be used on other launchers. Can we make some changes like changing the manifest file or some other code so that it will work in the 3rd party launchers?
I need to know how to modify all widgets to use them on other lunchers ..can some one help us?
yes . its possible , ill look into it tonight . can you pm me a link for the music player? also pm for further info .
Sent from my X10i using XDA Premium App
ok, no go on this yet. meanwhile I have been discussing offlist with phillu97 on the possibilities and found out that there is a widget in the market called "Phantom Music Widget" which works with all stock and most 3rd party music players.
It works by emulating the headset button event. However the implementation is too buggy. Anyone here willing to experiment with the codes from Phantom widget to see if it works out for the musicwidget? I have the app and can attach the apk if someone wants it for experimental purposes.
its way too ... complicated. I just wont budge no matter what. But try widgetsoid. I'm thinking of building that from ground up, but only with the play, pause, fwd and rwd features. its sorta gonna look like the powercontrol.
unless anyone else have any ideas?
phillu97 said:
I'm thinking of building that from ground up, but only with the play, pause, fwd and rwd features. its sorta gonna look like the powercontrol.
Click to expand...
Click to collapse
Why not re-use the skin & graphics from the existing widget? In anycase the stock widget has those 3 buttons only.
cos that defeats the whole purpose since you cant use it on other launchers
Sent from my X10i using XDA Premium App

[Question] Strip widgets out of TouchwizUX

Hey all,
I have decompiled the TouchwizUX.apk, but I wanted to ask where I should look if I want to strip out calendar and some of the other Widgets that seem to cause force closes on skyrocket Roms. I have all the tools, I just need help looking. Is it something standard like bools.xml or where would it be?
Thanks everyone for your help!
Redd.
Bump. Please dev's, I need help on this. I want to strip out widgets that don't work as a partial solution to f/c errors and get the launcher more stable.
Redd.

Categories

Resources