[Q] Rom Cooking Questions - Android

HI guys
I seem to try a lot of roms but would like an easy optioin to go back to my preferred layout. I dont want to use a backup program as I am also learning rom cooking.
OK so what I want to do is take overcome, pack adwlauncher into it AND modify its settings (add icon theme, move front screen icons, add some widgets to the homescreen etc)
I Have been experimenting and not having much luck.
First thing i did was edit the build.prop and modify the density to my liking. Works fine.
I deleted launcher.apk from and added adwlauncher.apk to /system/app.
It boots but no launcher , I assumed it would come up with the default "select program for this action" in first book allowing me to set adwlauncher, but it does not.
So useless to me, no launcher.
How do i do this?
I also assume that there is a better place to put adw so as to allow for updating? Where are market programs stored?
ALSO
How do I change adw's settings to my liking and pre package them?
I assume I can just setup adw how I like, take the config files off my galaxy AND package them into the overcome zip somewhere. Where might they be and where might I need to put them to.
Oh one other thing, adwthemes. These come from market I'm assuming as an apk. If I just add the apk to appropriate place is that enough for adw to see them so that once my config is in place the correct icons will be used.
Thanks very much for any help guys and excuse me if these answers are easy to find, I didnt have much luck with my search terms.
Hopefully one day I will be talented enough to build my own overcome. lol

Oh, for those who dont know, overcome is a rom for our galaxy tabs, forget the references I'm after generic help

I'm not sure, but I believe that putting apps in the /system/app folder makes it more difficult to update them.
I would create a folder called 'data' in your ZIP, with the APK in it. Not sure though, never tested it Perhaps you'll have to modify the update-script too, to make it work, but hey, that's the fun of cooking

I thought so, because that is a protected system folder..
Anyway I half figured this one out. I need to push /data/com.ADWFOLDER with an update script. Re the settings. Unfortunately, I have been told this is impossible..
Can anyone elaborate?

You could possibly try renaming it launcher.apk..

Related

(REQ) Easy Cabs to replace Default Fonts WM6.5

Man I am busting my head open trying to figure out how to change fonts for windows 6.5. I am trying to do this so I can make quick easy cabs that are titanium friendly, and default font friendly. Meaning for it to be neatly informed. So far I havent had luck.
I tried just re-naming the font to default font name but that is destructive
I tried registry edits but I only found some for wm6.1 and didn't work on titanium
I tied opening themed titanuim cabs but I didnt see any registry edits.
So here is where I am at, can someone please make a generic cab for default titanium setting, I'll go in with wincab and make different quick easy to install cabs for those who have a font in mind, kind of like request a font cab for titanium, thread.
Thank you for who ever helps, together we can make this thread grow, and hope to help.
guevr001 said:
Man I am busting my head open trying to figure out how to change fonts for windows 6.5. I am trying to do this so I can make quick easy cabs that are titanium friendly, and default font friendly. Meaning for it to be neatly informed. So far I havent had luck.
I tried just re-naming the font to default font name but that is destructive
I tried registry edits but I only found some for wm6.1 and didn't work on titanium
I tied opening themed titanuim cabs but I didnt see any registry edits.
So here is where I am at, can someone please make a generic cab for default titanium setting, I'll go in with wincab and make different quick easy to install cabs for those who have a font in mind, kind of like request a font cab for titanium, thread.
Thank you for who ever helps, together we can make this thread grow, and hope to help.
Click to expand...
Click to collapse
Have you tried this?
http://forum.xda-developers.com/showthread.php?t=470246
As for titanium, I don't think that's really possible as of right now,
you'd have to use something like the plugin installer that all of the panels use to install.
and hopefully it has an option to delete the old name or something like that.
But that's all I can really think of.
codybear said:
Have you tried this?
http://forum.xda-developers.com/showthread.php?t=470246
As for titanium, I don't think that's really possible as of right now,
you'd have to use something like the plugin installer that all of the panels use to install.
and hopefully it has an option to delete the old name or something like that.
But that's all I can really think of.
Click to expand...
Click to collapse
Thanks I'll give it a look, It looks to be manilla reg edits, Im looking for titatium font edits

ADW Launcher and cooking

