yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Themes and Apps] funky0308:
What do mean by that "the theme breaks "

As we said many time before - you can't use custom themes on stock ROMs.

You can use them on stock based ROMs like iHackers, monx, JellySlim, RomAur...

And can on Sony stock ROM or [NUT] ROM (that's basically plain, stock ROM only root added or deodexed)
[Xperia Z1 Themes and Apps] Pangkoy08:
You have a wonderful tut bro. I do have a few question?

1. You made mention that we extract the zip from asset then once done recompile it? You mean recompile it like normal recompiled apk?

2. I had tried changing the background of settinga and it work, the only problem is the text. Where do i need to change the code for the text?

Thank you in advance bro.
[Xperia Z1 Themes and Apps] funky0308:
Yeap...just write

apktool d android.zip for decompile

And

apktool b android.zip.out to recompile

You have text settings in style.xml - if you are using dark background you have to set text color to white, of course.
[Xperia Z1 Themes and Apps] Pangkoy08:
I tried to extract the zip file but once extracted I can't read the code. Im using Note++ to write the code. What am I missing?
[Xperia Z1 Themes and Apps] funky0308:
I just said that, you must decompile zip file.

You can't extract files from zip, zip and apk are both compression files..
[Xperia Z1 Themes and Apps] HelixDNA:
if i want change status bar color?

what zip file should i Extract
[Xperia Z1 Themes and Apps] funky0308:
SystemUI.zip, also, check colors in uxp.zip asset too.
[Xperia Z1 Themes and Apps] aungmyothein:
Great,but does not work with Xperia Z 4.3(10.4.B.0.569), I can install and apply themes,nothing's change but wallpaper and lockscreen:confused:
[Xperia Z1 Themes and Apps] funky0308:
Read OP

(or in any themes thread)

It won't work on stock ROM, just stock based ROM.
[Xperia Z1 Themes and Apps] aungmyothein:
:rolleyes: Already read this bro.I need new themes and testing everything,how can i mod theme for stock rom??
[Xperia Z1 Themes and Apps] funky0308:
You can't.

Why would we build themes specialty for custom ROMs if there's way to build them for all ROMs...?
[Xperia Z1 Themes and Apps] Allen Hu:
Uhhmm...This is strange....

So The theme will totally be unusable if we decompile the APK currently?

I tried DeCompiling and then Recompiling TriFlat, and then without changing anything, recompiling it again...

BANG, only wallpaper changes...:eek:
[Xperia Z1 Themes and Apps] funky0308:
Hehe...yeah...

If you decompile and recompile theme without any change - it won't work.

To be precise, it won't work on stock ROM.

If you are deodexed and rooted with SuperUser it'll work.
[Xperia Z1 Themes and Apps] Allen Hu:
How about trying to change the png's in the apk without decompiling it?

Maybe it'll work...But won't be able to change theme name and version...:rolleyes:
[Xperia Z1 Themes and Apps] funky0308:
Probably won't...

Even you changed only one png you'll have to sign app again.
[Xperia Z1 Themes and Apps] tiementuinstra:
Can someone make me a stock android theme (I want to use it with the google now launcher) for the xperia z1? I am not at modding and rooting.
[Xperia Z1 Themes and Apps] funky0308:
You need theme for Google launcher?

Don't know who is working on G launcher, I don't...

Sorry...
[Xperia Z1 Themes and Apps] devilmaycry2020:
how to change text color ?

p/s : ok i've got it
[Xperia Z1 Themes and Apps] Random Username:
Hello,

I have trouble getting the systemui part of my theme to work. It always shows the default icons. Could someone help me with that?

Apart from that, my first theme works fine. Thanks for this guide :)

Regards,

Random
[Xperia Z1 Themes and Apps] aungmyothein:
I'm using stock rom,if u turn to superuser mode will it work?

thanks
[Xperia Z1 Themes and Apps] funky0308:
You have to be rooted first, of course and then install superuser mod.

