New to development, simple themeing .apk compile ques - General Questions and Answers

So i am trying to get into ADW Launcher themeing, I have a good friend who has been helping me [im more of a graphic designer and hes the coder] well hes a combination of busy and lazy and im trying to get rolling on compiling this theme together for use. I have an apk we started off with that only has 3 or 4 icon replacement images in it and it works so my question is, if I open this in ECLIPSE [which i have as well as all the android sdk and such] what exactly do I do to add more images and then resave/compile it to work...i know that you have to know like each tag line for each app to replace its icon, so if I have those and the apk file opened in eclipse what would I do next?...

bump* any help?

Related

lock screen mod, need guidence porting

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.

[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

Theme chooser app

I know that its asking a lot of you guys, but, i'd really like an app that can choose a framework-res apk and apply it to the phone, and restart, quite like the cm7 theme chooser app. Thank you in advance if anyone decides to take on my project. I'm sorry that i can't do it, as i am JUST starting to learn to develop for android.
Instead of going through all the trouble to create a new app if you wait a couple of more weeks, Jim should have CM7 ported, so then you can use the theme chooser from there.

[Q] tweeked 3.0 ROM ?

Just upgraded to tweeked 3 and have some problems:
1. I can't find the voicemail app & don't know how to call VM. where do I get the app?
2. Buddies now is missing. Won't restore via titanium backup.
3. I migrated from eclipse rom. How do I get the eclipse rom keyboard and colors?
4. Howdo Irestore the default power on and power off animations?
5. Verizon Data APP / My veerizon forces close on startup.
I think that is it for now. Will post when I have some time to play with it.
Mike
beavermjr said:
Just upgraded to tweeked 3 and have some problems:
1. I can't find the voicemail app & don't know how to call VM. where do I get the app?
2. Buddies now is missing. Won't restore via titanium backup.
3. I migrated from eclipse rom. How do I get the eclipse rom keyboard and colors?
4. Howdo Irestore the default power on and power off animations?
5. Verizon Data APP / My veerizon forces close on startup.
I think that is it for now. Will post when I have some time to play with it.
Mike
Click to expand...
Click to collapse
1. You don't need the app for voicemail. Just dial *86 or hold down 1 in the dialer.
2. Buddies now is considered bloat and you can only use it on the stock launcher anyway. If you want it it is in tweaktools.
3. I believe eclipse keyboard was either a themed ICS or themed Swype (I don't remember which - it was too long ago). Either way both are available if you search. As for the colors - since Nitro stopped working on the charge we don't have that, but there are a lot of themes on tweaktools.
4. Tweaktools
5. It works fine for me. Could be a bad flash, could be something else.
And I guess we have another nocturnal person here.
The vvm stuff was also deemed bloat, but all of that stuff can be restored using tweaktools OR the system apps and system app flasher in the tweaked op. Jihad has you covered on the rest (thanks Jihad).
I got the verizon app to work after deleting and reinstalling. The rest I can live with till I have a chance to research Tweaktools. Most of the stuff is minor and just me being picky as I'm not yet used to the tweeked ROM.
Tweakedtools: doesn't seem to be working. I can get into the menu and install a theme and buddies now, but they don't act as though they ever got installed. even rebooted. What the heck?
beavermjr said:
I got the verizon app to work after deleting and reinstalling. The rest I can live with till I have a chance to research Tweaktools. Most of the stuff is minor and just me being picky as I'm not yet used to the tweeked ROM.
Tweakedtools: doesn't seem to be working. I can get into the menu and install a theme and buddies now, but they don't act as though they ever got installed. even rebooted. What the heck?
Click to expand...
Click to collapse
You have to type su to give the terminal root permissions.
JihadSquad said:
You have to type su to give the terminal root permissions.
Click to expand...
Click to collapse
Doh!
Ok. now it has the permission and does install things like buddies now, but when I try to install a theme or boot animation I get the android robot with the exclamation point and it does not install. what can I possibly be doing wrong? do i need to install something like CWM?
beavermjr said:
Doh!
Ok. now it has the permission and does install things like buddies now, but when I try to install a theme or boot animation I get the android robot with the exclamation point and it does not install. what can I possibly be doing wrong? do i need to install something like CWM?
Click to expand...
Click to collapse
You don't have CWM installed? I doubt it works with stock recovery. When you installed Tweaked did you use the Odin version without CWM? You should get and install CWM.
The only 2 boot animations that work are Stock Galaxy S boot and Stock DROID boot. They use the Samsung format that works with the stock kernel. Themes should work though.
Ok. Now I understand. I did use oden version without cwm. Now I need to oden cwm and I'll be good to go.
EDIT:
Thanks for the info, everything works.
Now I need to find a suitable keyboard---possibly one that mirrors the one in the eclipse rom.
On another note, I'm not all that happy with any of the included themes. How to I create the theme I want?
If you know Java and smali, you can rip apart the framework and make your own theme.
Sent from my SCH-I510 using xda premium
beavermjr said:
Ok. Now I understand. I did use oden version without cwm. Now I need to oden cwm and I'll be good to go.
EDIT:
Thanks for the info, everything works.
Now I need to find a suitable keyboard---possibly one that mirrors the one in the eclipse rom.
On another note, I'm not all that happy with any of the included themes. How to I create the theme I want?
Click to expand...
Click to collapse
beta.swype.com
The eclipse keyboard is a themed version of this I think.
kvswim said:
If you know Java and smali, you can rip apart the framework and make your own theme.
Click to expand...
Click to collapse
I have no idea on how to work with Java or what smali is.
I do have the old eclipse ROM. can't i take the theme files from there and somehow load them to the phone?
Regarding the keyoard, I couldn't get that swipe one to install as the app keeps asking me to login and I don't know how to generate a username and password. I'm now thinking that it was a Samsung keyboard, but I could be wrong.
Smali is basically the decompiled Android version of Java. In Android, everything gets packed up in .dex files for the Dalvik VM (Android's optimized version of the Java VM), and when you decompile them, you get Smali. It's like Java, but "distorted", for lack of a better word. If you know how to read Java, you can feel your way around, but it's different enough that even if you're good with Java, you'll have to relearn some things for Smali.
well...I did some searching on line and I think the stock theme that comes preloaded at the factory is what I want to get back to. Also the default Samsung keyboard is the one I want.
I'm leaning towards tossing tweaked out the window rather than getting frustrated. If I do that what do I loose and how would I add root to stock?
also, I can't manage to get the phone to vibrate when i tap the screen. Haptic feedback. How do I turn it on?
beavermjr said:
I have no idea on how to work with Java or what smali is.
I do have the old eclipse ROM. can't i take the theme files from there and somehow load them to the phone?
Regarding the keyoard, I couldn't get that swipe one to install as the app keeps asking me to login and I don't know how to generate a username and password. I'm now thinking that it was a Samsung keyboard, but I could be wrong.
Click to expand...
Click to collapse
No. What you think of as "files" are a series of edits in the framework. Obviously the framework for Tweaked is for Tweaked, and Eclipse is for Eclipse. If you're going to try to interchange these things you may as well just reinstall Eclipse.
For Swype, I'm not sure what you're talking about. There's a big honking button that says "register" on the website.
Sent from my SCH-I510 using xda premium
---------- Post added at 06:45 AM ---------- Previous post was at 06:20 AM ----------
beavermjr said:
well...I did some searching on line and I think the stock theme that comes preloaded at the factory is what I want to get back to. Also the default Samsung keyboard is the one I want.
I'm leaning towards tossing tweaked out the window rather than getting frustrated. If I do that what do I loose and how would I add root to stock?
also, I can't manage to get the phone to vibrate when i tap the screen. Haptic feedback. How do I turn it on?
Click to expand...
Click to collapse
Not sure what you're looking at. The theme in Eclipse is NOTHING like the dickbutt gold (or pumpkin and poo) in stock. And the stock Samsung keyboard is God awful. Why not try something like SwiftKey 3? Swype is pretty good too, and it's free.
To root after restocking, all you would need to do is flash the SuperUser or SuperSU (whichever is your preference) zip in CWM. When you move from Tweaked (the only current custom ROM on the charge, by the way) you lose essentially everything. Dwitherell has put in numerous tweaks to improve the UI speed, and he has put in TSM parts... Plus you'll be back to the bloated whale this phone is at stock.
I believe most of the haptic feedback was removed in Tweaked because most view it as an annoying useless feature. I could be completely wrong but I don't really feel anything even though my haptic feedback is on.
Sent from my SCH-I510 using xda premium
I did nothing that would add or eliminate haptic feedback (outside of the entry in tsmparts, but I did nothing to hook that in if it needed hooking). Also, the stock samsung keyboard is called AxT9IME.apk. Sorry Tweaked is not to your liking. Have you tried the tw4 theme? That seems closer to the stock look at least. I didn't think anyone used it, but I can do a little work and get a stock theme variant together if you want. Also, rumor is some theme options will be added/returning soon...
And for what its worth flashing something different is a far better alternative then anything to do with a window.
Thanks for all the useful info. I must start by saying that i do like tweaked. It is much faster than what i had with eclipse. That said im not sure how much is due.to the rom and what is due.to the upgrade ota. I believe its mostly the rom. Way to go!
As for colors im not opposed to whats available im just used to what i had. The big complaint is that the calendar widgit does not have black text on a white background. Its not as legible but not horible. I can live with it. Im surprised there is no way to change colors like there is in windows control panel. Or an app for that. Oh well.
Thanks for.the keyboard.info. I'll take a look for it at lunch. As for missing the register button...it was to early to be doing anything tech.
Im sure that over time ill get more used to tweaked and be glad ro be uding it.
One last request...stock shutdown animation
Thats enough for now.
Sent from my SCH-I510 using xda app-developers app
beavermjr said:
Thanks for all the useful info. I must start by saying that i do like tweaked. It is much faster than what i had with eclipse. That said im not sure how much is due.to the rom and what is due.to the upgrade ota. I believe its mostly the rom. Way to go!
As for colors im not opposed to whats available im just used to what i had. The big complaint is that the calendar widgit does not have black text on a white background. Its not as legible but not horible. I can live with it. Im surprised there is no way to change colors like there is in windows control panel. Or an app for that. Oh well.
Thanks for.the keyboard.info. I'll take a look for it at lunch. As for missing the register button...it was to early to be doing anything tech.
Im sure that over time ill get more used to tweaked and be glad ro be uding it.
One last request...stock shutdown animation
Thats enough for now.
Sent from my SCH-I510 using xda app-developers app
Click to expand...
Click to collapse
To be fair most of the speed change is due to the OTA - most of the edits made were the same as they were in the FP1 version, so I can't really take credit for that sort of thing. I don't have nor do I pretend to have the sort of skill necessary to do such things
As far as the stock shutdown animation, if there's some interest I could try to get that together. It required a number of framework.jar edits to switch the shutdown animation focus from reading a .qmg file to displaying a sequence of .pngs, so I would have to undo that sort of thing to make the shutdown.qmg work again. It wouldn't be too hard, so if there's some interest in that I can put something together and throw it on tweaktools.
I have interest but am not sure who else does and if its worth the time.
I googled the keyboard apk and downloaded it but it will not install. Is there a certain version that i need?
Sent from my SCH-I510 using xda app-developers app
FWIW, I really lock the Tweaked Shutdown animation. Just need to find a sound byte to go with that (for those occasions when my phone shuts down without me knowing) - thinking of getting something from Southpark's tweak.
as for keyboards, have you tried ICS Keyboard? best in my experience.
Ice is not my thing. I just like the Samsung keyboard best. Just can't find a copy that installs.
Also what about stock screenshot setting?
Sent from my SCH-I510 using xda app-developers app

[Q] Google App Theming Help

Hey there! So I decided today, I'm sick of the Play Music app not matching the rest of the google apps. I like the clean white they've moved to for most everything. The music app is still the old holo style. So I decided I wanted to try to theme it.. Now I've used APK tool to decompile but I'm digging around the res and drawable folders without much luck and I don't really konw what I'm doing. Is there anybody out there who's themed google apps that could give me some tips? Or any quick tutorials out there? I've written my own apps before, but google's APK's are so complicated... Haha.
Thanks!

Categories

Resources