Editing Menu Items in Settings Menu - Kindle Fire Android Development

Hey everyone, I've been working on modifying whistletop's cm7, basically making it into my own barebone version. One of my goals is to remove menu items from 'Settings.apk' that are not needed on the kindle fire, for example 'Call Settings.' I have spent days searching though xml and smali code trying to find the smoking gun that will make it disappear from the menu, but I have had no luck, everything I have attempted has yielded no results. So, I'm wondering if anyone else has any experience modifying menu items and can point me in the right direction.
Thanks.

Hey, have a look at https://github.com/CyanogenMod/android_packages_apps_Settings/tree/gingerbread , it should be at something like packages/apps/Settings (can't look up the exact position now) in your source tree.

Thanks a Million!
nind said:
Hey, have a look at https://github.com/CyanogenMod/android_packages_apps_Settings/tree/gingerbread , it should be at something like packages/apps/Settings (can't look up the exact position now) in your source tree.
Click to expand...
Click to collapse
Thank You Sir! Thanks for the pointing me in the right direction, I was finally able to decipher the Smali code and successfully removed "call settings" from settings menu without force closes when attempting to open the settings menu.

Related

Chome Panel Chooser

Hey guys. Whipped this thing up to help people choose the panels that can be displayed on the homescreen. So far it only contains 7 entries, the ones I found on my phone. You can turn the panels off or on, by selecting a panel and typing it "off" or "on" respectively. After you make the changes, you need to reboot to see the changes. The last option will make that easier for you. Choose "Reboot", type "yes" and it will reboot for you. Let me know if there's any other panel names you would like me to add, or if you find any bugs. Thanks!
Look good but isn't this just like the chome settings (neoOrder) that is in Rockys ROM where you can enable and disable the windows you want and change which position they are in on the screen?
Clydeisthe**** said:
Look good but isn't this just like the chome settings (neoOrder) that is in Rockys ROM where you can enable and disable the windows you want and change which position they are in on the screen?
Click to expand...
Click to collapse
Everyone isn't running rickwyatt's ROM. Some are still with Kavana's. Like me.
Rip Syntaxx said:
Everyone isn't running rickwyatt's ROM. Some are still with Kavana's. Like me.
Click to expand...
Click to collapse
ohh ok I didn't know that it wasn't in Kavana's ROM I have never flashed one of his just Rickys .. my bad
Clydeisthe**** said:
ohh ok I didn't know that it wasn't in Kavana's ROM I have never flashed one of his just Rickys .. my bad
Click to expand...
Click to collapse
To Clyde: It's cool. Contrary to popular belief, there are still some users that are on Kavana's ROMs. lol I have no problem with rickwyatt's, but I found them to have too many apps and tweaks that I found unnecessary for me personally.
To Org (and anyone who'll listen): This is great idea for those who aren't quite comfortable with editing their .xml files to rearrange the slider panels (like me)! I've noticed that many users have a panel called "My Programs". What do I need to do to create this? I think it's a really useful tool to "slide" straight through the programs you use on a regular basis. I've already read tons of posts on this, but it's not registering. Thanks in advance, guys.
It's difficult to sit here and do a step by step, but I'll point you in the right direction and answer your questions later.
1) Download a registry editor or use the one on the phone.
2) First off, keep in mind there's TWO places in the registry where you need to make changes. One is HKLM\Security\Chome\DefaultSettings\CWelcomeCenter and HKLM\Software\Microsoft\Chome\CWelcomeCenter
3) Look for a key that says "Disabled" and make sure it doesn't say "1". Or use my utility to turn the welcome center on.
4) When you're in the registry you'll find Page1, Page2, Page3 etc etc in both places. Each Page represents ONE slide. For each page you can makes changes such as... ACTIONURL is the path to the program you want to execute when hitting the middle button. for example "\program files\NRG\Chomeweathersettings\weather.exe" will run the weather program
SK2URL is the same, but for the right softkey. SK2Text is a label for that softkey. The "pictures" key points to the .png file you will be using as an icon for your program. Right now it probably says "2500". Change it to "\windows\weather.png" and you'll get the weather icon in its place, for example. The Title text is self descriptive... put in whatever you want the title of the slide to be.
I hope you can figure it out from here
OrganicM said:
It's difficult to sit here and do a step by step, but I'll point you in the right direction and answer your questions later.
1) Download a registry editor or use the one on the phone.
2) First off, keep in mind there's TWO places in the registry where you need to make changes. One is HKLM\Security\Chome\DefaultSettings\CWelcomeCenter and HKLM\Software\Microsoft\Chome\CWelcomeCenter
3) Look for a key that says "Disabled" and make sure it doesn't say "1". Or use my utility to turn the welcome center on.
4) When you're in the registry you'll find Page1, Page2, Page3 etc etc in both places. Each Page represents ONE slide. For each page you can makes changes such as... ACTIONURL is the path to the program you want to execute when hitting the middle button. for example "\program files\NRG\Chomeweathersettings\weather.exe" will run the weather program
SK2URL is the same, but for the right softkey. SK2Text is a label for that softkey. The "pictures" key points to the .png file you will be using as an icon for your program. Right now it probably says "2500". Change it to "\windows\weather.png" and you'll get the weather icon in its place, for example. The Title text is self descriptive... put in whatever you want the title of the slide to be.
I hope you can figure it out from here
Click to expand...
Click to collapse
Thanks a bunch, man. I'm gonna finagle with this as soon as I get off.
OrganicM said:
It's difficult to sit here and do a step by step, but I'll point you in the right direction and answer your questions later.
1) Download a registry editor or use the one on the phone.
2) First off, keep in mind there's TWO places in the registry where you need to make changes. One is HKLM\Security\Chome\DefaultSettings\CWelcomeCenter and HKLM\Software\Microsoft\Chome\CWelcomeCenter
3) Look for a key that says "Disabled" and make sure it doesn't say "1". Or use my utility to turn the welcome center on.
4) When you're in the registry you'll find Page1, Page2, Page3 etc etc in both places. Each Page represents ONE slide. For each page you can makes changes such as... ACTIONURL is the path to the program you want to execute when hitting the middle button. for example "\program files\NRG\Chomeweathersettings\weather.exe" will run the weather program
SK2URL is the same, but for the right softkey. SK2Text is a label for that softkey. The "pictures" key points to the .png file you will be using as an icon for your program. Right now it probably says "2500". Change it to "\windows\weather.png" and you'll get the weather icon in its place, for example. The Title text is self descriptive... put in whatever you want the title of the slide to be.
I hope you can figure it out from here
Click to expand...
Click to collapse
I'm understanding how to read the code. Thanks for breaking it down. I'm just having trouble finding the .pngs for my icons and also (noob moment) finding the target file for certain applications. It's keeping me from being able to input the file address for ACTIONURL and SK2URL.
Not Hard to Find
Just think of your program, "Where is it stored?"
That should be your only question when finding your target file. That simple, you should look in your Program Files directory on your phone or you storage card, that will then tell you where the link is.
2ndly, you can find other programs in your startup folder. They will be listed in link format, but this is fine, the link can be treated basically as the exact file itself (as far as your phone is concerned).
Long story short, use these locations for your entries for ACTIONURL and SK2URL. Have a blast!
Rip Syntaxx said:
I'm understanding how to read the code. Thanks for breaking it down. I'm just having trouble finding the .pngs for my icons and also (noob moment) finding the target file for certain applications. It's keeping me from being able to input the file address for ACTIONURL and SK2URL.
Click to expand...
Click to collapse
outerdepth said:
Just think of your program, "Where is it stored?"
That should be your only question when finding your target file. That simple, you should look in your Program Files directory on your phone or you storage card, that will then tell you where the link is.
2ndly, you can find other programs in your startup folder. They will be listed in link format, but this is fine, the link can be treated basically as the exact file itself (as far as your phone is concerned).
Long story short, use these locations for your entries for ACTIONURL and SK2URL. Have a blast!
Click to expand...
Click to collapse
Thanks, OD. I've figured out the file locations and such. I just need to know where you guys edit the .pngs for icons. I've found some icons, but they sucketh. I want them glossy and polished looking like the default icons.
By "where" , I assume you mean what programs do we use?
I use Photoshop do edit my pngs. I think other, cheaper software is available. Don't quote me on that. Photoshop can also be attained other "ways" (cough,cough).
Anyways, you can easily mod any pictures, turn them into anything you want, .png,.tga,.gif,etc. Look around.
Rip Syntaxx said:
Thanks, OD. I've figured out the file locations and such. I just need to know where you guys edit the .pngs for icons. I've found some icons, but they sucketh. I want them glossy and polished looking like the default icons.
Click to expand...
Click to collapse
outerdepth said:
By "where" , I assume you mean what programs do we use?
I use Photoshop do edit my pngs. I think other, cheaper software is available. Don't quote me on that. Photoshop can also be attained other "ways" (cough,cough).
Anyways, you can easily mod any pictures, turn them into anything you want, .png,.tga,.gif,etc. Look around.
Click to expand...
Click to collapse
I understand how to make any pic a .png, .jpg, .gif, etc... It's not the icons that I need, but rather, the program. I'll search for "alternate" ways to get photoshop. lol
Rinku has a pretty good description on how to add CProgs on his blog. It at the bottom of the page.
Thanks guys for all your help and input! I've figured it out, and in the process figured out how to change the small icons in the upper lefthand corner of the panels as well. It's kinda tedious at first, but once you get the hang of it--it's not bad.
Rip Syntaxx said:
Thanks guys for all your help and input! I've figured it out, and in the process figured out how to change the small icons in the upper lefthand corner of the panels as well. It's kinda tedious at first, but once you get the hang of it--it's not bad.
Click to expand...
Click to collapse
For photo edtiting, i use GIMP,,,, it's the same program i used to modify the yahoo weather icons for ORG...... it's free and works just as well as photoshop CS3.
Go here if you want to try. www.gimp.org
pudgedaddy said:
For photo edtiting, i use GIMP,,,, it's the same program i used to modify the yahoo weather icons for ORG...... it's free and works just as well as photoshop CS3.
Go here if you want to try. www.gimp.org
Click to expand...
Click to collapse
Thanks, Pudgemeister. I'll check it out.
pudgedaddy said:
For photo edtiting, i use GIMP,,,, it's the same program i used to modify the yahoo weather icons for ORG...... it's free and works just as well as photoshop CS3.
Go here if you want to try. www.gimp.org
Click to expand...
Click to collapse
I used GIMP for my icons, it was easy and I think they turned out quite nice. Here are a few that I found/made they all have transparent backgrounds. Feel free to use which ever you like.
A few more
Editing Slider Panels
Does anyone know the default setting for this registry key: \HKLM\SOFTWARE\Microsoft\CHome\CMessage\ICONPATHS? I changed it trying to change the condensed icon (upper lefthand corner) for the message notifications panel. Instead, my weather panel's icon was changed. What're the default values for the key? (ex. 2xxx;2xxx)
It is 2201;2201

