[Q] Need help Porting P990 LG Launcher to P999 (G2X) - LG Optimus 2x

I am trying to port the LG Launcher from the P990 (O2X) to the P999. I keep getting force closes when I try to run it. Does anyone know what all the dependencies are? I don't believe there is anything in the framework required to make it work. I figured this would be the best place to ask because you guys are the experts on the P990.

Honestly, I do think that there some things that are in the framework, like the icons (widgets?) that have to be changed. You should try to replace the whole framework and place the launcher. However I am not sure that, that will be it. You probably will have to change some other things. Maybe also some .jar files (in framework) or maybe even the build.prop. I am not a developer (so I might could be wrong!), but what I know is that it could be hard to change that kind of launchers...

Great_Day said:
Honestly, I do think that there some things that are in the framework, like the icons (widgets?) that have to be changed. You should try to replace the whole framework and place the launcher. However I am not sure that, that will be it. You probably will have to change some other things. Maybe also some .jar files (in framework) or maybe even the build.prop. I am not a developer (so I might could be wrong!), but what I know is that it could be hard to change that kind of launchers...
Click to expand...
Click to collapse
No, nothing in the framework has to be changed. Everything for the Notification Bar and Window is contained within SystemUI.apk. Just have to decompile it, make changes and recompile it. I know how to do it. In fact, I just got a successful recompile about five minutes ago; but my battery is too low to flash it right now. This is the first good compile so the graphics are just Samsung's stock graphics. Once I verify it is working, I am going to change the graphics to LG's P990 Quicksettings graphics.

Related

[Q] themers: why do i suck at ninjamorph?

hello all. wondering if any of you might be able to help me out.
i am using the cyanogenmod 6 nightlies.
i used ninjamorph to make a custom framework-res.apk so that i could have the transparent lockscreen morph and the grey status bar morph for froyo. every time i update my rom i have to reapply, obviously. it seems to work fine, i do get those things.
the weird thing is, every time i apply my custom framework (by re-finishing it from within ninjamorph) i lose all of my accounts. my google, facebook, and twitter info is gone and i have lost all of my contacts (which makes sense).
so my question is this: why the hell is it doing that?
my only thought, because this doesn't happen when you apply normal morphs, is that my error is in re-finishing the project every time. if this is the case, i change my question to "how do i actually do it the right way?" i was under the impression that ninjamorph let you actually build morphs initially, now that i see that it doesn't, how do i create a real morph out of my framework file?
p.s. i was told that the framework wouldn't change between cm nightlies unless they made a fairly obvious update to it, which seems to be true. i assume that something would break horrifically if i was using the wrong file. i know the framework-res file from my original work was not bad, i made it from rc2.
thanks in advance everyone.

Can we get this clock?

can we get that clock widget on the captivate?
Im sure you can. There is a full Fascinate system dump that is available. Thats how a lot of people are being able to get the live wallpapers. Just have to find the exact name of the widget and associated files for it, and then figure out what it takes to get it to work. That is if it is a stock fascinate widget.
That's SamsungWidget_DigitalClock1.apk, i grabbed it from the fascinate system dump but it obviously doesn't install on my Captivate. Must need to be modified and I have no clue as to how. I'd love to learn though.
Edit: With further research into this widget.. i now know what the term deodexed means.. not sure how to do it though.. still researching.
terrigan said:
That's SamsungWidget_DigitalClock1.apk, i grabbed it from the fascinate system dump but it obviously doesn't install on my Captivate. Must need to be modified and I have no clue as to how. I'd love to learn though.
Edit: With further research into this widget.. i now know what the term deodexed means.. not sure how to do it though.. still researching.
Click to expand...
Click to collapse
I'm also very interested in converting (deodexing) packages for use on other firmwares or phones so it would be great to hear how you go!
I got the odex file deodexed, resigned the apk after adding the classes.dex file and it doesn't install, i feel i'm close though. I'm not sure widgets are a good candidate for this process but i don't know any better.
I've actually gotten further.. past the errors i've been getting and had the .apk load on the phone successfully, i get errors on the phone now loading the widget in logcat so I probably have to work on it a bit more.
Has anyone else actually been able to do this successfully? I'm using the customizable themes, a-la framework-res.apk hacking as my starting point on this. How much harder can bringing over widgets be? If anyone else has more experience than me on doing this, I could use some tutorials or tips on apk hacking. I can't imagine that something as simple as a widget would be hard to port over.
I think I've actually seem a clock similar to this on the market place when I was looking for a clock widget. I'm not sure the name though I'll see if I can find it again.

