Android-dev.it Community

 
Annunci

:arrow: Benvenuto!, se non sei ancora un utente registrato: puoi registrati qui, oppure effettua il login
:arrow: Apri un forum sul tuo nuovo smartphone Android e collabora con noi! (dettagli)



Sponsor
It is currently Sat Sep 04, 2010 6:09 am

All times are UTC + 1 hour


 Topics   Replies   Views   Last post 
No new posts Recovery mode

by AresSieran on Fri Sep 03, 2010 9:16 pm in HTC Dream

3

31

Fri Sep 03, 2010 9:16 pm

AresSieran

No new posts Aiuto Estremo! HTC G1 Brick o non Brick?

[ Go to page: 1, 2, 3, 4 ]

by Chinellox on Fri Sep 03, 2010 4:38 pm in HTC Dream

33

1302

Fri Sep 03, 2010 4:38 pm

Chinellox

No new posts Pavtube Blu-ray Ripper 3.6.1.1783

by AresSieran on Fri Sep 03, 2010 2:44 pm in HTC Dream

1

22

Fri Sep 03, 2010 2:44 pm

AresSieran

No new posts Differenze DREAM con tasti tondi e tasti rettangolari

by AresSieran on Fri Sep 03, 2010 2:40 pm in HTC Dream

3

53

Fri Sep 03, 2010 2:40 pm

AresSieran

No new posts Attachment(s) Cancellazione SMS - help me

[ Go to page: 1, 2, 3 ]

by AresSieran on Tue Aug 31, 2010 2:10 pm in HTC Dream

28

364

Tue Aug 31, 2010 2:10 pm

AresSieran




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: ANDROID THEMES!!
PostPosted: Tue May 26, 2009 4:42 pm 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 3964
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 4529
alloooooora navigando ho trovato questo sito che ringrazio :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:
thanks to androidevolve.com!

ALLORA CHI CI PROVA???? :mrgreen: :mrgreen: :mrgreen:

How to Create or Edit Themes
Written by Stericson
Tuesday, 10 February 2009 21:14

Taken from xda-developers.com and many thanks to Stericson for his excellent explanation. Please try this at your own risk we at Android Evolve are not responsible for any damaged that maybe caused during any part of this process.


To create themes, or to edit themes to your liking, you will need a working knowledge of android, adb, how to resign apk's, knowledge of your own O/S.


Things you will need:

You will need JF's RC30, RC8, or ADP1 V1.3, depending on what version you intend to create for.

Here is the link to these: http://forum.xda-developers.com/showthread.php?t=466174

You will also want to get the dev bootloader installed on your phone and to HIGHLY suggest everyone trying your theme to install it as well.

Link to dev bootloader: http://forum.xda-developers.com/showthread.php?t=455860

Link to Java: http://java.sun.com/javase/downloads/index.jsp

Downloading SDK: http://code.google.com/android/intro/installing.html

You can also use any zipping archive to extract files from and to the update.zips. I believe there are links below to some of these.

You will also need to resign all the apks located in /system/app and framework-res.apk located in /system/framework.


However, the easiest way to do it, although not always the best and safest way, is to take another update and edit it to your liking.

You will however have to sign your update.zip files and you SHOULD get in the practice of signing every apk that you edit. Sometimes you can get away with not signing the apks.

JesusFreke was kind enough to build a custom signing tool for me that would allow me to right click on an apk and resign it from there. I am posting it here for others to use as well. Note that this is a courtesy of JF, so thank him for it. I cannot stress how much time this has saved me and will save you.


Automatic version!


Note, this will not work if your SDK or the path that you place this in has any spaces in the dir name!
An Example of this is c:\users\Nikki and Stephen\sdk\tools
Try to put the SDK and the contents of the zip in a dir where the names are all together and not like the one above.

I have made a batch file that will automate the entire process of setting up to use the signing tool made by JF. This batch file will set the CLASSPATH, set the PATH, install the registries, and will even allow you to sign files manually if you wish. I plan on building onto this batch file to include other things. However, for the moment, it will only include what you see here.

In order to use this you should have downloaded the sdk already. Simply extract all of the files into the tools dir of your sdk, and run autosign.bat follow the instructions and go through the options one by one, starting with 1 working through 4. You can however, put the contents of this zip anywhere on your computer and it will work. It is just better to put them into the tools dir of your SDK. Especially for the consideration of future versions.

Autosign .zip: http://www.fightforthepits.com/Androidstuff/signing.zip

Want to set up the signing tool manually?

Here is the link for the signing tool: Http://www.FightForthePits.com/testsign(2).zip

Before using this you need to know how to set this up:

Now you will need to add the tools dir of your sdk to the environment variable CLASSPATH.

FOR XP:

Right click on My Computer click properties, then choose the tab that says advanced.
Click the button that says environmental variables.
Go to system variables find the one that says CLASSPATH
double click it
go to the end of variable value.
There should be a semicolon ; at the end, type in the path to the testsign.jar located in the tools directory of your SDK

for example the path to my testsign.jar was c:\sdk\android-sdk-windows-1.0_r1\tools\testsign.jar

If CLASSPATH is not in your system variables then create it.
Secondly, Find the system variable called PATH and add to the end of it, the full path to your sdk directory.

For example, mine was c:\sdk\android-sdk-windows-1.0_r2\tools

FOR VISTA:

Open a cmd prompt.

Replace THEEXACTPATHTO-TESTSIGN with the path to the dir that holds the file testsign.jar.


Type:
echo %CLASSPATH%

If it is returns %CLASSPATH%
Type the following:
set CLASSPATH=THEXACTPATHTO-TESTSIGN\testsign.jar


If it comes back with something else then
Type the following:
set CLASSPATH=%CLASSPATH%;.;THEXACTPATHTO-TESTSIGN\testsign.jar


For Example, when I type this it looks like:
set CLASSPATH=%CLASSPATH%;.;c:\Android\SDK\tools\tests ign.jar

To set the PATH

Replace THEEXACTPATHTO-SDK with the path to the tools dir of your SDK.

Now type:

set PATH=%PATH%;.;THEXACTPATHTO-SDK\tools


For example, when I type this out it looks like this:

path-%PATH%;.;c:\Android\SDK\tools


Now through doing this you have done two things, first off you have made the resigning process extremely easy, secondly you will not have to cd to the tools dir of the sdk to use adb or any other tool in the sdk.


Signing the Files:

Now right click the reg file that you extracted and choose to install it, or merge.

Now, right click an apk, do you see an option that says ResignApk? That's how you will resign your .apks and .zips.

When you choose it a cmd window should open for a few seconds and then close. the file you signed will be overwritten with the new resigned file.

If you find the right click menu not working for some reason you can type the following in cmd to sign your files: java testsign whateverfiletosign


General Info:

You will need to be specific in addressing what version your theme is for, RC8, RC30, or ADP1. Make sure every file gets signed. Make sure you test the update.zip before you release it.



Every .apk contains the images relating to itself. However, every apk has the ability to use the images in framework-res.apk. The images for every apk is located inside of itself. To find these images open up the apk, you can rename it to .zip or open it with an archiver of your choice, winrar, winace, etc. Then after opening the apk open the folder called res and inside of that there are folders that are named Drawable, drawable-land, drawable-port, etc. This is where the images are stored.

There are some things you cannot edit unless you rebuild the entire apk from source, which we will not go into here.(another tutorial, another time) Just know that at this time you SHOULD NOT edit, or even open images with the extension .9.png.

If you do you can have serious problems...Trust me....if your still gonna do it, proceed with caution!

These are special images called ninepatch images and android resizes these images to fit wherever android, or any other apk, needs it to. if you do open them or edit them they will no longer render correctly when resized. I believe that in order to edit these you must do so and then put them into the source and rebuild the entire apk.

If your going to build your own update.zip from scratch:

Before getting started you must also realize that you cannot simply resign one or two apk's and stick them in your phone and expect them to work. You must resign every apk inside of /system/app and framework-res.apk and put them on your phone at the same time.

To simplify this process for you though, I have provided an empty update.zip which you can place all of your resigned apps into and use to update your phone to your custom theme. You can also download someonelses theme and use there files, since they are resigned already. It may also be easier to see what files do what and go where since they have already been edited and are easy to point out.


Now, your ready to start changing things up.

You will now need to open the apk, which you can do by adding .zip after .apk, effectively changing it to a zip. or you can use your favorite archive opener.

I dont use the archive process because it can lead to very aggravating problems such as things not getting signed correctly and have heard reports of it interfering with the signing tool above. Anyways I just add zip and it works great for me.

For those renaming the .apk's to .zips

Note that if you are using windows you will need to unhide known file extension types. you can also use your favorite archiver such as winrar, winzip, etc.

See here to unhide known file extension types for Xp: http://www.mediacollege.com/microsof...on-change.html

See here to unhide file extension types for Vista: http://maximumpcguides.com/windows-v...ile-extension/


Tips:

After opening the apk copy the folder called res.
Go to your desktop, or wherever, create a new folder called Images, or whatever.
Open the folder, paste the res in there.
Now you can see what the files look like without opening them, by using thumbnails to see what they are.
Btw, you may also want to add -frame, or -launcher, to the end of the res folder you copy over to keep them separated from others.

Almost Done

So now your theme is done and your ready to make an update.zip for others to install your theme.