Deodexed ROM is also important thing, some users said it's working on odexed but for me - it won't work on odexed.
[Xperia Z1 Themes and Apps] nevadasaga:
Good tutor sir. Decompiled my theme, and when go to assests only A, B, C, D(example). My question is "How to add another assest, like E, F, G?" in this case for Icon pack. Thanks. I use this for theming theme for Xperia SP 4.3.
[Xperia Z1 Themes and Apps] funky0308:
To add new asset in theme or to theme new app is very simple.

You just need to add informations from app you wanna add (decompile app and check for all information in aok android.manifest.xml) to theme android.manifest.xml.

And of course to add that apk in assets folder.

Decompile one if my older themes (blue KitKat 2.0) and you'll see on example how I add assets for phone modif.

Theme changes call button to blue color...

Best way to learn is to use reverse engineering...

You have plenty themes to torture and learn ;)

Use mine -I'm OK with it but, please, if you are planing to release something based on my or other devs work - give credits, that's cool thing to do ;)
[Xperia Z1 Themes and Apps] nevadasaga:
Really sorry sir, but i cannot still get you. Already give addition to AndoridManifest.xml

Example : i want to make a icon change for 9gag.

>> com.ninegag.android.app.apk

...Checking and removing previous project folder

The directory name is invalid.

...Decompiling com.ninegag.android.app.apk

Exception in thread "main" java.lang.NullPointerException

at brut.util.OS.rmdir(OS.java:33)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:73)

at brut.apktool.Main.cmdDecode(Main.java:128)

at brut.apktool.Main.main(Main.java:65)

an there is error...And would you like to add tutorial for adding assets?
[Xperia Z1 Themes and Apps] funky0308:
There's really no need for that tutorial, it's really simple.

Just check how I named other assets in Android Manifest.

For your app, leave only

1. Folder res/drawable-xxhdpi/xhdpi/hdpi/mdpi/nodpi (in each folder leave only icon)

2. Android Manifest

3. Resources.arsc

That's all you need.

If you are working on, let say Conversation.apk and you want to theme some buttons in it - you'll delete everything except that buttons you wanna change.

Manifest and procedures are always same.

Now open Android Manifest.xml and add this:

Important

App you are adding in assets folder MUST be in ZIP format!

If you have xxx.apk, delete all unnecessary files and folders in it (to optimize your theme and reduce final size of theme) and rename it to xxx.zip.

One more thing -

Add that line I just wrote where all other assets are.

Don't add it to the end od Manifest - it'll not work.

It must be somewhere between two statements.
[Xperia Z1 Themes and Apps] nevadasaga:
OK, i get it works. Now, i added much icon into it. such an whatsapp, 9gag, bbm, etc. Compile, and install it but the icon that only changed is Tasks(recently added into my theme), not for the others. How to fix this?
[Xperia Z1 Themes and Apps] funky0308:
Sorry mate but I don't understand you.

What was changed?

If you meant icons in task bar then you probably changed wrong icons.

Check app folders, maybe there's minimap folder with icons or maybe you changed wrong icon - check all files in apk and you'll find what's wrong.
[Xperia Z1 Themes and Apps] asanan1:
thanks :') :good:
[Xperia Z1 Themes and Apps] XPS_93:
I'm not really understand how Xperia themes work, is it possible to simply just add new png's? Or simply delete the png's that I don't want the theme apk to replace the system png's?
[Xperia Z1 Themes and Apps] funky0308:
No...it's not that simple.

You have to add new files, not only png files but also you have to "tell" system where they are and what are their names.

We use public.xml, ids.xml and few other xml files for that...
[Xperia Z1 Themes and Apps] XPS_93:
Hahahah so it is. . . Thanks for your reply, how bout deleting png's? If the xml files couldn't locate the png's in the apk (assuming I removed the png without touching any other elements), will there be any changes in UI or error?
[Xperia Z1 Themes and Apps] shehabskull:
When I decompile com.android.systemUI.apk I got an empty folder!
[Xperia Z1 Themes and Apps] funky0308:
In most cases, system will use it own files from framework.

