yashsingh1/xdaforums huggingface dataset:
[Android Themes] newellj79:
I'm trying to convert the paid PCB blue theme. I posted a log a page or two because I was having trouble. I did run it as administrator as suggested but I still end up with the original apk in the output folder. I was wondering if anyone else has ideas or have tried this theme. I'm on kit Kat so not sure if that makes a difference. Omni to be specific.

edit... most recent log...

Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: com.teambroccoli.theme.pcbblue-2\smali\sg\ruqqq\theme\SampleTheme\BuildConfig.smali (Access is denied)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:60)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

at brut.androlib.Androlib.build(Androlib.java:284)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

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

Caused by: java.io.FileNotFoundException: com.teambroccoli.theme.pcbblue-2\smali\sg\ruqqq\theme\SampleTheme\BuildConfig.smali (Access is denied)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(Unknown Source)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:67)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

... 7 more

edit #2... actually this is the new log with the all in one tool (2.0?) that i just found...

Exception in thread "main" java.lang.NullPointerException

at brut.directory.FileDirectory.loadAll(FileDirectory.java:92)

at brut.directory.FileDirectory.loadFiles(FileDirectory.java:75)

at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:39)

at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:47)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

at brut.androlib.Androlib.build(Androlib.java:284)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

at brut.apktool.Main.main(Main.java:88)
[Android Themes] red3razor:
OK cool. I looked all over for the 2.0, but I see its now the all-in-one :)

---------- Post added at 04:34 PM ---------- Previous post was at 03:42 PM ----------

@ Madaditya -- since I used the older v1.1, is it possible I may have lost out on some themeing elements that would have ported with v2.0? i.e. my gmail app doesn't seem as themed as I remember using huewhite4.4 with CM's theme manager. Though I do know not all theme elements have caught with 4.4 yet. So would 2.0 have ported over more theme elements?
[Android Themes] Madaditya:
I just don't have that theme to help you out

Might be some java problem?

Didn't change code relating to porting theme v2

It jus supports touchwiz partially,its merged in one tool and a bit code optimized

Did you try porting with both versions of the tool?

Need to rename stuff in mipmap-*dpi and xml redirections in working directory for theming gmail
[Android Themes] hellDr0id:
same problem i tried to port Reborn , Mianogen etc etc but every time end up with the original apk in the output folder ...

Log

Exception in thread "main" java.lang.NullPointerException

at brut.directory.FileDirectory.loadAll(FileDirectory.java:92)

at brut.directory.FileDirectory.loadFiles(FileDirectory.java:75)

at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:39)

at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:47)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

at brut.androlib.Androlib.build(Androlib.java:284)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

at brut.apktool.Main.main(Main.java:88)
[Android Themes] jgrimberg1979:
I really want to get this to work, so bad! I would have so much fun porting themes, but every time i try and port a theme i basically end up with pretty much the original apk in the output folder. Here is my log. I have tried several themes and i get similar logs

Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: Rainbow_v1.0.5.0\smali\sg\ruqqq\theme\SampleTheme\BuildConfig.smali (Access is denied)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:60)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

at brut.androlib.Androlib.build(Androlib.java:284)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

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

Caused by: java.io.FileNotFoundException: Rainbow_v1.0.5.0\smali\sg\ruqqq\theme\SampleTheme\BuildConfig.smali (Access is denied)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(Unknown Source)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:67)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

... 7 more

edit. this is what my log is showing now

Exception in thread "main" java.lang.NullPointerException

at brut.directory.FileDirectory.loadAll(FileDirectory.java:92)

at brut.directory.FileDirectory.loadFiles(FileDirectory.java:75)

at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:39)

at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:47)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

at brut.androlib.Androlib.build(Androlib.java:284)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

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

Please help
[Android Themes] Madaditya:
Ok now thats realy wierd...

Many people facing the issue.

I'll try with Mianogen for eg and see what's the problem.

1.Tell me if you followed everything from the OP? Mainly stuff related to Java?

2.What is the system config?

3.Do you have jdk installed.

4.And while in portCx ,press ctrl+c (this will break the execution)

And type 'where java'

Tellme the output

PS: Output folder will always have the same name apk as in PlaceApkHere :/

Did you Try installing that Apk?? Atleast
[Android Themes] jgrimberg1979:
I finally figured it out.