How to Unlock Items on the new start menu?

Im sure Ive seen a thread or post about this but after searching on and off all morning Ive turned up a blank.
Its to do with unlocking the first 5 entries on the new manila start menu. You cant remove them by default but im sure ive seen a how to post some where?
Can anyone point me in the right direction.
Registry Editor HKLM/Software/HTC/Manila/ProgramLauncher/
Change Value IsReadOnly in first 5 items (numbered 1 to 5) from 1 to 0
Lucas0511 said:
Registry Editor HKLM/Software/HTC/Manila/ProgramLauncher/
Change Value IsReadOnly in first 5 items (numbered 1 to 5) from 1 to 0
Click to expand...
Click to collapse
Thanks for that, I new it would be something simply. For info, first 5 items are 0 to 4.
Hi all,
Another thing I would like to share. Maybe some people has already played with the new start menu maybe not. I know it contains 24 icons, but one day I was wondering whether I can add more...
So what I did was to add new entries for another line of icons (24,25,26) and they did appear in the Start Menu. Well there was a problem. I wasn't able to add any program to these new icons so eventually I removed them. I post these thoughts here because it was this fix that made me look further into the menu registry values.
If anybody else has some more luck please let me know, I could use extra slots for applications
bobya said:
Hi all,
Another thing I would like to share. Maybe some people has already played with the new start menu maybe not. I know it contains 24 icons, but one day I was wondering whether I can add more...
So what I did was to add new entries for another line of icons (24,25,26) and they did appear in the Start Menu. Well there was a problem. I wasn't able to add any program to these new icons so eventually I removed them. I post these thoughts here because it was this fix that made me look further into the menu registry values.
If anybody else has some more luck please let me know, I could use extra slots for applications
Click to expand...
Click to collapse
I did get 3 extra slots to work fine using the copy to another folder, change number, and then repaste method, but when I tried more they won't keep the entries. I have an idea why, but must test it when I get the chance. I post my results.
Hi, do you guys manage to find a resolution to add more entries to the Start Menu instead of limited to 24 ?
Anyone?
Thanks.

