yashsingh1/xdaforums huggingface dataset:
[Android Themes] HoScHaKaL:
i get this error whats problem ?

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: archive is not a ZIP archive
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
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: brut.directory.DirectoryException: java.util.zip.ZipException: archive is not a ZIP archive
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:54)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:37)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
Caused by: java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory32(ZipFile.java:717)
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:672)
at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:406)
at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:206)
at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:182)
at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:143)
at brut.directory.ZipExtFile.<init>(ZipExtFile.java:28)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:52)
... 7 more
[Android Themes] Madaditya:
Seems that it wasn't an apk it was actually working on,Did you clear the PlaceApkHere Folder and then placed the apk?

what theme?
[Android Themes] HoScHaKaL:
thomassafca 's CM10.2 CM9 GALAXY S4 TW theme

https://play.google.com/store/apps/details?id=com.thomassafca.theme.touchwiz

m porting https://play.google.com/store/apps/details?id=com.thomassafca.theme.touchwiz.five.free succesfully but dont know why other not work
[Android Themes] Madaditya:
I Ported the first one without any errors

Check screenie,theme on my Xperia Device

I'll be able to share only if we have the dev's permissions,else not

The problem might be with framework,

Try with cynogenmod based framework and see if it works
[Android Themes] johnblundon:
This is so awesome and something I have been waiting for for a long time! VERY COOL, thanks so much.

One problem I'm having...

Any Idea what this might be? I added the java path and stuff...

I'd really like to port my 5ubz3r0 theme and try it out. Really hope you can help :)

Thanks again!
[Android Themes] Madaditya:
Wierd,

Did you play with any of the files in bin,except resources and Javapath?

Redownload the tool and try
[Android Themes] johnblundon:
nope just the java path... I'll download again.
[Android Themes] Madaditya:
May be yours is a x64 machine with windows Xp,guess it has compatibility issues

Anyways,u have your theme :D:thumbup:
[Android Themes] sheshuvadrevu:
U Rock

Working Absolutely Fine Bro! No words to praise... :good:
[Android Themes] SilverMist1:
and i want to ask you something, i am trying to change the color of the pop up menus like the one that pops up when you hold the power button with the options of shut down and reboot. or the menu that pops up when you press menu button. but i couldnt find how. can you help me? by the way i am using cm 10.2
[Android Themes] Madaditya:
They are dialogues boxes

In themed apk the name should be framework_res_dialogue*.png

In normal system apk's,they are dialogue*.png

While copying dialogue boxes from some other apk,make sure that both source and destination apks are 'decompiled' and not just extracted

Else if .9.png exits,it'll give you errors :thumbup:
[Android Themes] dully79:
How about an option to select which apk to to port and a choice whether we want to backup the apk's.

Also it would be nice if the files that were created/copied etc weren't requesting administrators permission.:)
[Android Themes] Madaditya:
I had the same on my mind for next update!

display list of apks and allow user to choose

the copy permissions are asked coz it dosen't wanna replace old backups,coz the first backup of an apk is original,later the apk is played and may get corrupted so replacing the old backup with new apk in PlaceApkHere is left to users

well,i got a workaround and ways to make it smart! :cool:

thanx for the suggestions :good:

also on the to do list is,adding support to touchwiz as well,most cm themes dont work there completely

collecting those odd png names,any help ?
[Android Themes] dully79:
From my days with the S2 most touchwiz images were framework images with a tw prefix.

"btn_small" became "tw_btn_small".

You could be lazy and just add all the framework images with a tw prefix and hope for the best.;)

I dont know what they are like these days. pier10 is the Samsung branch of XThemes.

When i created Simplicity i was hoping that it could be used as a base, but their are too many resources from different roms to add, its too time consuming.

We need an engine that doesnt require redirections. Instead you place your images with the package name prefix in the theme zip and the engine reads and applies the theme resources.

Im going to learn java and create it. Give me a couple of years :D

---------- Post added at 06:55 PM ---------- Previous post was at 06:52 PM ----------

I can help you out with Sony redirections.
[Android Themes] Madaditya:
Thats Cool! All the best mate

Samsung does odd stuff

Sure,i'll contact when i need help :)
[Android Themes] Negan:
[MENTION=4768354]Madaditya[/MENTION]

We were discussing the possibility of porting touchwiz themes to make them compatible with xthemes over on google plus. Did you ever look at the tw theme I made and sent you? Just curious as this would be an amazing breakthrough if touchwiz themes would work. I have seen a few people attempt to make a tw theme but unfortunately they were very incomplete. I would love to get into this and would much rather make xposed themes fir tw then just regular touchwiz themes the old fassion way

sent from my JEDI ELITE Note 3

respect, teach, coach, have fun and say thanks!
[Android Themes] :
hey thanks for your guide!!!