I have both jdk7 and jre7 installed. Originally I had my path in environment variables to C:\Program Files\Java\jre7\bin, so changing it to jdk was the key

1. Changed Path to C:\Program Files\Java\jdk1.7.0_45\bin

2. Set up new environment variable called JAVA_HOME and set value to C:\Program Files\Java\jdk1.7.0_45

Also i had the tool installed on root (c:\) and i was still having issues so when i removed it from c:\ and installed it elsewhere i was no longer having issues.

I hope this helps those who are having issues.

I am running windows 8.1 64bit for those of you wondering

OP - This tool rocks! I have ported several themes already and they work great. Havent had a single error yet!
[Android Themes] Madaditya:
Thats Cool!

I'll link this post to the OP.Should help people :thumbup:

Btw i had come up with a MiniPortCx in that time,with no Java required and needs more of manual work...but wont be required

[MENTION=3431590]newellj79[/MENTION] and [MENTION=3509058]helldroid[/MENTION] - try the above post
[Android Themes] rohankleo:
MIUI V5 Porting Problem

I AM Getting Problems In Porting The MIUI V5 Holo Blue Theme.......It s Giving Errors In The Apktool Text File...There Is An Output Bt Unsupported By The Xtheme Engine...CAn You Please Help?I Have JDK 7 Installed And I AM Following the Steps...
[Android Themes] Madaditya:
You need to restart porting

And again after it starts,when it says 'Continue?' First time

Go in Working/ThemeName*/values/styles.xml(mostly errors are related to styles.xml)

Note the xml lines from apktool_old.log and delete those lines

And recompile,this time the apktool.log should be empty i.e Without errors

Its just debugging recompilation errors and is easy
[Android Themes] Madaditya:
Update ToolsX_Madaditya v2.1

Updated to

ToolsX_Madaditya v2.1

Changelog v2.1

Added PortCxMini for ones facing Java Issues

Uses the Genius of PortCx,requires no Java but MANUAL De/Recompiling of the Theme

If you like my work Hit Thanx and Rate Good :good:
[Android Themes] rohankleo:
Thanks A Lot Bud!I Ported The Theme Successfully But Now I Am Getting A Problem In Parsing The PAckage?What Should I Do?My Devices DPI Is 240 So It is An Hdpi Device!The Phone Is Xolo Q700 .Stock Rom.Android 4.2.1!
[Android Themes] Madaditya:
Because you recompiled the theme even when apktool.log had errors .

apktool.log should be empty when asked to look for it
[Android Themes] DieterHolvoet:
Awesome script, works like a charm! I've already ported like 10 themes, and I regularly get the same error message so I think it's on the side of the tool:

styles.xml:188: error: Error: Dimension types not allowed (at 'android:textUnderlineColor' with value '16.0dip').

The problem here is that android:textUnderlineColor gets the same value as android:thumbOffset and android:textUnderlineThickness.

It should be a color instead...
[Android Themes] Madaditya:
That is the purpose of this pause in the script

If you are recompiling for the Second time \n and encountered errors during last recompile with logs in /tmp/apktool_old.log\n
Deleting/Modify that particular line/xml and dont leave empty lines in the xml!
I'll wait for you to make necessary Changes...

After editing,Press ENTER on this script..'

at this point go to styles.xml and remove the line(or Modify if you know about style definitions) which gives you error i.e line 188

and then continue on the script ;)

And,Thanx for the word :)
[Android Themes] DieterHolvoet:
I know, I already did that but I just think it's a bug in the porting process so I thought I'd let you know :)
[Android Themes] txtmikhail:
Here is my error log.. and the theme with original apk..

Theme

https://play.google.com/store/apps/details?id=jatx2wne.theme.azuro_free&hl=en

Apk

https://www.dropbox.com/s/iundlqkq4fyiir6/Azuro_free .apk
[Android Themes] Madaditya:
Oops i typed the reply yesterday but forgo to press Send xD

Fine

C:\Users\Mikhail\Downloads\1\Xposes Themer\ToolsX_Madaditya_v2.1\ToolsX_Madaditya\[COLOR="Red"]Working\Azuro_free\res\values\styles.xml:314[/COLOR]: error: Error retrieving parent for item: No resource found that matches the given name '[COLOR="red"]@android:style/TextAppearance.StatusBar[/COLOR]'.