TP2 TMO - How do I customize the TouchFlo 3d icon order?

As the title says...how do I customize the buttons along the bottom of the screen? For example it has stocks, people, weather which I would like to remove completly from the list or move them to the far right of the screen. How do I do this?
I have played around with all of the settings but cannot figure it out. I also searched around this forum but maybe I overlooked something?
dapopa9 said:
As the title says...how do I customize the buttons along the bottom of the screen? For example it has stocks, people, weather which I would like to remove completly from the list or move them to the far right of the screen. How do I do this?
I have played around with all of the settings but cannot figure it out. I also searched around this forum but maybe I overlooked something?
Click to expand...
Click to collapse
In the settings you can choose the tab you want and choose the order with drag and drop.
thanks mcDOPDA! I knew it had to be somewhere!
Now how do I change the links on the Internet Tab in the TouchFlo?
dapopa9 said:
thanks mcDOPDA! I knew it had to be somewhere!
Now how do I change the links on the Internet Tab in the TouchFlo?
Click to expand...
Click to collapse
changing the tabs is in the manual as well as a setting on the settings tab that says "Customize Tabs" so i don't know how you over looked that.
as for the bookmarks in the internet tab, that requires editing an xml file in \Application Data\Manila
couldn't find my post explaining but this one works too
http://forum.xda-developers.com/showpost.php?p=4341476&postcount=1