Hi All,
I'm wondering if anyone knows how to define the settings for ADW.Launcher in a custom ROM. Is there some sort of XML file I can put in /system or something?
I'd like to pre-define the icons/widgets on the desktop and the action buttons.
jrebeiro said:
Hi All,
I'm wondering if anyone knows how to define the settings for ADW.Launcher in a custom ROM. Is there some sort of XML file I can put in /system or something?
I'd like to pre-define the icons/widgets on the desktop and the action buttons.
Click to expand...
Click to collapse
Umm. You would need to look at how ADW stores its settings just now. They will be in /data/data/com.adw.launcher/ or something like that. Play with the files there and see what happens and look inside the sqlite databases etc.
Then try putting those files into the data folder of your zip.Give that a go.
Did anybody get this to work yet? A similar question was asked in this thread:
http://forum.xda-developers.com/showthread.php?p=7571896#post7571896
I replied with an XML file I found that may be useful, but I didn't get a chance to test it yet.

[Q] Custom Icon Pack

I'm working on creating my own Launcher Icons. How can I place them in an installable pack? As they are now, I have to save the images and then custom replace each one. I'd like to be able to switch back and forth when I feel like changing my theme.
I've been searching the forums and google for some help with this, but I can't seem to find anything that truly answers my question.
Any suggestions would be much appreciated!
On the plus side, the icons are coming out very nicely!
MonkeyWife said:
I'm working on creating my own Launcher Icons. How can I place them in an installable pack? As they are now, I have to save the images and then custom replace each one. I'd like to be able to switch back and forth when I feel like changing my theme.
I've been searching the forums and google for some help with this, but I can't seem to find anything that truly answers my question.
Any suggestions would be much appreciated!
On the plus side, the icons are coming out very nicely!
Click to expand...
Click to collapse
Check this out, not sure if this is what you're looking for though.
http://www.launcherpro.com/forum/viewtopic.php?f=11&t=7754
Thanks! It's a start! I use ADW so maybe there's a similar process.
i can suggest you a method to make a swappable theme.
Take an unused adwtheme.apk and edit it, changing the /res/drawable-hdpi .png icons you 'd like to use
Re-zip it and resign it (or simply drag an drop in the original apk i guess)
It worked for me. I can apply the icons using the adw option in themes, selecting iconpack only. And simply swap icons by applying another theme iconpack the same way
Hope it can help.
(P.s. similar reply posted in thread h t t p : / / forum.xda-developers.com/showthread.php?p=17569421#post17569421)

[Q] Best way to switch homescreen setups

I love playing with my homescreen. It seems like anytime I view the "Post your home screen" type threads, I come away with some fun stuff I want to try.
What I hate is how long it takes to set some of the stuff up - especially if your doing anything that isn't minimalistic and you do involve alot of widgets (like most homescreens).
Are there any processes or apps that you guys/gals use to essentially "save" off different setups you like or do you pretty much rebuild from scratch when you switch?
I think the stock homescreen in gingerbread has different "profiles" that change widgets, wallpaper, etc. when switched. You could give that a shot. I'm not sure about other launcher apps though.
i use ADW Ex as my primary launcher, and you can save your profile there and load it back up whenever you want. pretty sure this is what you want.
Alcapone263 said:
i use ADW Ex as my primary launcher, and you can save your profile there and load it back up whenever you want. pretty sure this is what you want.
Click to expand...
Click to collapse
Let me elaborate.. ADW EX will let you save one single configuration, so you will have to copy/move the save files and/or rename them (so you know which save is which). Then when you want to revert back to that save you will have to copy it back to the correct folder and rename it back to the original save file.
WiredPirate said:
Let me elaborate.. ADW EX will let you save one single configuration, so you will have to copy/move the save files and/or rename them (so you know which save is which). Then when you want to revert back to that save you will have to copy it back to the correct folder and rename it back to the original save file.
Click to expand...
Click to collapse
it's still a lot easier than redoing your whole configuration every time isn't it? i mean, it may not be optimal, but it's a work around until someone can help you find an app that will do it all for you.
Alcapone263 said:
it's still a lot easier than redoing your whole configuration every time isn't it? i mean, it may not be optimal, but it's a work around until someone can help you find an app that will do it all for you.
Click to expand...
Click to collapse
Yes it is better than doing it from scratch. I just took your adw suggestion and built on it so the OP would have an answer that better match what he was asking. Without adding my steps ADW is limited to one backup and that does not serve the purpose of changing configurations on the fly.

Modify Settings menu

OK... so I'm running this Froyo Rom and I want to remove a couple of options from my/the settings menu (it's a bit cluttered for my tastes).
I think that I remember that there was just such a way to modify a rom so that it can show less settings options, but I don't seem to find it. If anyone can help on this front it would be really appreciated...
(In two words can I modify the "settings .apk" so that it shows less?)
Thanks for your attention.
Stevethegreat said:
OK... so I'm running this Froyo Rom and I want to remove a couple of options from my/the settings menu (it's a bit cluttered for my tastes).
I think that I remember that there was just such a way to modify a rom so that it can show less settings options, but I don't seem to find it. If anyone can help on this front it would be really appreciated...
(In two words can I modify the "settings .apk" so that it shows less?)
Thanks for your attention.
Click to expand...
Click to collapse
Of course you can, but you run a very real risk of breaking your rom, you would have to decompile the apk and poke around in the xml and smali files to find the option you wanted to remove. you would also probably have to make some adjustments in your framework.apk but like i said you run a very real risk of breaking the rom you are using.
shreddintyres said:
Of course you can, but you run a very real risk of breaking your rom, you would have to decompile the apk and poke around in the xml and smali files to find the option you wanted to remove. you would also probably have to make some adjustments in your framework.apk but like i said you run a very real risk of breaking the rom you are using.
Click to expand...
Click to collapse
Yeah, I know, but I'm a total noob to those.
I did find this: http://forums.androidcentral.com/op...-how-edit-settings-apk-solved.html#post905109 but decompiling throws me an error.
Even when I put the framework-res file in the right directory apart from taking ages to decompile it still throws an error towards the end of the process (I've lost about a day trying to decomile the settings.apk but it was to no avail as -in the end- it threw an error again).
In fact that must be quite easy for someone with experience in this if I could post (to him) my settings.apk and framework.apk I may have had results in a few minutes (instead of having to learn sth from scracth in my limited time). But I guess it's a bit hard to find someone around here who would voluneer, no?
Anyhow thanks for your reply .
edit: OK I was able to clear out the errors. So I decompiled, made the appropiate changes and then recompiled (as per the instructions), but all I got was an apk half its original size which would FC whenever I was trying to run it (upon placing it on the system/app folder and rebooting).
What makes things even weirder is that merely the act of decompiling are recompiling (the apk) without making any changes at all rendered the -new- apk useless. So it seems recompiling in general ruins the apk -period- (no matter whether I've made changes or not). That is very troubling indeed... like I said I am a noob at these, any help at all would had been greatly appreciated...
When you placed it in the system/app folder, did you set permissions?
It is not as easy as decompiling the settings.apk picking out what you don't want and then recompiling it. Think of it as a web. The Settings.apk uses bits and pieces from Framework-res.apk, services.jar, androidpolicy.jar,...
We understand that you are a self-proclaimed noob, but you have to realize that it just isn't that simple to just delete something that you don't use. I mean, just because YOU don't use it, your ROM probably does. Are you always in the Settings page anyways? I doubt it.
It is good though that you took the initiative to somewhat learn how to de/recompile apks as that is a fantastic basis to start from. You can also learn smali and baksmali to modify apps as well.
Here is a good thread about theming and using APKtool to change things in an apk (such as /framework/framework-res.apk/res/drawable-hdpi where you can change the icons images for custom icons---but you can also do this by installingADWex or LPP and an icon pack).
Long story short, no need to change your settings.apk as it will bork your ROM and your next thread will be, "I think I bricked my phone...Halp!!!"
To clear some things up: I regard myself an enthusiast user. That is to say that I have considerable experience with modding my devices, what I am a "noob" at is actually creating or reverse engineering the code *which* mods my devices (I have little experience with C but that's about it). So do not be worried I am not going to brick my device and if I do I would know how to "debrick" it ( as I have done numerous times to my devices)...
With that out of the way I have to say that I want to modify my settings APk not for aesthetic but for practical purposes. See I have written a basic script on tasker that doesn't play well with froyos settings.aPk (but it does in ICS or GB), I've tried to rewrite the script but i found a dead end which was what lead me to wish to modify the settings APk....
All I wanna do is -basically- to hide some options not actually *delete* them (i am aware what havoc that may cause...). So if there is any advice relevant to my case I would welcome it very much...

Categories

Resources