C:\Users\Mikhail\Downloads\1\Xposes Themer\ToolsX_Madaditya_v2.1\ToolsX_Madaditya\Working\Azuro_free\res\values\styles.xml:319: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.

C:\Users\Mikhail\Downloads\1\Xposes Themer\ToolsX_Madaditya_v2.1\ToolsX_Madaditya\Working\Azuro_free\res\values\styles.xml:324: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.

Notice that line no 314,319 and 324 i.e lines which contain @android:style/TextAppearance.StatusBar cause errors while recompiling.

So Start porting the theme from start,when tool asks you to refer apktool_old.log and make changes(READ THE SCRIPT!), go in Working/<Theme>/res/values/styles.xml and remove these line,without leaving empty lines

and press enter on the script.This will work
[Android Themes] txtmikhail:
I get that errors are on lines 314,319, and 324.. and how to to get to styles.xml... My problem is how to fix it? If i remove these lines i get more errors so i must be doing something wrong. I also dont see .. Im i suppose to type that in?

Sent From Samsung Galaxy Note 10.1 [N8013]
[Android Themes] wmas:
thanks for the app Madaditya, nice work :D

if u dont mind me asking will portcx support touchwiz contacts/phone theme-ing near future?
[Android Themes] Madaditya:
I cannot give an explaination better than this :/ Re-Read my post!

Sometimes It becomes tough to explain same things again and again

Only if touchwiz users like you help me test and with some redirections if possible ;)

I dont own touchwiz device tough
[Android Themes] wmas:
help you? why not? xD

but i dont know if it works for me, it will work for all tw users because my contacts/phone apk is modded :P
[Android Themes] Madaditya:
Wont really matter

Port any theme,apply it and compare it with screenshots of original Cm theme

And show me what not got themed on your touchwiz device via screenshots.:good:
[Android Themes] pierx:
If you also add the contacts redirection into SecContacts.xml. I also include some generic code in those packages ;)
[Android Themes] Madaditya:
Do you have the generic xml from Contacts?Just link me

I can of course add them

framework and systemui i am already using the ones from your generic redirections
[Android Themes] txtmikhail:
What is this a Quiz? I need help..and dont know anything about xml.. If u cant help or just dont want to than just tell me.. Im sure i can find someone else to help me.. I been trying this ALL Day with NO success .. when i remove these lines YOU quoted i get no errors in the LOG but when i install the apk i get a parse error...
[Android Themes] pierx:
It's already available in my AOSP theme.

I did add most of generic code to most of touchwiz stock apps. Feel free to add theme.
[Android Themes] Madaditya:
You didnt find styles.xml even when i said /working/<Theme>/res/values/Styles.xml :confused: then how do you edit lines 319...

It wont work on some themes as quoted in the OP

Edit: This time Delete Styles.xml entirely,Continue on the Script and try that theme

Report If it works.

Also Xtheme Dosent Support Kitkat yet,hope you know that if testing on Nexus5

Do you have a file for that? That'll make stuff easy :good:
[Android Themes] pierx:
Here you go :)

https://dl.dropboxusercontent.com/u/26457722/xtheme/xml.zip
[Android Themes] wmas:
Hey Madaditya, ive ported this theme https://play.google.com/store/apps/details?id=com.lex.theme.circle&hl=en

then this is the result i get http://imgur.com/a/xWSLp#0

hope this helps :D
[Android Themes] Madaditya:
Firstly,Thanks for the detailed work.

Mostly all where the words dont get themed,am helpless because that depends on Styles.xml whose theming isn't supported by Xtheme Engine.

It will work only if Xtheme Engine gets updated.

Still try this Circle Touchwiz Theme by me https://app.box.com/s/b4860z9nvhu87i15i23f.
[Android Themes] wmas:
wow, this is much better than what ive ported xD

even the settings layout becomes exactly like in original theme excluding the ON/OFF words xD

and u managed to fix the blue lines (lines in contact list are invisible though but that is fine) :D

can u teach me how u do this? or u will include this in future portcx versions?? :D
[Android Themes] Madaditya:
Lol,So this works Huh?

I'll Include in next PortCx versions,am on it. I needed a confirmation if it works ;)

