GUIDES FOR NOOBS!: How to add and move start menu apps. *UNDER CONSTRUCTION* - Tilt, TyTN II, MDA Vario III General

Hello their newbie, if you are looking at this thread you are in the right place!
GUIDE #1!​HOW TO MOVE ADD AND REMOVE START MENU SHORTCUTS:​
First off get an Idea of what you are going to do, because if you go in and go with out a plan you will probably screw something up and then wont be able to fix it. To be safe just copy the whole start menu folder in windows and back it up somewhere safe so in case you do screw up you can just delete the current one and just paste it back in and then reboot.
Also once you do this once you probably don't have to refer to this again because this is simple but not easy to figure out(how to change the start menu around).
This works best on cooked roms.
Step one: Setting up
Connect your device up with active sync(yes you have to if you use any other program to sync, then see what you can do, adapt!). After its connected click explore, then device then "My Windows Mobile-Based Device", then windows, then start menu.
Step two: General Organization
Now to edit the start menu! Ok, this part is easy as you can see you can recognize certain things already, but you cant see the icons? Well that's because windows cant see the icons made for WM, so don't fret. The rest should be simple.
Step three: Icons and other tips
Ok, so you have a general organization, but you want those awesome folder icons from the other folders? This part is easy. All you do is copy paste the "icon" from the folder with the icon you want and paste it into the folder you need it in. I don't know of any other folder icons to use so I cannot help with that.
Still under construction! Don't worry screenshots should be here soon!.

Related

Request for Digital Clock