But that's not good practice or developing "rule" - not well optimized and it's something that may or may not work...
[Xperia Z1 Themes and Apps] funky0308:
Try to install framework and semcgeneric again.

Use AdvancedAPK tool by BDfread.
[Xperia Z1 Themes and Apps] themacman1000:
Before I go and build the theme of my dreams (aka a stock AOSP look), can someone tell me if this will work with the Xperia Z1s on T-Mobile. We're a bit locked down and I'm not sure if it would work.
[Xperia Z1 Themes and Apps] funky0308:
It won't....

Bootloader is not problem but root and inability to patch services.jar are....

So, no, custom theme won't work...
[Xperia Z1 Themes and Apps] niaboc79:
Root is the only problem ;)

I have done a mod who need only root and no more superuser mod :D

Envoyé de mon D6503 en utilisant Tapatalk
[Xperia Z1 Themes and Apps] Alex_Nikolaev:
Hello. Can I use this code in my paid application which i sell via Google Play? Or only for my own use?
[Xperia Z1 Themes and Apps] funky0308:
You can but the question is may you?

I really doubt Google will let you sell modified themes from market...

This is tutorial how to modifie themes, not how to build one from a scratch...
[Xperia Z1 Themes and Apps] Alex_Nikolaev:
Thank you for your answer.

Sorry for this, but I still don't understand why everybody should make their own code when this application only change the images in the phone. I think that the sense of this application only in the images not in the code.

Maybe you know where I can find an example or instruction how to make this app? This app should only change the images in theme.

Thank you!:)
[Xperia Z1 Themes and Apps] gripfly:
[MENTION=4816245]funky0308[/MENTION]

Hi mate;)

I tried to recompile com.sonyericsson.home.zip but cmd gives me an error. I copied the cmd text in to a text file.

Would you take a look at this .txt, please? How can I correct this?

View attachment com.sonyericsson.home.zip.txt

Edit:

Do I need to recompile all data? I put the .png, after compiling the rest, manually in to the .apk and it looks fine.

2. I read about the style.xml for changing the text color but I can't find it?
[Xperia Z1 Themes and Apps] funky0308:
Hmm...can't open that log link..

Use Advanced APKtool by bdfreak, you'll be fine then.

Png file could be added to zip without decompiling but only if you are replacing existing png.

If you want new file then you have to decompile it and add strings/drawables/xxx to xml files inside of the values folder.

For colors you have to decompile com.sonyericsson.uxp.com and edit xml there.

You'll see xml files in values folder colors.xml, style.xml and others...

You'll get it once you decompile it...
[Xperia Z1 Themes and Apps] gripfly:
Ok, I'm gonna do that tomorrow. Thanks for your reply!

I'm giving my best to make a good theme :D
[Xperia Z1 Themes and Apps] funky0308:
Sure mate...

Send me PM if you need anything else ;)
[Xperia Z1 Themes and Apps] Adilson Casula:
[MENTION=4816245]funky0308[/MENTION]

I can't install your "shell" theme here.

C503 - .230

do you know about some error?
[Xperia Z1 Themes and Apps] funky0308:
You add all necessary files in it?

You know that's only empty apk file that should be used for easier creating your theme.

If you add all files in it and you still can't install, download zipsigner from market and sign apk as platform app - that'll help.
[Xperia Z1 Themes and Apps] Adilson Casula:
All files??

I'm trying changing by two process. Using Shell.apk (without add anything) and modding some of that in your package (winter snow to be right) .

The problem is that I can't install any of them, in original status.

Root is ok

Having problems too when signing

by this way

http://xdaforums.com/showpost.php?p=40732310&postcount=1

and this

http://xdaforums.com/showpost.php?p=53483331&postcount=1