[REQ] Clear Touchwiz Dock

I have been looking and looking for a way to do this myself, but I'm at a lose. If someone could whip this up that would be great! I hate the black (grayish) color of the dock. Would love for it to be clear!
I will look into this after I get less hung over. 2 hours of sleep.
Who uses the tw launcher anyhow? I am just pulling your leg, it should be a simple png or 9png.
frostman89 said:
I will look into this after I get less hung over. 2 hours of sleep.
Who uses the tw launcher anyhow? I am just pulling your leg, it should be a simple png or 9png.
Click to expand...
Click to collapse
Yeah that's what I was thinking, but I can not for the life of me find where it is it's odd that the Vibrant/Captivate have a different TW launcher then what we do, same with the Epic.
I actually like tw. They buddies widget rocks. Would love the clear bottom bar
Sent from my SCH-I500 using Tapatalk
find anything? sorry... I'm working on a "clear" theme and this is one of the last things I need, and I'm just really excited to get some themes rolling
taypotts said:
find anything? sorry... I'm working on a "clear" theme and this is one of the last things I need, and I'm just really excited to get some themes rolling
Click to expand...
Click to collapse
I was passed out until just a bit ago. Extracted the apk as we speak.
EDIT: ok i replaced every possible image that is associated with the dock bg. It appears that its controlled by an xml and set to black with transparency. I don't feel like digging through all the xmls to figure out right now, maybe someone more experienced can look through it.
frostman89 said:
I was passed out until just a bit ago. Extracted the apk as we speak.
EDIT: ok i replaced every possible image that is associated with the dock bg. It appears that its controlled by an xml and set to black with transparency. I don't feel like digging through all the xmls to figure out right now, maybe someone more experienced can look through it.
Click to expand...
Click to collapse
Damn it! I was thinking it was a xml but I was hoping it wasn't..
Still waiting........ haha!
I'm no expert but I believe the two files that need to be edited are \res\layout-land\launcher.xml and \res\layout-port\launcher.xml . Change the android:color to @android:color/transparent under the section com.sec.android.app.twlauncher.MenuDrawer .
I'm having trouble recompiling the apk so that my phone recognizes it as a launcher.
Like I said I'm no expert so I'm not 100% on this.
sbrissen said:
I'm no expert but I believe the two files that need to be edited are \res\layout-land\launcher.xml and \res\layout-port\launcher.xml . Change the android:color to @android:color/transparent under the section com.sec.android.app.twlauncher.MenuDrawer .
I'm having trouble recompiling the apk so that my phone recognizes it as a launcher.
Like I said I'm no expert so I'm not 100% on this.
Click to expand...
Click to collapse
I can't even find the files that you are talking about? Are you talking about the framework-res.apk or the twlauncher.apk?
maybe I'm way off then, I was looking in the TouchWiz30Launcher.apk in /system/app
sbrissen said:
maybe I'm way off then, I was looking in the TouchWiz30Launcher.apk in /system/app
Click to expand...
Click to collapse
No, I was wrong.... haha! my bad. I was thinking it would be in the framework folder, but it actually might be in the system/app
Have you tried to copy the .apk to your Sd Card then change it to .zip
-unzip the file
-mess get the new .xml compiled from that
-use the app "Ninjamorph" to put the new .xml file back
Think that would help you?
Edit: Or just upload the new .xml files that you mess around with and I'll see if I can get it pushed in
OH! I also failed to mention that it is 100% a .xml file. I've messed around with some morphs that are out for other galaxy s phones and the background is still that ugly gray/black thing.
I keep getting FC's when i swap them out, I'll post the xml's. -port goes to layout-port and -land goes to layout-land. remove the -land and -port and rename the .xls to .xml.
I can't guarantee this will work so try at your own risk.
So you switched them out with Ninjamorph already? And still get FC's?
I'm wondering if we could get a copy of the TouchWiz launcher from the Epic if we could just copy and past the .xml from there?
Yea I switched them out with ninjamorph and still got problems, also tried swapping them out of a deodex'd apk and got the same issue. I have no idea on the epic, like I said before I'm definitely no expert I just like to tinker.
sbrissen said:
Yea I switched them out with ninjamorph and still got problems, also tried swapping them out of a deodex'd apk and got the same issue. I have no idea on the epic, like I said before I'm definitely no expert I just like to tinker.
Click to expand...
Click to collapse
That's how I started with the Moto Droid. Just started to tinker. lol!
I'll look for an Epic version of the launcher or any other galaxy phone launcher in a system dump or if anyone else can find one a post it.
We really need someone that is good with .xml stuff
Here Is a Clear Dock when you click on it its going to look black but it works