Wait for the update...:D
[Android Themes] txtmikhail:
I did Find styles.xml and the lines with the errors but i didnt know what exactly needed to be edited or removed..When i got to messing around with the line i would get more errors.. I guess i wasnt editing the line correctly. This time I delete the Styles.xml entirely this time and Got NO ERRORS but again when i install the apk i get a parse error.. Yes i have a nexus 5 but other xtheme themes i used work and i never got a parse error when installing them... The xtheme themes I have tried might not theme every icon but must things get theme.. Could you please just give it a try for me.. Here is the original CM10 Apk

APK

https://www.dropbox.com/s/iundlqkq4fyiir6/Azuro_free .apk
[Android Themes] Madaditya:
Try this https://app.box.com/s/0n1hwfr5k1sj345d95m4
[Android Themes] Seanbest:
Bandwidth exceeded... ?
[Android Themes] txtmikhail:
Bandwidth exceeded.. Cant download
[Android Themes] Computoncio:
Can anybody share or pm me with the link to download ToolsX_Madaditya_v2.1.zip

Bandwidth exceeded in box.com :crying:
[Android Themes] txtmikhail:
Deleted Link
[Android Themes] Computoncio:
Thanks mate.

Phone: Samsung Galaxy SII - GT-I9100

Kernel: Dorimanx kernel v10.43v51-mv3

1st ROM : SlimSaber 4.4.2 Maliv3 by fusionjack build of 20131221 (Online)

2nd ROM :

MODEM: Modem+RIL - XXLS8

MODS: Partition Fix, Hue Blue v4.4 by Kroz :good:
[Android Themes] hermz1337:
Could someone kindly provide a mirror for the framework-res.apk posted in OP, bandwidth exceeded on the box link.. I will reciprocate by then hosting it on my own site for others to download. Much appreciated! Thanks!

EDIT: I am at a loss, no matter what I do, I always get "There is a problem parsing the package" when installing the output APK, meanwhile i receive no errors in apktool.log (the log is blank), i have an LG G2 using AEON v3 rom (LG UI rom) and have attempted to port several different themes using my framework-res.apk, and have also used an framework-res.apk from my AOSP Galaxy S3.. I have also tried deleting the styles.xml even though i receive no errors in the log, but i get the same result.

I dont know if this may be related but during my first attempts i would receive access denied errors in apktool.log for the smaling files.. to resolve this i just changed the permissions on all folders/files in the working directory to full control for 'everyone' user, after that i would receive no errors in apktool.log, but now i just get the parsing error when installing output apk...

forgive me if this has already been addressed, I searched every page for the answer but only found the styles.xml reference and i am just getting a bit frustrated at this point..

I greatly appreciate all your work Madaditya, and I thank you and anyone else who would like to assist me with this issue
[Android Themes] Madaditya:
Fixing the Links,Sorry

I didnt know even Box would Do this,I have 50 Gb Cloud space there So would upload everything there

Please dont mirror,i wanna keep the Download count

but [MENTION=3024360]txtmikhail[/MENTION] thankx for the Emergency Link ;)

Also updating to 2.2 With Added touchwiz redirections

Circle Touchwiz - http://d-h.st/7EZ

Azuro Xtheme - http://d-h.st/4X3

i'll update this post as my files get updated :p
[Android Themes] Ticklefish:
I used to get bandwidth exceeded when I kept my mods and tools in Box and in DropBox. I moved to Mediafire about three years ago and had no such problem again..
[Android Themes] txtmikhail:
For the Azuro theme.. I don't get the parse error anymore when installing BUT now i get a FAIL error when applying the theme..
[Android Themes] Madaditya:
I guess needa shift to mediafire or Dev host

But Dev Host a;so deletes a file if has no Downloads for a Month!

So we cant theme this theme,This is one of those themes which FAil to Apply as i said in the OP NOtes.

All the efforts in vain :/
[Android Themes] txtmikhail:
Thanks for trying. .
[Android Themes] Shahzeb5444:
Here is the apktool.log

https://www.dropbox.com/s/kwtcers2hnzep8p/apktool.log

I hv got these errors

Am using note 2 running 4.3 frameworkres.apk

And plz see images attached I don't know what's the problem because my frame work is installed and another modules are running but this showing this every time even after many reboots.

Thank you in advance