hey dude thanks it works like a charm. it is super easy to work with. keep up the goo work!!
[Android Themes] Madaditya:
Yeah bro,am gonna look into it

With your help and few others hopefully we'll make it successfull

For now,got my exams till the end of this month,after that we can work over it

I'll update after my exams :thumbup:

Gald,its cool for you'll :D
[Android Themes] Negan:
Awesome man. Do your thing. School is definitely more important. Im confident we'll make it happen. Just takes a few dedicated people putting their heads together and BAM!

sent from my JEDI ELITE Note 3

respect, teach, coach, have fun and say thanks!
[Android Themes] Madaditya:
Quick Update!

PortCx_Madaditya_v1.2

Changelog v1.2:

Now can add multiple themes to port(No 1 apk restriction)

Made backup optional

Changed PlaceApkHere to PlaceApksHere

Added Working Directory to make things simple

Hit :good: if update is Cool ;)
[Android Themes] dully79:
Nice work mate.

Hope you dont mind, ive put a link in my guide for this thread.
[Android Themes] Madaditya:
Of course not! :highfive:

Next is adding complete support for touchwiz themes! and thats gonna need time :rolleyes:
[Android Themes] dully79:
Thats why i only support AOSP from now on. I spent A LOT of time on Simplicity trying to include support for multiple devices and i got little to no thanks for it.