i'll try take an working theme from my zl and test again.
[Xperia Z1 Themes and Apps] antonio1475:
Just writing down my progress in case it's useful to anyone:

I've been modding the Triflat theme to change the navbar and statusbar colors.

Problem: After recompiling, they changed as I wanted, but I lost almost everything else (popup backgrounds, toggles, sliders...). I thought I was recompiling badly.

Solution: (Found in this thread). Install Serajr Xposed module to "patch" services.jar (I have an Xperia Z so I couldn't use the ones posted). Restart and apply modded Triflat. All works as desired.

I'm going to try just changing the (compiled) com.android.systemui.zip in /data/app-skin just for fun. EDIT: Works

Big thanks to anyone who posted here and allowed me to find a solution :)
[Xperia Z1 Themes and Apps] gripfly:
:)

http://xdaforums.com/xperia-z/themes-apps/theme-yamaha-r6-t2807327/post53952855#post53952855
[Xperia Z1 Themes and Apps] netmen5:
i searching for siply dark or dark blue (like isc) theme. Dark background on settings, maxymialize minimalist. i have z1 compact, can anyone helps?
[Xperia Z1 Themes and Apps] funky0308:
Use Xposed module - Holo Themer - to change any app UI to dark and you are almost there.

Finding suitable theme shouldn't be a problem.
[Xperia Z1 Themes and Apps] androidfreak70:
Hi

Can i use the same TUT for Z?:confused:
[Xperia Z1 Themes and Apps] gripfly:
Yes
[Xperia Z1 Themes and Apps] androidfreak70:
[MENTION=4816245]funky0308[/MENTION]

When i try to recompile the renamed zip i get "could not find source" error i apktool :( help please
[Xperia Z1 Themes and Apps] funky0308:
Don't use spaces in naming.

Use simple names like, rename android.zip to andriod.apk.

If you have recompiling problem then you probably screwed something in editing process.

Try to recompile apk without any changes and you'll see where's problem (in apktool or you ;) )
[Xperia Z1 Themes and Apps] androidfreak70:
Thanks for tip buddy :) i'll try and tell whats going on :D

---------- Post added at 10:47 AM ---------- Previous post was at 10:14 AM ----------

Hi

I tried to recompile UNedited android folder and success

But when i put my PNGs and recompile i get could not find sources :(
[Xperia Z1 Themes and Apps] Mikell-72:
Hi dude.

How can I change the color Themes?

;)
[Xperia Z1 Themes and Apps] funky0308:
Check sources then.

If you add semc_bg.png to res/drawable_xxhdpi then you have to add that dramwable (as dramwable) in public.xml.

Make sure you set right id numbers and that must work...
[Xperia Z1 Themes and Apps] niaboc79:
Delete public.xml before to compile.
[Xperia Z1 Themes and Apps] androidfreak70:
(omg its niaboc79! O_o)

I will try that thanks
[Xperia Z1 Themes and Apps] funky0308:
Will public.xml be created automatically?

I always had problems with ids and choosing right one...
[Xperia Z1 Themes and Apps] niaboc79:
You have problems with the id who are in public.xml only if they are used inside smali files which is not our case.

In general all what you are ADDING in different folders (layout, drawable, xml,...) or in xml (ids, bools, arrays,...) is automatically added in public.xml when you are building the apk.

Problems occurs when you are REMOVING things who are already listed inside public.xml

;)
[Xperia Z1 Themes and Apps] funky0308:
Well...problems I had were:

When I'm updating my theme, v1,2,3 I already have "million" lines and IDs and it's quite hard to remember which one I removed last time and which one I added, and because I removed few of them (and didn't use that ID for new item) I don't have all numbers lined in order) - sometimes I can't recompile because I get error - (something about) - id number is too big.

Then I'm trying to find which ID number is skipped...

So I have to investigate should I name id with 1011 (after 1010) or should I continue with 101a. (last four digits)

I hope you understand me...