And thanks again for this wonderful tool.
[Android Themes] Shahzeb5444:
Picture
[Android Themes] Ticklefish:
Regarding your log, did you install any resource or framework files before you decompiled your SystemUI.apk?
[Android Themes] txtmikhail:
I get this error myself.. just touch somewhere on the screen NOT the error message and it will go away.. than install theme
[Android Themes] Shahzeb5444:
Is system ui needs to be decompiled because I just put the frmwrkres.apk and the theme apk to be converted in respective folders

If am doing something wrong then plz guide me some easy steps.

---------- Post added at 02:02 PM ---------- Previous post was at 02:01 PM ----------

Ok I will try...
[Android Themes] puneet001:
Awesome .......Awesome......Awesome .......Awesome......Awesome .......Awesome......Awesome .......Awesome......

Awesome .......Awesome......Awesome .......Awesome......Awesome .......Awesome......Awesome .......Awesome......

Awesome .......Awesome...... I dont have words for your work this is really something for those with locked bootloader

and want to taste CM theme engine
[Android Themes] Shahzeb5444:
guys plz help me I really want to try it.

---------- Post added at 08:28 PM ---------- Previous post was at 07:45 PM ----------

Whats the role of systemui.apk in this plz tell me.
[Android Themes] Shahzeb5444:
Thank you very much finally I ported a theme ......its great

---------- Post added at 10:03 PM ---------- Previous post was at 10:03 PM ----------

Ignore my above comment...
[Android Themes] StaticMaal:
Which theme was that? Can you post the apk and a screen? For Note II 4.3 right are you running DN3 rom?
[Android Themes] dully79:
You can use my Sony redirections for your tool if you want.;)
[Android Themes] hellDr0id:
can someone please port https://play.google.com/store/apps/details?id=com.Primokorn.theme.ReBorn&hl=en

this theme for TouchWiz plss :)

i am using Note 2 with Pheonix Rom

many many thanks in advance :))
[Android Themes] AGLtech:
log

/bin/apktool: line 2: java: command not found

That is what my log says every time.
[Android Themes] Lal Ayer:
Thanku for guiding
[Android Themes] tawidhiphoper:
went through the whole process ending up with no error. but the theme apk of output directory wasn't choosable from xtheme engine., help plzz
[Android Themes] Pfeffernuss:
Same here. After trying "all" the path/java/jdk tips :crying:
[Android Themes] Madaditya:
Thats what I could never figure out.

Can u try on your friends Pc with other os?

Or try installing JDK and JSE both

Try with paths of both.

Don't keep spacea in your apk name.

One which u place in placeapkhere
[Android Themes] hasan217:
Hey your tool worked.. It ported a theme. Though it didn't work. I used this theme: https://play.google.com/store/apps/details?id=cm9.theme.TransparentCM

It shows up in the list of themes and i applied it as well. But nothing got themed.
[Android Themes] Jeik:
Hello guys.

I wanted to port the xperia theme,but my pc wont compile any apk.I installed all of the required programs and drivers,and set the permission,but my laptop will not compile the apk.Can someone please try to port it?I am trying to port the LovinsXperia theme.The port on this thread:http://xdaforums.com/showthread.php?t=2516001 is broken(nothing applies successfully on 4.2 AOSP)
[Android Themes] __Michael__:
delete
[Android Themes] txtmikhail:
A New Xposed app is created that lets you install CM theme right from your device...

This program will soon not be needed... Thanks Madaditya for your hard work...

HK Theme Manager

http://xdaforums.com/showthread.php?t=2602257
[Android Themes] Madaditya:
Try again.No spaces in the Apk name

Wanna try this?

https://app.box.com/s/isirct50p35y99fdkd9u

thats the one i ported logn back,see if works

Thank you for the info.

Glad the work is appreciated :D
[Android Themes] AndroidTerminator:
Hey bro...I am confused as how to work your APP... Do I have to install xposed framework on the COMPUTER or..? cause it step 1 thats what you say... O.o...

I'm confused :s... Sorry for the trouble..but I desperately want to port a couple of themes to my device as I cant put a custom ROM on my s4 mini :( Thx in advance bro
[Android Themes] AndroidTerminator:
To Be More specific...the file path..where do I set the file path to..? If it can be explained in more detail please...??

or in 5 year old terms :p xD
[Android Themes] Madaditya:
What file path?

Run Setup>PortCx

then place apk in PlaceApkHere folder