WM65 rearranging items in Start Menu (all Programs list)?

Apologies if this is addressed already somewhere. I searched for "rearrange" and did not see something which looked like what I'm asking.
I would like a tool (or failing that, just the registry or file magic) to rearrange Start menu (all Programs list) items in WM65. I'm running a Dutty Holy Grail ROM on my Topaz, withOUT HTC Sense.
The only rearranging option I see is "Move to Top" and "Move Down" when right-clicking on items in the Start menu, and that's sort of like a Rubik's cube - possible to get right, but waaaay too much work :-}
Thanks for your suggestions,
Jay
Since build like month or month a half back you should be able to "right click" and move it just where you want.
This is what you're looking for!
Not a sorter, a way to manually set icons/programs in whatever order *I* want
the "Start Menu Sorter" app is not at all what I'm looking for. It only does a sort (alphabetic?) of its own design.
What I'm looking for - sorry if I wasn't clear before - is something to allow me to rearrange the icons in the Start / Programs folder in any way that I want to. Ideally this would be a drag-and-drop interface, but frankly a Registry key or System file which identifies the order in which all of the registered programs appears would be okay, as it isn't the sort of thing I expect to edit often.
Any other ideas please?
Thanks.
Try this one http://forum.ppcgeeks.com/showthread.php?t=68864. This gives you full access, havent tried it myself, but going to today (if I can find the time). Looks like it may still be in Beta, but better than what we currently have!
This might also help.
reSTART seems to do the trick!
The reSTART applet does seem to do the trick, thanks.
The JSPA applet I had already tried - it actually does not seem to have any way to move menu items around, though when I read the web pages about it I also got the impression that it was supposed to do so.

[Q] A Few Themeing Questions

Hello GUIse,
I am sort of new to theme porting, I have ported 2 themes from the SGS (Gingerbread Theme & Black Android Theme by Pele) the Gingerbread Theme ported fine with no issues, on the other hand, the Black Android Theme went across fine but there was an issue with the notification area, the "clear" button to clear all notifications has gone the incorrect colour (The button itself not the text) I was wondering, where is this button based so I can change the colour?
I presumed it was on Framework-res.apk but found nothing.
I heard you have to edit the XML settings but was unsure which XML it was as there are plenty.
Second Question: What program do you use to edit XML files? I used notepad and it came up with mumbo jumbo.
Thanks in advance, I appreciate any help.
Everyone has to start somewhere, but if you do please show some self-initiative and search a bit for yourself. There are tons of topics on how to start on advanced themeing. Here's one: http://forum.xda-developers.com/showthread.php?t=916814
To answer your second question, you can use notepad++ although i use UltraEdit.
Notepad may work but you have to decompile the apk to view the xml correctly (you may already know this). As far as the clear button goes, ive done this before ages ago but cant remember, ill try and dig out the info unless someone gets there first.
I can tell you where to find one thing thats totally unrelated but you could use it as a test : to change the volume bar you have to edit progress_horizontal.xml which is within framework-res.apk/res/drawable/
Hope some of this helps.
cTrox said:
Everyone has to start somewhere, but if you do please show some self-initiative and search a bit for yourself. There are tons of topics on how to start on advanced themeing. Here's one: http://forum.xda-developers.com/showthread.php?t=916814
Click to expand...
Click to collapse
Just so you know, I did try search initially but obviously not hard enough. I wouldn't of posted anything if I didn't know what to look for.
Thanks for linking me to that thread.

Categories

Resources