Ill spend my time elsewhere creating other things. After all this is a hobby and it was feeling like work.:(
[Android Themes] Madaditya:
its a matter of all odd redirections,once we have them i guess it'll be simple

Right said! A hobby feels like a Job! i got exams so near and i'm updating stuff here :p

Affecting my studies :/
[Android Themes] shekinahsmoke:
https://play.google.com/store/apps/details?id=com.AJ.theme.kitkat <<< UPDATED NOV 11th.. CAN SOMEONE DOWNLOAD THE APK and help me port it (wont download to my TW rom)
[Android Themes] will2live:
Any thoughts on what could be going on. I've redownloaded twice already just to play it safe. I have Java installed and the only thing i touched per your instructions was the .JavaPATH. After which I rebooted my comp even and still get an error.
[Android Themes] :
nice update!

nice update, thnx!!
[Android Themes] Madaditya:
Whats your java path?

or open your command prompt(search for cmd and run)

and type

where java

post the output

i've been trying to port it myself,somethings wrong

the apk gets compiled but when applying in Xtheme Engine it fails

Dunno whats the problem.

you can try this,another kitkat themes port

https://app.box.com/s/0lt2r54qpuisacmy4j6i

:D
[Android Themes] will2live:
The install location was the exact same place as you have shown in your screen shot of the OP. That said I just went to cmd prompt and did the where java like you mentioned and it pops up as C:\Windows\System32\java.exe
[Android Themes] shekinahsmoke:
testing .... rebooting...
[Android Themes] Madaditya:
so you defined it in .JavaPath as C:\Windows\System32\ right?

verify java installation here https://www.java.com/en/download/installed.jsp

other apktools like apk multi tool work well?

btw did you test the Touchwiz theme i sent you?
[Android Themes] shekinahsmoke:
my bad.. i didnt test it ... my phone got bonked a bit.. didnt have time on the weekend...

will soon...

BTW.. thanks for this KitKat theme.. it's dooooooooooooooooooope
[Android Themes] will2live:
I just doubled checked it and yeah it is entered as " C:\Windows\System32\ " Also verified Java from the link and it is good to go

As for the other apktools yes I've had them working in the past. Been awhile since I've used them tho as I just got a new comp so they are not installed atm on this comp. Appreciate the help atm but I've gotta run out. When I get back I'll test out the other tools to see if they work. Worse case is I'll uninstall Java and reinstall it and see what I get and report back from there.
[Android Themes] arcticbill:
Hmmm....

I'm in the exact same boat. fresh install of Java on Win 8.1. Where Java yields

Microsoft Windows [Version 6.3.9431]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\ArcticBill>where java
C:\Windows\System32\java.exe

C:\Users\ArcticBill>

I've tried with and without the trailing "\" as well as including the full java.exe and every time I get the same error... :confused:

TIA
[Android Themes] Madaditya:
Just like [MENTION=1596882]will2live[/MENTION] try Using Apktool or similar and see if it works.If it does,I can try for a work-around

Windows 8+ seems to have the issue

Edit: Or try extracting the tool at your system's root like C:\ and then using it
[Android Themes] pinpontbs:
I'm Stuck

My apktool.log is emty and I can install my output apk, but it woudn't show up in XthemeEngine.

Please help me! :crying:
[Android Themes] Madaditya:
Whats the theme you trying to port?

Post you AndroidManifext.xml from the new theme
[Android Themes] will2live:
FYI bud i gave up on this POS comp and tried my other. Installed exact same way and it works perfectly. No clue what is up with the comp i was trying yesterday. Will deal with that when i have time. At least i can port now using the backup comp. Thanks again for the help and efforts towards this project to make the porting a bit easier.
[Android Themes] Madaditya:
Well,good that you got it working :thumbup:

What's the Os on the Pc you first tried?

And it should be a 64 bit machine I guess
[Android Themes] will2live:
The one giving me fits yesterday is running Win 7 but its a 32bit version of WinSuck. And dont ask why 32bit, its for work and some clown did not pay attention needless to say. As for the one I got it working on its running Win7 also but is in fact 64bit.

When time permits i will get back to this one giving me issues tho. no reason it should not work. And at this point now it is the principle of it getting it working because its under my skin......lol.
[Android Themes] pinpontbs:
I tried to port this theme: Lucid CM10.2 AOKP Theme.

This is my AndroidManifest.xml (I have to rename it to upload!)
[Android Themes] Madaditya:
apktool v2 beta 7 that PortCx uses,essentially needs Java 7

as quoted here http://connortumbleson.com/2013/10/apktool-2-0-0-beta-7-released/

I’d like to get one version public before we release 2.0 final.
With that out of the way, let me say “Apktool 2 requires Java 7“.
We used the FileSystems of NIO2 along with the FileWalker.
Unfortunately these changes cannot be built to JRE6 compatibility due to the NIO2 library.
Our hope is to convert the remaining JRE7 back to JRE6 before the final release of Apktool2.

Guess need to make two versions one with apktool 1.5.2 and other with apktool v2

Report if this works :confused:

link me to the theme please...
[Android Themes] will2live:
Cool thanks for the info. Plan is for me to mess with this on the wkend. Work turning into a disaster atm.

I'm assuming by your post that your work is using the newer apktools v2. Just wanted to clarify is all
[Android Themes] arcticbill:
So is this the correct version of JAVA with the attached APK tool above, or the dl in the OP? - b/c I'm getting the same error by replacing the attachment for the one that exists in the /bin folder.

C:\PortCx_Madaditya\bin>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
[Android Themes] duarteslb:
As anyone been able to make this work with Windows 8.1?
[Android Themes] Madaditya:
yeah my work here uses apktool v2 Beta 7

im sorry for the misdirection,just replacing the apktool.jar wont work

gu5t3r helped me with this

it also needs few changes in the script,the apktool syntax

and even though your bash detects java why would it spit out errors is real confusing!

yeah,windows 8+ seem to have problems

i'll implement if i find a workaround

i can work only after the end of this month...
[Android Themes] Ticklefish:
This might help. Maybe.

http://www.java.com/en/download/faq/win8_faq.xml
[Android Themes] djortega92:
I tried to porting Alloy Lime, sorry but XDA not allow me to post links

And I get this error in the apktool.log file

I'm using the framework-res.apk that you posted it, and java path is C:\Program Files\Java\jre7\bin
[Android Themes] Behnam_Demoniac:
WooooooW !!!!!

Thanks , thanks , and many more thanks !

your tool works like a charm man .

it did even the time consuming resources matching process as good as a pro Themer do :laugh:

you deserve a big donation man .

sorry , because i cant do it ( because i'm in Iran and you know the banking Boycotts against us .)

BTW thanks again man , keep up your good works and GL .

Edit : for knowledge , I'm on Asus transformer prime stock based 4.21 Hairy bean Rom ...
[Android Themes] duarteslb:
Did you do Just like the OP? Whats your Windows?
[Android Themes] Behnam_Demoniac:
Exactly !

Windows 7 SP 1 .
[Android Themes] Madaditya:
Thanx for the word and info mate :D

For all facing java problems

Whatever path you include in .JavaPath

1.Make sure that also exists in your system's 'Environment variable's path!'

Plz google what's that

2.also try extracting tool at root I.e C:/PortCx_Madaditya and run as administrator

3.Ensure you have jre 7

4.Find Ticklefish's post and see if that helps

Jus a quick reply...Can't look into it for now...
[Android Themes] :
mine worked great the first time and then when i downloaded the update(1.2 version) and placed it in a separate drive i was getting the same errors as above. i was messing around with it and i solved it. it has to do with the security permissions you have for the files, i simply solved it by placing it on my desktop and run the script from there, but i think you can change the permission on the extracted files. hope it helped you man.

to madaditya please look into it and let me know.

now singh_a_song!!

edit

i also noticed that some apk's dont work and give the above error.
[Android Themes] Madaditya:
Apks like?

Apktool v2 is in beta stage...so the errors possibily

For Some strange apks

Windows 8 problem is solved when you set the environment variable

Win 8 doesn't do that by default.
[Android Themes] ubuntuh:
can somebodey help me porting these themes? PLEAAASE!! IT WOULD BE GREAT!!!
[Android Themes] manishswami:
Here the link

http://xdaforums.com/showthread.php?t=2516001
[Android Themes] ubuntuh:
sorry but your mionogen and kitkat version arent up to date..cant you port my provided apk's please!?
[Android Themes] shekinahsmoke:
why dont you ask the OP in the other thread? :confused:

[MENTION=5186340]ubuntuh[/MENTION] i did kitkat for ya... gotta do mianogen yourself.. i didnt know it was this easy!! :victory:
[Android Themes] Madaditya:
Update

Updated to v2

V 2.0

Added touchwiz Xtheme support BETA. Thanx to

pier10

for his work

Combined PortCx and ImageRx and save you some bandwidth XD

Added one more script CopyX: to copy images from /Source to /Destination only if present in /Destionation(Useful for theme ports)

Updated to Apktool v2 Beta 8 . Thanx to

gu5t3r's

Goptimizer update

Added a Setup option to select Scripts

[/url]

Also added a new script CopyX

People with touchwiz devices please report with screenshots

Please re-read Instructions

Hope the update is Cool ;)

Does Anyone want a Script to create a flashable(to include apps,files,libraries,mods etc) zip right on you phone? :D
[Android Themes] Beachbum2049:
Could you post the linux script please?
[Android Themes] Madaditya:
[MENTION=3871869]Beachbum2049[/MENTION]

I dont have Linux Installed now

Cant make it now

if you want the core scripts,they are

goptimizer.sh=PortCx

others are as their names
[Android Themes] dully79:
Sweet update.:good:

It would be nice if XTheme was updated or made open source at least if its abandoned.

hopefully some clever soul can create a new/better version. Wish i knew java.:(
[Android Themes] Madaditya:
thanx ;)

Same here!

You said you were learning Java?
[Android Themes] dully79:
Trying lol.

Im reading and practicing when time permits.:good:

I dont get an awful lot of time these days, and im not as much of a sponge as i used to be when i was a whipper snapper.
[Android Themes] newellj79:
I'm trying to make this work. I have a paid theme that i used for a long time with aokp. Recently i switched to omni 4.4 and xposed. I'm following the directions corretly but i just end up with the same theme in output as i started with. the name for the apk doesnt even change. There are a handful of errors in the log file but none .xml.

log file...

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
[Android Themes] Madaditya:
Access Denied??

Try Running as Administrator and place the tool @ root.
[Android Themes] otrazhenye:
my log

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: archive is not a ZIP archive

at brut.androlib.Androlib.readMetaFile(Androlib.java:244)

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

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: brut.directory.DirectoryException: java.util.zip.ZipException: archive is not a ZIP archive

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:54)

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:37)