I really didn't know I could just add PNGs to drawable folder and apktool will add all missing drawables, strings or something else in public.xml - if that works like that, that's awesome...

But I really doubt that could work like that...

I remember that I forgot to add lines in public.xml few times and apktool always returned error...
[Xperia Z1 Themes and Apps] niaboc79:
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 101a 101b 101c 101d 101e 101f 1020...

Always go from 0 to f then increase the left one by 1.

That work like that ;)

I was also loosing time adding manually all id inside public.xml in the past.

In all my themes there is no public.xml in the decompiled folders like that I haven't to think about things added or removed between each test builds.
[Xperia Z1 Themes and Apps] funky0308:
I learned almost everything I know from this man and I'm still learning from him....

Tnx mate, I really appreciate all your help ?

You are awesome...can't wait eXistenZ for Z2...
[Xperia Z1 Themes and Apps] niaboc79:
And I am learning from others everyday :D

This is XDA!
[Xperia Z1 Themes and Apps] Stuart Little:
Nice guide ;)

Sent through my Galaxy Note using Tapatalk 4
[Xperia Z1 Themes and Apps] Swift Seizer:
Theme - Mercedes F1

Hi Everyone I'm new at creating themes but i decided to give it a go. i've spent the last couple of days creating this one hope you like.

https://mega.co.nz/#!VAEmFSoB!-IXeE_E-ZRA2QjGWpZQG89zD_qxuJ4iftv9tuhuJHw4[/URL]
[Xperia Z1 Themes and Apps] Metallijim:
This is what I do, remove public.xml before recompile, but home still fc's on me (z3 launcher)
[Xperia Z1 Themes and Apps] fahaege:
Hey Guys,

do I need root for installing the apk. ?

greets, fahaege :)
[Xperia Z1 Themes and Apps] funky0308:
Which apk?

If you wanna use custom themes yes, you have to root device but not to install theme, you can install theme without root but you need superuser MOD to see some system changes theme will do...

funky0308@xda developers
[Xperia Z1 Themes and Apps] tomascus:
I'm having issues trying to implement a custom action bar in styles.xml of the application - the action bar simply refuses to show up.

When I manually decompile the app and modify the action bar it works fine, only when I try create it via an Xperia theme it does not work. Any idea?
[Xperia Z1 Themes and Apps] dragonkiller96:
confused.

im not that good with apps and theming i cant recompile them only decomiple them.

im a massive Cod fan and really want a theme based on the new COD : Advanced Warfare.

or even Watchdogs. i tried and failed because it wont parse the apk.

i tried the signing but it didnt work. i might need a better tutorial on how to decompile and recompile apks. all the tutorials i dont understand how to get them working properlly.
[Xperia Z1 Themes and Apps] funky0308:
I assure you - tutorials are fine.

You have few tutorials now, I had to learn in a hard way - by myself.

Then I wrote first tutorial (for Xperia themes) and both tutorials are still ok.

Why can't you recompile apk file, I don't know.

That's not theming and doesn't have anything with theming...

That's only one of many steps...

Check apktool, framework version, java path and whole environment.

Many of you never worked with apktool amd apk files, don't understand what's xml, 9.png, assets or signing...

Learn step by step and it'll be easier...

Don't know...post screenshoot here (of errors) and we'll tey to help you.
[Xperia Z1 Themes and Apps] :
android.zip problem

Hi,

I tried to modify a theme following the instructions on this thread http://xdaforums.com/show....php?t=2582780. However changes was only successful at com.android.systemui.zip. I cant seem to apply any modifications on android.zip. Could you teach me how make changes on android.zip and make them work?

Do i need to sign every app after recompiling?

do i need to rename android.zip to android.apk? becuase if dont decompile android.apk with apk tool i cant view the xml files.
[Xperia Z1 Themes and Apps] unmaskedfalesh:
See if u use the custom theme in a rooted device then only u can change other elements...if u use on stock device only some elements get changed.. And yes u need to sign the theme apk not evry assets..only main theme apk that u compile at the end..and also u need to rename to apk in order to decompile..and edit the contents..