I have created a template for you to make your own update.zip. Just download, add the system apps to app, and framework to framework. Zip it up, SIGN IT, TEST IT YOURSELF, and then distribute it!

Empty update.zip template: Http://www.FightForthePits.com/Andro...date_empty.zip

Update script

The update script is in a Unix format, while you do not need linux you must save it in a Unix format. I suggest using Textpad to edit this script and saving it in the Unix format.

Link to Textpad: ftp://download.textpad.com/pub/textpad5.2/txpeng520.exe

Final Notes:

If anyone has any questions please try asking for help in this thread before emailing me for help Usually I will respond to questions in this forum.

I hope this Tutorial has been helpful. I will add on to it as needed.

Any questions can be directed to me at Stericson.G1@gmail.com

Stericson

Links of interest:

Using ADB: http://code.google.com/android/reference/adb.html

_________________
HTC DESIRE STOCK W / 2.2 Official HTC FroYo Sense


HTC G1 U.S.A ROOTED
CM 6.0.0
RADIO 2.22.23.02
SPL 1.33.2005


***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: ANDROID THEMES!!
PostPosted: Wed May 27, 2009 1:04 pm 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 3964
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 4529
nessuno che c prova?? :(((

_________________
HTC DESIRE STOCK W / 2.2 Official HTC FroYo Sense


HTC G1 U.S.A ROOTED
CM 6.0.0
RADIO 2.22.23.02
SPL 1.33.2005


***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: ANDROID THEMES!!
PostPosted: Thu May 28, 2009 2:20 pm 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 3964
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 4529
mmmh m sembra strano che barban o verix nn abbiano provato però!! :D

_________________
HTC DESIRE STOCK W / 2.2 Official HTC FroYo Sense


HTC G1 U.S.A ROOTED
CM 6.0.0
RADIO 2.22.23.02
SPL 1.33.2005


***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: ANDROID THEMES!!
PostPosted: Mon Jun 01, 2009 8:53 am 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 3964
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 4529
Ho provato il tema x thedudes Aero plus ***URLs are hidden from guests, please register and login to view the hyperlink*** e devo dire che è veramente carino!è però problematica la batteria che non si riesce a capire a quanto sta data la minima differenza di "tacche" e di colore...postate qua i link verso altri temi se ne siete in possesso!! ;)

_________________
HTC DESIRE STOCK W / 2.2 Official HTC FroYo Sense


HTC G1 U.S.A ROOTED
CM 6.0.0
RADIO 2.22.23.02
SPL 1.33.2005


***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: ANDROID THEMES!!
PostPosted: Sat Jun 06, 2009 10:59 am 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 3964
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 4529
Ragazzi c'è un modo x fare l'update solo delle icone??o per cambiare la barra del desktop di android senza cambiare tema??

_________________
HTC DESIRE STOCK W / 2.2 Official HTC FroYo Sense


HTC G1 U.S.A ROOTED
CM 6.0.0
RADIO 2.22.23.02
SPL 1.33.2005


***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: ANDROID THEMES!!
PostPosted: Fri Jun 26, 2009 11:58 am 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 3964
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 4529
questo procedimento sembra + corto ma sinceramente nn l'ho capito :S :S :S

***URLs are hidden from guests, please register and login to view the hyperlink***

_________________
HTC DESIRE STOCK W / 2.2 Official HTC FroYo Sense


HTC G1 U.S.A ROOTED
CM 6.0.0
RADIO 2.22.23.02
SPL 1.33.2005


***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: ANDROID THEMES!!
PostPosted: Fri Jun 26, 2009 7:16 pm 
Offline
User avatar

Joined: Sat May 09, 2009 9:07 am
Posts: 24
Cellulare Android: HTC Dream
Operatore: 3
Punti Android: 26
Bella bella, bella un pazzo.. cmq eccomi a casa alfine, immagino che una buona idea di partenza sia studiarci il post che hai linkato qui sopra. Cmq visto l orario e visto che la mia sig ra e sulla porta ormai devo posticipare il tutto a quando si addormira.. quindi piu tardi se nn crollo do un occhio se ci capisco qualcosa ti posto il mio msn in pm e se sei sveglio ne parliamo altrimenti facciamo il punto nella mattinata... bella!!!!

_________________
HTC G1 Dream, Cyanogen's Mo


Top
 Profile  
 
 Post subject: Re: ANDROID THEMES!!
PostPosted: Fri Jun 26, 2009 7:37 pm 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 3964
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 4529
ook! bella!! :mrgreen: :mrgreen:

_________________
HTC DESIRE STOCK W / 2.2 Official HTC FroYo Sense


HTC G1 U.S.A ROOTED
CM 6.0.0
RADIO 2.22.23.02
SPL 1.33.2005


***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

All trademarks and logos used in this site are of properties of their respective owners.