at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)

at brut.androlib.Androlib.readMetaFile(Androlib.java:240)

... 4 more

Caused by: java.util.zip.ZipException: archive is not a ZIP archive

at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory32(ZipFile.java:717)

at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:672)

at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:406)

at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:206)

at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:182)

at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:143)

at brut.directory.ZipExtFile.<init>(ZipExtFile.java:28)

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:52)

... 7 more
[Android Themes] Madaditya:
if you dont give me the Theme name,it's nearly impossible for me to reproduce errors and thus being able to solve them

Mostly the APK isn't downloaded properly coz apk tool dosent identify it as an apk(zip)
[Android Themes] otrazhenye:
HTC Sense 5 (com.AJ.theme.Sense5)
[Android Themes] Madaditya:
I could port is succesfully,just need to delete line 29 in working/htcsense5/res/values/strings.xml

and press continue

Also No Spaces in apk name which you place in PlaceApkHere_PortCx/ i.e should be HTCSense5.apk

Give a try.
[Android Themes] otrazhenye:
I renamed the apk and port successfully, but XthemeEngine does not apply the theme
[Android Themes] red3razor:
Parse Error

Hello and TIA, and thank you for this great tool.

I tried porting huewhite4.4 by kroz. Running PortCX v1.1, could not find download for 2.0. No log erros with PortCx and got a signed apk. But when i try to install apk for use with xTheme engine, received error "There was a problem parsing the package."

Any ideas?

EDIT: tried recompiling for a third time, pretty sure it was an environment PATH issue. Successfully installed theme, thank you much!!
[Android Themes] Madaditya:
I've observed that Theme by Global Sense(Sense5,kitkat etc ) don't work on Xtheme

Possibly that base app isn't well made,or not made the traditional way

I cannot see your screenie,but u might have a 'Failed to apply' msg

I'll see if can get it working

Good,You solved out stuff yourself ;)

Link for v2 is in the second post