Does anyone have a way to change the analog clock to digital?
Thanks
solution
Hi.! Yes,there is a possibility for this...firstly, you must download the :"Manila 2D customizer" from a link reported in the "hacking & developement" section of this site (see on top of the main page), and install it on the Opal..after, also in this forum's section, you can find a lot of Skins..Clocks, icons etc...so, when you have find and choose it, download the.zip file that you want, and copy it in the "theme" folder (collocated where there is installed the application; you will find a folder with this name) and after, open this application. secondly you should make a backup of the original theme installed by HTC (this application allow you to do this action. Check the last tab) in case you want return back of the original status..after that, you can go on the step 3: return on the "Theme" section, select the name of file that you have copied and click on "Apply theme" and wait...during the installation the program will ask you if you don't want make the changing also for Weather tab and another point..don't make a tick on this two point, and press continue...finally the TouchFlo will restart automatically, and this procedure permise you to change the skins without soft reset the PDA!
In addiction to this operation, you can change a lot of other parameters as: colors & fonts of tabs, browser internet, the parameters of the main page (ex. if you don't want the analog clock, on the digital clock) etcc...
good luck.!!
if you have problems, contact me
Thank you for your help
Thank you very much for the detailed instructions. Will try it out over the weekend.
It "almost" Worked. Thanks for detailed instructions.
However, The digital and analog clocks both appear. If I disable the analog clock, the layout of the digital clock is totally disturbed and its useless.
any idea why?
instructions
yes i've an idea...have you downloaded the Van_de_bosh clock.? if yes, firstly you should modify manually the HTChomesetting.xml in the Windows folder of Opal..(so connect it on the PC, see and click on top bar of the PC folder Utilties -> folder option-> select the Visualization tab and after click on "show folder's and hide's folders", then apply). secondly enter in the Windows folder in PDA (wait if is slowly the loading, don't worry the PC can appear freeze for a few second, but don't close the folder)..after serch the "HTChomesetting.xml" and copy it on the desktop..So open the .zip and here you probabily find a .txt file. open it. after you will see some strings that you will copy into the file on desktop..when you have finish all steps, take this "HTChomesetting.xml" and replice the old file into the .zip..after try to install this skin package on PDA i know, is quite difficult but , when you have understand the procedure all become simply
If you have problems contact me
Thanks for the reply. However, I just found an updated version of M2DC which "fixed" the bug with digital clock placement. I tried it, and yes, it works like a charm

How to change folder icons

So, here's a short tutorial on how to create your own dll library and change folder icons.
what you need:
IcoFX get it here : http://icofx.ro/
ResHacker link here : http://delphi.icm.edu.pl/ftp/tools/ResHack.zip
and of cource ICONS get some here: http://www.iconarchive.com/
How it works...
Any customized folder has a shortcut inside pointing out the icon it should use
usually it's a icon.lnk file inside the folder.
and icons are usually stored in a DLL library...
So, what we have to do
1. Get some images and transform them into icon files ( .ico )
2. Create our DLL library
3. make the icon.lnk files that point to our specific icon
let's start.
After installing all the above programs and selecting some icons go and launch IcoFX
now go to Tools / Batch Convert
A new window appears
Add your icons / images,
select your icon sizes
select an output folder
hit ok
After it finishes hit ok.
Now go to Tools - Resource Editor
This should pop up
Now add your created icons
After that, hit save
Save your library with a .dll extension like in the above image.
Bam, you just created your own DLL library
Close the program
now to create the icon.lnk file
create a new text document
inside the shortcut looks like this:
1# is a parameter
myiconlib.dll is your icon library
-33 is the resource number where the icon is located within the resource dll
ok, how to find the right number for your icon:
Open up your DLL library with ResourceHacker
hit expand tree to see all the resources in the file
search for your icon
The icon number is very visible ( look at the image )
write the number in your text file like shown in the image. remember to put the "-"
so, another example:
1#MyLibrary.dll, -12
now, goto file , Save AS
Just to be sure select All Files in the Save as type bar
give the file the name: icon.lnk and hit save.
and you are almost done.
Connect via your phone via Activesync
Copy your Dll library right in the Windows folder
Copy your icon.lnk in the folder you want to customize.
And you are done.
Hope this comes in handy
Happy customizing
Nevermind, got it fixed Sorry for the trouble.
Great info! Thanks for sharing.
works great with changing a folder... how do you change just a shortcut?
Thank you very much
i dont nderstand this part , help please
now to create the icon.lnk file
create a new text document
inside the shortcut looks like this:
i have created the library.dll whit al the icons i want . i just dont understand this part above. i have to crate a new text document inside the shortcut? wich shortcut? i am lost in this part
I can't get it working, i did everything, i checked tree times but nothing works.
I GIVEUP
sorry by my inglish , i have being trying to make this shortcut but nothing works, i have being reading al the esteps over and over , but nothing works.i am tired to try to make i simple shortcut, tired to try to change the estar icon, tired to try to change waiting star icon , i just cant do it, nothing seems to work to me, maybe iam so stupid, KEEP THE GOOD JOB ,
be more specific. what failed ? tell me exactly what u did and we\ll see what went wrong
th_undead said:
be more specific. what failed ? tell me exactly what u did and we\ll see what went wrong
Click to expand...
Click to collapse
Nothing happens I did step by step everything, but icon does not change Does it works on official htc rom Probably that's the problem
did u copy the dll into the windows folder ?
th_undead said:
did u copy the dll into the windows folder ?
Click to expand...
Click to collapse
Yes mate, as i told, did everything
lets see
Please attatch ur dll library qnd ur shortcut and ill take a look at it
Everything seems clear except:
"Copy your icon.lnk in the folder you want to customize."
It's confusing how to customize?
Does anyone still come here?
I followed the tutorial step by step and also I had no success! Could someone help me? Or anyone know which dll is the original folder icon? So I could change them directly in this dll.
I have attached the dll and icon.ink that i created, if someone can help me and verify that is correct.
Thanks
bernabap said:
Does anyone still come here?
I followed the tutorial step by step and also I had no success! Could someone help me? Or anyone know which dll is the original folder icon? So I could change them directly in this dll.
I have attached the dll and icon.ink that i created, if someone can help me and verify that is correct.
Thanks
Click to expand...
Click to collapse
hello it looks ok....do you have reset your phone after copy the dll in Windows folder? This is very important because otherwise it dont will show the image....
Yes I did. Did not work. I tried to see in several dll where is the original icon of the folder to change but can not find.
ok you lost me towards the end. in your example you say your icon is -12, but you have -9 highlighted do you not?
also, how can i use this in a kitchen after i create my folders using oemizer?
Great tutorial, thank you very much!
I've created a tutorial about creating shortcuts to Feature Settings and Applications. Plus adding icons to these links. It has many xda-links to specialized shortcut applications!
For me it resulted in icons for MortScript
Your tutorial about creating icons for folders was missing!! Thanx again!
Senax
didn`t worked
thanks for your tutorial.
i tryed it but i had no success
in resco explorer it works in some cases, in others not and in the start menu i had no success.

Moving icons to different folders ?

I have ATT Tilt with TPC's stocklike rom, and whenever I go into file explorer and move files in Windows/Start Menu into a different folder, such as a Start Menu subfolder, my phone seems to not understand the change in the filepath, as shortcuts and icons stop working and eventually a hard reset occurs. So I assume in order to organise my icons, I will have to edit the filepaths in registry? Could somebody please point me to where and how to do this, or to a program which will facilitate the changes I desire to make? Im sorry if its a noob question, I have looked around the registry a bit and only managed to become confused and frustrated. Any help will be greatly appreciated.
please describe your intent a bit more precisely...
what i understand is that you simply want to organize the icons/links in your start menu into subfolders...is this a correct understanding?
if so, then you must first understand that files already present in the "\Windows\Start Menu" folder are actually "links", or shortcuts. you can freely move these files into subfolders rooted at "\Windows\Start Menu".
if you are moving the actual program files that these shortcuts point to, then that will cause all sorts of problems, such as what you describe as "shortcuts and icons stop working".
so the idea is to move existing shortcut files as you see fit. if one or more programs/applications don't appear in the start menu, first create a shortcut file to the said applications. leave the application files where they are and place the newly created shortcut in the "\Windows\Start Menu" folder or one of its subfolders to your liking.
i suggest "total commander" to perform advanced file and folder manipulation. it will also allow creating shortcut files as well as editing the paths stored in shortcut files (if i remember correctly).
finally, the device should NEVER hard reset on its own, even for pretty big screw ups with moving files around. most program files will be unmovable with the regular file explorer anyway. so, the operating system effectively protects and prevents major f-ups anyway.
if you are using one of TPC's WM6.5.x ROMs, you will read in the FAQs for nearly all WM6.5.x ROMs that the ONLY known and reported reason for the device to hard reset on its own when using one of these ROMs is if you did not flash a "stock ROM" first before flashing said ROM.
hope this helps...
Thanks a whole bunch!!
Moving my icons into subfolders was exactly what I was talking about. I hahd thought that that rom was the one 6.5 rom that you didnt have to flash stock first, but I was wrong. Flashed stock then flashed back to the rom & radio and it worked like a charm. Cant believe I missed such a simple step, but definitely a big thanks for your help and knowledge!!

[MOD] DIY Transparent Notification Drawer for Captivate FROYO

Like the title says, this is how to modify your Notification title drawer on the Captivate with Froyo like Tatuyama's theme's drawer(notification slide) for the i9000. This will tell you how to make it transparent and add a graphic or change the colors. This has been tested on Cog B7, dont think it works on i9000 roms like Shep's. I can help you though on this if you absolutely are dieing to do it. It will just take a little fandanglin and searching but can be done. I ripped apart Shep's rom and found all of Tat's mods, I jsut dont remember them off the top of my head..
I have also attached the drop bars from Tat's theme and another black AOSP bar should you want to use it. I have also included a PSD file to modify to your liking, my APK's for the frameworks I edited below (these include the tat icons already inside), a blank black background bar to use should you want, and other goodies for your modding needs. I have also slapped some screenies below to get an idea of wtf I am even talking about. Also if you use my Frameworks be aware that I am using the battery mod version "I" from that one thread, injected Tat's icons and goodies, and other MISC things.
I will try to do this as simple as possible. I dont linger in the themes area so you are pretty much on your own. I am going to write this tutorial based on Windows O/S and Adobe Photoshop. Attempt this at your own risk. If you biff it up its not my fault. I wrote the directions as I did it, and I am working great with awesome sauce dripping from my phone. I cannot be held responsible if you are below par of the preqs listed. I assume if you are going to attempt it you are competent and comfortable with all things required. However, should you somehow mess up, I do provide some SYA (save your ass) directions below. That being said, Good luck and Mod On!
Prerequisites:
1) ADB Dev Kit and experience using it (push, pull, shell)
2) Photoshop or other photo editing software & experience
3) Basic Windows experience: cut/copy/paste/rename/zipping/moving files. (if you use linux you shouldnt worry as you more than likely are a power user already and can cross apply).
Step 1: We need to download the APK's off the phone and get them ready for editing (or yank them out of the ROM package you download).
1) open a CMD (command prompt) window type:
adb pull /system/framework/twframework-res.apk C:\
adb pull /system/framework/framework-res.apk C:\​This will save the files to your root of C:. Should you want to do it elsewhere you can specify or else leave it blank and it will stick the files in your developer kit folder.
2) (OPTIONAL BUT RECOMMENDED! STEP) Navigate to where you saved the files, right click and copy/paste to make a set of backups of these files.
3) Rename the .apk to .zip files. You can also associate your .apk to a program like WinRAR or WinZIP instead. This will open APK Files by default or optional secondary(open with). This makes the whole thing a lot easier as you can open the file(APK) and leave it up, make the edits and drop them directly back into the APK. KEEP FILE STRUCTURE PROPER!
4) Extract the APK files to seperate folders or dig out the below files for editing.
Step 2: Editing the proper files.
1) Navigate to twframework.apk's extracted folder from above or these files you extracted.
2) Find and open sub folder /res/
3) Once in /res/ find and open /drawable-hdpi/
4) Once in /drawable-hdpi/ locate the following files:
- status_bar_background.9.png (actual background of the drawer)
- status_bar_header_background.png (this is the 5 icons across the top of drawer)
- status_bar_close_on.png (this is the dropdown bar at the bottom of drawer)
- quick_panel_list_bg_01.9 (seperator between carrier and application info)
5) Open these files in Photoshop(or another editor)
6) Verify these are set to RGB not Index color mode so you can edit them.
7) Edit the layers to make them transparent. If there are not layers, right click and "create layer from background". You can then edit your layer settings. I set mine to 75% transparency in Photoshop, the actual background to 85% to darken it up a little. This will take some tweaking to get it just perfect for you. Make sure you save them in .png format with the same name they started with and not the PSD or "copy". Also you want non interlaced if it prompts you.
8) Do the same steps for the framework-res.apk.
- status_bar_item_app_background_normal.9.png (not sure if this one is necessary)
- status_bar_item_background_normal.9.png (this is teh notifications)
Step 3: Put it together and upload.
After you update the files, you will need to inject them back ito the APK's where you got them (/res/drawable-hdpi/). You can do this by opening the APK with Winzip/WinRAR/7zip and put them in there or if you extracted the entire contents just zip it all back up. You will need to remove the .zip extension if you went that route. Also, make sure you open it after zipping and verify it maintains the correct structure or you will be doing the recovery shuffle after you reboot. If you see only 1 folder in your zip this is WRONG! You need to see assets, RES, META-INF, and 2 other files in there(manifests and resources). If you see all these then you are ready to rock and roll.
After you get them back together upload them to your device using:
adb push <location of apk you edited>\framework-res.apk /sdcard/
adb push <location of apk you edited>\twframework-res.apk /sdcard/​
then in teh same command prompt window (or another, whatever)
adb shell
su
cd sdcard
cp twframework-res.apk /system/framework/twframework-res.apk
cp framework-res.apk /system/framework/framework-res.apk
reboot​
It shouldnt take but a second to come back up. You are done.
It may take a little bit of editing of the files to get them to look OK. I spent most of my day today getting mine together. You can use them if you like the "hootie edition" or just edit your own.
SEE POST #6 IF SOMETHING GOES HORRIBLY WRONG!!!!!
Screenies:
http://www.wtfokc.com/sef****/snapshot-1.pnghttp://www.wtfokc.com/sef****/snapshot-2.pnghttp://www.wtfokc.com/sef****/snapshot-3.png
That looks fantastic. I want your notification drop down and all minus the owl of course and text, but can this be done by using metamorph instead of having to adb everything?
awsome write up. Looks pretty simple and I will attempt this when I get home today.
This is an absolutely EXCELLENT tutorial. Props to you. I will be doing this shortly to all my Captivates in the house, 3 in use, plus the 4th one I'm using as a Dev phone.
Hi,
I've followed your instructions. After the files have been pushed up, my phone goes through the usual errors due to the framework change. The problem I'm having is that after I restart my phone, the phone gets past the galaxy s screen, but then it goes black and does not respond. Any suggestions?
smeltn said:
That looks fantastic. I want your notification drop down and all minus the owl of course and text, but can this be done by using metamorph instead of having to adb everything?
Click to expand...
Click to collapse
To be honest I have never used metamorph on the Captivate. On my G1 yes you could acheive that. I googled the metamorph tutorial Junkdruggler did and it looks rather lengthy and involved editing XML files. You can find that info here. Also, the files you would need to do my way with just a blank one are above. Just download the closebars zip and the "blank" zip. Then mod/inject your APK - or hell mine from above- and push it to your device. This is a rather quick ordeal.
thehavock18 said:
awsome write up. Looks pretty simple and I will attempt this when I get home today.
Click to expand...
Click to collapse
miztaken1312 said:
This is an absolutely EXCELLENT tutorial. Props to you. I will be doing this shortly to all my Captivates in the house, 3 in use, plus the 4th one I'm using as a Dev phone.
Click to expand...
Click to collapse
Thanks guys, took me a little while to figure it all out and a lot of framework pushing to get it just right Let me know how it turns out for you! Hell post some screenshots when you are done. I want to see them
gangpe said:
Hi,
I've followed your instructions. After the files have been pushed up, my phone goes through the usual errors due to the framework change. The problem I'm having is that after I restart my phone, the phone gets past the galaxy s screen, but then it goes black and does not respond. Any suggestions?
Click to expand...
Click to collapse
THIS IS HOW TO SAVE YOURSELF
Well, not sure what you mean "usual errors" with framework change? I havent ever had any issues with the framework replacements. I occasionally have then crash if I replace them while phone is on and not in recovery. A reboot fixes this though. Are you using a Cap rom or an I9000? This doesnt work on I9000 roms as thier APK's are slightly different- teh HDPI folder has a v4 at the end (IIRC). I can help you through this though if that's the case..
If it truly is a cap rom, I did experience a similar problem on my phone one time when I pushed the framework.apk. What had happened is I right-clicked the ROOT directory I had placed all the files in and said to zip it. This caused the folder to be INSIDE the zip. So the file structure went like this:
>>ZIP FILE I CREATED>>
--------->>FOLDER ALL FILES WERE IN>>
------------------>>FILE STRUCTURE OF THE ORIGINAL APK>>
Which should have been
>>ZIP FILE I CREATED>>
--------->>FILE STRUCTURE OF ORIGINAL APK>>
To better explain it- If you open the zip you created, do you see the RES folder, META-INF folder, assets folder, and then there will be 2 other files? Or do you see 1 single folder? If you see 1 single folder you zipped it up incorrectly. You will need to go into the folder and select all-> right click-> zip (send to-> compressed folder). This should fix it. If this isnt the case something else went horribly wrong. To fix it we will need to restore the original files you hopefully backed up. If you didnt back up you still arent totally hosed- just redownload the ROM you are running, open it up and navigate to the /system/framework folder and pull out the original frameworks. Then follow these instructions to get them back on the device.
Step 1:
A quick way to get out of this situation is to take the copies rename them back to twframework-res.apk and framework-res.apk (or pull from the original rom package as mentioned above).
Hopefully you have the 2e recovery kernel, as you need it to get back to where you started. If you cant do clockwork, well you may as well odin cause you are a few flashes behind anyway.
K, so first you will need to download the update.zip I have included with this post. This is the clockwork recovery file. You will next need to put your phone in reocvery mode. to do this do:
adb reboot recovery
Step 2:
Next you will need push that file you downloaded to your SD. to do that you need to:
adb push <location of downloaded>\update.zip /sdcard/
Now, once in recovery- tell it to reinstall packages. This may reboot the phone. If it does, tell it to reinstall packages again. This should get you to clockwork recovery.
Step 3:
once you have a green clockwork recovery screen, you will get the chance to SU via ADB SHELL. You can then repeat the pushing of your ORIGINAL fles back to your phone and retry the process.
You could also pull the files you pushed to see what went wrong- but do that first as if you push before they will be overwritten with the original files.
Looking into doing a little custom work but before I do. Like Tat's theme do you need to edit XML files for specific things like the pop ups being black. Or do I just get the naming right and put the proper PNG in the apk.
thehavock18 said:
Looking into doing a little custom work but before I do. Like Tat's theme do you need to edit XML files for specific things like the pop ups being black. Or do I just get the naming right and put the proper PNG in the apk.
Click to expand...
Click to collapse
This is only for the notification drawer and not the actual pop ups. If you want to edit the popups you will need to edit the XML files.
Thanks for the quick response. I might have to dive into all the XML edits.
thehavock18 said:
Thanks for the quick response. I might have to dive into all the XML edits.
Click to expand...
Click to collapse
If you do post a how to thread cause I would like to know how myself
status_bar_background.9.png (actual background of the drawer)
If I ONLY wanted to make the pull-down menu background transparent the above file would be the only one that I need to mod... correct??
jslee1020 said:
status_bar_background.9.png (actual background of the drawer)
If I ONLY wanted to make the pull-down menu background transparent the above file would be the only one that I need to mod... correct??
Click to expand...
Click to collapse
That is correct.
The one problem though is the AT&T (carrier part) at the top is also transparent and you quickly notice it looks a little strange with your items not transparent. I tried to live with it for a little bit but ended up modding the rest too.
malfuncion said:
That is correct.
The one problem though is the AT&T (carrier part) at the top is also transparent and you quickly notice it looks a little strange with your items not transparent. I tried to live with it for a little bit but ended up modding the rest too.
Click to expand...
Click to collapse
quick_panel_list_bg_01.9 (seperator between carrier and application info)
is this the file for the AT&T carrier part??
The quick panel is actually the part that says "Notifications" or "On Going" below the AT&T part. THe AT&T and clear button is part of the actual background peice. So what happens is the AT&T part becomes transparent, while the notification peices are solid. It may not bother you but it bugged the crap out of me. It's personal preference really..
malfuncion said:
The quick panel is actually the part that says "Notifications" or "On Going" below the AT&T part. THe AT&T and clear button is part of the actual background peice. So what happens is the AT&T part becomes transparent, while the notification peices are solid. It may not bother you but it bugged the crap out of me. It's personal preference really..
Click to expand...
Click to collapse
I get it. Well I'll try it out and see... I guess no better way to learn then to experience it first hand Thanks!
I was able to take the Cog Beta 7 framwork and Tat's framwork. I pulled out all the changes from his theme and put them in cog beta 7. I actually did not have to edit any files and was able to apply it.
I had to change a few file names around so all the backgrounds / pop ups applied to the theme. I left DG's background.
I don't want to post it since it is not my own work but if you want to take a look at the framwork and twframwork I can send them PM.
notification bar??
What file is the actual notification bar with the battery/clock/etc... would it be inside twframework-res.apk or framework-res.apk?
EDIT: Just set background transparency to 80% in photoshop and changed the color to black. The transparency seems ok, but it resembles minimalistic theme too much... gonna fiddle with it some more today.
jslee1020 said:
What file is the actual notification bar with the battery/clock/etc... would it be inside twframework-res.apk or framework-res.apk?
Click to expand...
Click to collapse
it is in the framework.apk. The notification bar's file is:
statusbar_background.9.png
This is confirmed. I j ust set mine to a gradient and it actually looks kind of good.
screenie:
http://wtfokc.com/sef****/snapshot-4.png
Hey Malfunction,
Finally got it working past the galaxy S screen, thanks for the info. One last question, then I should be out of your hair. Where can I change the settings for the media scanning icons? Currently, the white default icons are showing, but I'm trying to change that to the black SD card. I'm going to look into it myself too; figured I'd ask though.
Thanks,
gangpe said:
Hey Malfunction,
Finally got it working past the galaxy S screen, thanks for the info. One last question, then I should be out of your hair. Where can I change the settings for the media scanning icons? Currently, the white default icons are showing, but I'm trying to change that to the black SD card. I'm going to look into it myself too; figured I'd ask though.
Thanks,
Click to expand...
Click to collapse
Good deal, glad you got it working. What was the problem?
As for the SDCard- depends which you need. In framework-res there are these 3:
stat_notify_sdcard.png
stat_notify_sdcard_prepare.png
stat_notify_sdcard_usb.png
I had to do some hunting to find out which program was the running process for the Media Scanner. It is "MediaProvider.apk" on your /system/app folder. I edited mine and it now works and has all the Tat icons loaded. Thanks for that heads up I hadnt noticed that little piece before you mentioned it.
I looked at Tat's ROM section and also saw that he has edited these, may consider if you are wanting to mimick his:
DownloadProvider (Market)
MediaProvider (Media Scanner)
Vending (Market)
PackageProvider.apk (Uninstallation Screen)
GoogleQuickSearchBox.apk (Google Search)

[GUIDE] A n00b guide to porting themes :P (26/12/11)

Hello A little while ago I managed to learn how to theme totally from scratch. I knew nothing of anything before I started, but now I know how to port themes As I still see myself as a n00b there may be some weird things I've done, but at least I manage to create the themes This might not be the best way to theme, or the easiest, but it works
Overview PNGS
1) Getting the files
2) Getting the images
3) Port
4) Package and Sign
The only programs I've used is 7zip and autosigner download them and install 7zip and extract autosigner to a nice location for example your desktop
Getting the files
The first you need to do (after getting the programs) is to find the file you will mod (edit). This will mostly be the framework-res.apk because this decides most of looks of phone (for example the statusbar). Download the .zip of the rom your going to theme. Open it up (shouldn't require any programs, if does, use 7zip: either drag it onto the 7zip icon or right click and choose open with). Open system -> app and copy the framework-res.apk (or any other apk you would like to theme, for example the settings). Now paste it into an appropriate folder.
Getting the images
Now you need to find the images you want to use in your new theme. Find either an update.zip with a theme or an .apk with a theme chooser theme (if there is both a version for Froyo and GB, use the Froyo version as this will make it easier ) Open it up with 7zip (drag it into the 7zip icon). Now you can do either of two options:
1) You can take the whole drawable-mdpi folder and copy it out. You should probably don’t do this with a Themechooser apk, as they usually don’t have all icons in this folder, as they often lend a few from HDPI.
2) Take only the images you want and copy them to a folder. For example if you want the signal icons, copy the “stat_sys_signal_0” (-4 of course) and copy them out. If you want the statusbar background, copy “statusbar_background”. This way you can mix several themes, take the best of several themes and make your personal theme
When you’re done getting your icons, close the window.
Porting
Now open the Rom’s default framework-res.apk with 7-zip. If you’re going to port a whole theme, delete the /res/drawable-mdpi folder and copy in your own. If you’re going to port just a few icons, open the /res/drawable-mdpi folder and paste your icons. You might want to check if the icons have the same names in the different framework. For example the headset icons can be both “stat_sys_headset” and “stat_notify_headset”. Also if you port from a theme chooser theme, you will have to rename every single .png you port. This is really boring, but necessary. You need to remove the “framework_res” and the “android_systemui” from the beginning of all the names. So “framework_res_activity_title_bar.9.png” needs to be changed to “activity_title_bar.9.png”. Because this is so boring you better keep your renamed icons, so it’s easier to port it to another rom
This is kind of off-topic: my carrier lends network of another carrier. Therefor my phone is allways roaming. This puts a stupid “r” with my signal icons. To avoid this I allways take normal signal icons, copy them, and rename one of the two .pngs from for example “stat_sys_signal_1” to “stat_sys_r_signal_1”. This way I get rid of this stupid “r” and it will always show the normal icons
Packing and signing
Now the porting is done and the next job is to push the new framework to your phone. If you are familiar with adb, you can push it to system/framework on your phone. You don’t need to anything more with the apk before pushing it. Else you can create a flashable .zip for your theme. I’ve attached a .zip with update script (I haven’t created it. Just stole it from one of Elelinux’ add-ons ). Download the zip. Create a folder named system and a folder named framework. First drag the new, modded framework_res.apk to the framework folder, then drag the framework folder into the system folder, before you drag the system folder into the attached zip. If you use Clockworkmod recovery, you can just flash the zip right as it is, but if you use Amon_Ra or want it to be compatible with every recovery because you want to post it, you need to do something.
Unpack autosigner and launch the exe file inside. Drag the .zip into the new window and press sign. It will now appear a new file in the same folder as the file you wanted to sign. Its name is the same, but with “_signed” at the end. You can rename the file as you wish both before and after the signing.
XML Editing:
I decided to add a little section about XML editing as well I really don't know all about this myself, but i can tell how to set it up and some examples to what you can do Even though this may seem really complicated, it's not written in a completely different language, like Java in the smali files, so often it is possible to use logic to get what you want
Tools needed: APK Multi-tool. as well as Java, if you don't have it installed.
Overview:
1) Setting up
2) Examples
3) Finish
Settings up
Download APK Multi-tool and extract/ unzip it to wherever you want ( I have it on my desktop). Now you can place the apk you want to modify (usually the framework_res.apk) in the "Place_apk_for_modding" folder. Then you open the script. If you don't get an error, proceed to b), if you do get an error proceed to a)
a)) If you do get an error where it says something like "java not found" you need to correct the Java path (or install Java if you haven't done that, which you should have) . I had to do this to get it working. First open my computer and click disk C, or D if you have installed Java there. Open programfiles (or whatever it's called in your language) and scroll to the Java folder. Now open the folder there jdk folder or whatever you have there and open the "bin" folder. Look at the top of your window, where it says where on you're computer you are (like Windows: C to the left, and then Programfiles and so on). Right click it and click copy address. Mine is "C:\Program Files\Java\jdk1.7.0_01\bin . Now you can close the window.
Open "My computer" again. On the top bar below the navigationbar, click Sytemoptions (sorry, not really sure what it's called in Englsih, as my computer is Norwegian, please correct me if I'm wrong). On the left click the "advanced" link and in the popup that appears click "environment variables". Scroll down to the "path" variable and edit it. Paste the address you copied and click OK. You should now be able to proceed to b). If you still get an error, please tell me and I'll try to help
b) type 25 and press enter to select current project. Here you will see all the apks in the "Place_apk_for_modding" folder. Select the appropriate number (in this case probably 1) and press enter to continue. Then you hit 9 and enter to decompile it. I cannot really explain it, but it enables you to edit the xmls in the apk. If you try to edit them by using 7Zip, the xmls will be just messed up. When it's done decompiling, you have gotten a new folder in the "projects" folder. In this case it is probably named framework_res.apk. Minimize the script (DON'T CLOSE IT) and you're ready to edit the xmls
Examples on edits:
COMING SOON
Finish:
When you're done editing, open the script again (remember what I said about not closing it? ). Click 11, unless you are editing a non system apk. If you are editing the framework or settings or such, use 11. If you get an error now, you have probably done something wrong, try to see in the log what you have done wrong. Every time I've had an error, I've ended up in bootloop when I've flashed, so it is probably better to just start over. Another tip is to do one thing at the time. For example: you decompile, edit the notification color in pulldown, compile. Take the compiled apk, decompile edit another thing and so on, this makes it easier to not mess up and it also shows what you are doing wrong.
On the "Is this a system apk?" you should probably say y, as I said above. I also usually copy over the files I didn't edit, as this seems safer. Follow the instructions and you should be fine. When you're done and the script is done compiling, you will find a unsigned_**** (for example unsigned_framework-res.apk) in the "place_apk_for_modding" folder. This is your modified apk, and you can try to push it to ur device with an update.zip or adb, if you know how to use that
Well this was the end of my guide for now If there's anything which is unclear or you have other suggestions, feel free to post I've probably forgotten something
Finally after all my attemps to modify the android framework before i have do it correctly. I have changed a couple of things, the lock screen and battery icons so far. The framework I'm modifying is the one on Ele's Gingerbread and i wonder how to get the battery icon percentage 1 by 1 as i saw in some other themes. What i mean is that in the original framework there is only battery icons for 15, 20, 25 and so on, and if i push the 16, 17, 18, 19 they won't work. Is Theme Chooser the one on charge of this? how can i get that? some help please?
(Also tryed to theme a sense rom, but everything was messed up, i guess because of sense or maybe I did something wrong)
So thanks for your guide, really helpfull
Yeah, I've never tried to theme Sense so I don't know. It is probably possible to make icons for every %, but then you'll have to decompile using APK tool, and it is harder. I don't know how. If you want to try, you could try asking a question here
thanks
so funny=))
i'm tried
Great guide helped me a lo thx.
Finally, someone who CAN explain it...
I'm now porting ICS to GB (no cm7), cause I think CM sucks.
mDroidd said:
Finally, someone who CAN explain it...
I'm now porting ICS to GB (no cm7), cause I think CM sucks.
Click to expand...
Click to collapse
Hmm, ICS themes can be made really awesome, if you do some more advanced stuff. For example you want to remap the pulldownbar a bit, and change som text colors. But to do this you need to use a tool like APK multi-tool, and it is a bit more advanced. If you want to, I can create a new section where I show how to this
Thank you.
GUIDE UPDATED! Added a section about XML editing really quick, probably forgotten something and such, so just ask if there is something you don't understand This is for those who are getting used to the PNG editing and want to proceed to something slightly more advanced, for example you 7Tosta
Cheers
BTW: I should've reserved the 2nd post, this is getting messy
Edit: If there's anything specific you want me to add to the EXAMPLES section, tell me

Categories

Resources