[Q] Is it possible to keep puzzle lock and replace glass lock with AOSP Lock?

I know that the lock screens can be replaced with AOSP. But what I have been looking around for is the option to use the stock puzzle lock and remove glass lock with AOSP.
I know I can always use an app like widget locker but would prefer it to be a system change instead of an app that runs.
All of the lock screen edits I have seen so far completely replace the Puzzle/Glass lock. But not replace just one of them.
If anyone knows how I can do this myself or get me started to be able to do this I am up for the challenge. Or if it already exists please point me in the right direction. I have done a lot of reading and searching already.
Thank you in advance.
I would be interested in knowing this as well. I wouldn't mind having the AOSP lock, but would definitely want to keep the puzzle.
It is possible to make edits to have the system offer multiple lockscreens...however its a pretty involved string of edits....I know thatdudebutch has/is trying it....but its significantly more involved than our normal method of switching them
Wonder if i could just start with modifying the images to be the same as the AOSP lock screen. test and then go from there. i am going to take a look tonight if i can and see what is involved with it. Thanks for the info nitsuj17.
jselden said:
Wonder if i could just start with modifying the images to be the same as the AOSP lock screen. test and then go from there. i am going to take a look tonight if i can and see what is involved with it. Thanks for the info nitsuj17.
Click to expand...
Click to collapse
the images are all in the framework. Thats not the issue. However edits have to be made to the android.policy.jar to switch lockscreens and id assume to support multiple ones as well as edits the framework itself.
a few people in irc are attempting to do something like this, as it is possible...just we've all been unsuccessful to this point.
i was doing some research and found a user had done this on his vibrant. I found the post on the team whiskey forums. Would it help to look over his code to see what was modified or would his android.policy.jar be completely different cause it is technically a different phone?
jselden said:
i was doing some research and found a user had done this on his vibrant. I found the post on the team whiskey forums. Would it help to look over his code to see what was modified or would his android.policy.jar be completely different cause it is technically a different phone?
Click to expand...
Click to collapse
the edits are usually the same, but occasionally in different places....you would have to compare apples to apples so you d need an edited android.policy.jar and a stock one from the rom
ok cool. i downloaded his theme/rom and will try to compare. I am not very familiar with modifying .jar files so this will be new ground for me. I know about editing the images in the framework file, thats the simple part.
This would be a nice option, I actually started on this back on DJ09. Then froyo came and I started again on that. My goal was to offer the puzzle lock, android lock, rotary lock and the glass lock.
Actually some of those changes were slowly being made to the NeonGT theme port. I believe both the dl09 and dl30 versions. I don't remember how far I got, but feel free to pull the files and take a look.
posting in support of this concept! I like the puzzle lock but not the glass screen
it would be nice indeed
How about keeping both and adding 2 more?
http://forum.xda-developers.com/showthread.php?t=954468
Awesome. I saw this on a theme from another phone i was looking at and am very happy this was ported over to our phone!

[Q] Where the heck are the icons stored?!