---------- Post added at 11:18 PM ---------- Previous post was at 11:14 PM ----------

I wil pm u the cod and watch dogs theme..for stock firmware..give me some time..if u need any help plz pm me or post here as op says..
[Xperia Z1 Themes and Apps] :
Yeah my device is not rooted so it might be it. But how come the themes that i download from the playstore or the unmodified themes works perfectly? all the assets really makes changes.
[Xperia Z1 Themes and Apps] unmaskedfalesh:
Those themes are officially licensed by sony...the developers such as The Green and sony themselves sign the theme with the licenced key..which we don't have access...
[Xperia Z1 Themes and Apps] SXUsr:
Somethings simply cant be themed this way, it's the same limitation as with the CM Theme Chooser.

There are enough guides out there already, some better than others. [Guide/Reference] The Basic APK & Theming Thread...
[Xperia Z1 Themes and Apps] ipuzz:
Will try.. ?
[Xperia Z1 Themes and Apps] funky0308:
This is tut for 4.3 themes.

Many things has been changed you should use latest tutorial.

But if you learned to edit and build 4.3 themes you should know how to implement knowledge here.

As someone already said - there are new tutorial.

I just don't have time to write new tutorial...
[Xperia Z1 Themes and Apps] silverhat:
I like it
[Xperia Z1 Themes and Apps] funky0308:
Actually you don't.

You want to achieve tenth post because of ten post rule...but OK. :P
[Xperia Z1 Themes and Apps] |>/\nte:
Is there any way to change the stock notification led color? (the one that's set by the theme, not talking about the xperia sp's setting).
[Xperia Z1 Themes and Apps] pRakitik:
Such a Great work man... Thanks :)
[Xperia Z1 Themes and Apps] funky0308:
Hehe...exactly...

But it's not possible to remove that from the theme.

It's systemUI part and it can be removed by digging into the smali files.

Sent from my Z1
[Xperia Z1 Themes and Apps] funky0308:
BTW, [MENTION=599722]niaboc79[/MENTION], please find some time to built one eXistenZ for Z1.

I almost forgot how to flash without your ROMs... ;)

We desperately need rooted and deodexed 4.3 with all your goodies....

I'm sure you could use some png's from XZ and give us best/better experience on Z1...

Tnx mate

Sent from my Z1
[Xperia Z1 Themes and Apps] funky0308:
I must admit I'm kinda disappointed with Z1 threads...

Only few guys are trying to build something here and all others just whining...

Come on guys, make something...

If someone could provide few icons (back, home, recents) I'll make one theme...

I just can't find enough free time to draw that (Have a little boy) and obviously, no one won't do it.

If you have something interesting, send me PM and png's and I'll make it.

Sent from my Z1
[Xperia Z1 Themes and Apps] Duvel999:
I use Tickle my Android.. ;)

http://xdaforums.com/showthread.php?t=1633333

Tried it?
[Xperia Z1 Themes and Apps] funky0308:
That's great app, yeah...but if you are rooted.

The purpose of this thread is to create themes that will work on stock, unrooted device.

To be able to install app like any other apk file...

O.K, we must use Zipsigner but that's not such a big deal...

Tnx for this tip - this is great app and it's very easy to work in it...

Sent from my Z1
[Xperia Z1 Themes and Apps] nielneal:
i have gone through the theme apks and found out that the application coloring is done by the android.zip and status bar coloring is done with com.android.systemui 99% am sure but i dont know how to extract the resource.arsc from the zip file and decompile it;-( though i maybe wrong because i have seen all the smali files its not connected with the coloring of the themes..

can anyone help me out with the decompiling procedure of the resource.arsc which is inside the zip file

thanks in advance
[Xperia Z1 Themes and Apps] funky0308:
Decompile zip file

Sent from my Z1