I am trying to do some customizations. On my previous phones (Droid 1 and Droid 2), even with stock firmware, I was able to use ROM Toolbox Pro to replace the icons.
Well, on the Droid 4 it mostly doesn't work. I was able to replace the ugly ADB Debug icon with a better one, but I can't replace the signal, Wi-Fi, battery, etc - it reboots the phone and the old icons are still there.
I made a backup of the original icons, and the folders show: com.android.systemui/res/drawable-hdpi, and they have names such as stat_sys_signal_1.png
I extracted framework_res.apk and am literally unable to find these at all. They have a similar ones, but the icons in question are NOT there, I scrolled through all of them to check. None even named the same thing. I poked around in the rest of the system/framework folder, finding nothing of use.
Does anybody know where the heck these files are stored at on the stock firmware? I swear I've heard of a blur_res.apk before, but again I can't find where that might be. If I find them, I should be able to just inject the customized PNGs on my computer and overwrite the file on my phone...
drfsupercenter said:
I am trying to do some customizations. On my previous phones (Droid 1 and Droid 2), even with stock firmware, I was able to use ROM Toolbox Pro to replace the icons.
Well, on the Droid 4 it mostly doesn't work. I was able to replace the ugly ADB Debug icon with a better one, but I can't replace the signal, Wi-Fi, battery, etc - it reboots the phone and the old icons are still there.
I made a backup of the original icons, and the folders show: com.android.systemui/res/drawable-hdpi, and they have names such as stat_sys_signal_1.png
I extracted framework_res.apk and am literally unable to find these at all. They have a similar ones, but the icons in question are NOT there, I scrolled through all of them to check. None even named the same thing. I poked around in the rest of the system/framework folder, finding nothing of use.
Does anybody know where the heck these files are stored at on the stock firmware? I swear I've heard of a blur_res.apk before, but again I can't find where that might be. If I find them, I should be able to just inject the customized PNGs on my computer and overwrite the file on my phone...
Click to expand...
Click to collapse
Wow! I actually didn't know that there was an app that could change the phone's icons. That sucks that it doesn't work well on Droid 4. Just to clarify, are we talking about the icons in the notification bar? Like the battery power level, wifi indication, etc?
Well anyway, I'm not sure where the actual icon files are located. I've always used a flashable mod to change those icons, or gotten a custom ROM. But, if you want to know, I'd try and contact one of the Droid 4 developers on here, like Hashcode or myfishbear. Maybe shoot 'em a Private Message or something. They do a lot on here, but maybe you'll get a response out of them.
Sorry I can't be more help. Just wanted to give you a reply since nobody else is showing you any love. Good luck. Let me know what you come up with.
Yep! The app is called ROM Toolbox, there's also a Pro version (I think you might need the paid one to do icon changes)
I used it quite a bit when I had CyanogenMod on my Droid 2, as the default CM icons were ugly. I'll try PM'ing those guys and see if I'm able to figure anything out. Thanks.
And yes, I am talking about the notification bar. I call it the status bar, but same difference.
Airman1947 said:
Wow! I actually didn't know that there was an app that could change the phone's icons. That sucks that it doesn't work well on Droid 4. Just to clarify, are we talking about the icons in the notification bar? Like the battery power level, wifi indication, etc?
Well anyway, I'm not sure where the actual icon files are located. I've always used a flashable mod to change those icons, or gotten a custom ROM. But, if you want to know, I'd try and contact one of the Droid 4 developers on here, like Hashcode or myfishbear. Maybe shoot 'em a Private Message or something. They do a lot on here, but maybe you'll get a response out of them.
Sorry I can't be more help. Just wanted to give you a reply since nobody else is showing you any love. Good luck. Let me know what you come up with.
Click to expand...
Click to collapse
drfsupercenter said:
Yep! The app is called ROM Toolbox, there's also a Pro version (I think you might need the paid one to do icon changes)
I used it quite a bit when I had CyanogenMod on my Droid 2, as the default CM icons were ugly. I'll try PM'ing those guys and see if I'm able to figure anything out. Thanks.
And yes, I am talking about the notification bar. I call it the status bar, but same difference.
Click to expand...
Click to collapse
Cool! Maybe I'll give that app a try sometime. Thanks. Anyway, hope you find what you're looking for.

Categories

Resources