Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
View Poll Results: Like my Noob Scripts?
Should i make some more? 65 98.48%
No! I Dont like your work 1 1.52%
Voters: 66. You may not vote on this poll

Post Reply

[Tool][PortCx] Port CM Themes to Xtheme Engine in One Click! v2.2 TouchwizSupportBeta

OP Madaditya

30th October 2013, 05:43 PM   |  #1  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,005
 
949 posts
Join Date:Joined: Jul 2012
More
Hi Geeks

Want to Theme your Phone at Runtime? Did you try Xposed Framework and Xtheme Engine Yet?

Here i present to you a tool that'll port CynogenMod Themes to Ones supported by Xtheme Engine just in one Click!


To start making your own themes,go to post #2

1.PortCx







Quote:

Requirements:
1.Windows Machine
2.Java JRE 7
3.Notepad ++
4:Some Commom sense




Quote:

Instructions:

1.Need to have Xposed Framework and Xtheme Engine Installed and modules updated

2.Download the Tool and Extract

3.Copy your framework-res.apk to Portx_Madaditya/bin/resources/

4.Open /bin/.JavaPath using Notepad++ and define Java path in /bin/.JavaPath as Shown(Find your path)

Make sure the same path exists in your System Variables as described here How to add PATH Env variable
Try this if you have Java errors Link to post

5.*Run Setup.cmd to choose the tool to use

6.For PortCx,place your .apk (apk name should be w/o spaces) in PlaceApksHere_PortCx

7.Run PortCx.cmd,enter few choices and soon you'll have a Xtheme Supported .apk in Output Directory!


8.Read the Script as you go,mayb you'll learn porting



2.PortCx_Mini

Quote:

Use this ONLY if PortCx gives you Java errors
Dosen't use Java ,Requires MANUAL De/Recompiling and removing errors if any.

Quote:

Instructions:

1.Decompile the Theme You want using any ApkTool,
and follow instructions as in the picture

Click image for larger version

Name:	Untitled.jpg
Views:	616
Size:	113.5 KB
ID:	2651794


Quote:

Downloads:

Go to the Second Post

Quote:

Thanks to:
1.gu5t3r for his base Cygwin Goptimizer Pack!
2.Dully79 for an awesome tutorial [Guide] Porting CM10/.1 themes to XTheme
3.rovo89 for Xposed Framework! Its Amazing!
4.ruqqq for Xtheme Engine!
5.pier10 for hiw work for touchwiz themes.Have used his generic redirections for touchwiz

Valuable Work

Quote:

Note:
1.Do Not Share Themes if you dont have the permissions of the Theme Dev
2.Sharing Paid Themes without permissions will not be encouraged and is against the rules of Xda
3.If you have errors,please try with this framework-res.apk
4.If reporting errors,provied the apktool.log, theme name and link if possible
5.Very Few themes are NOT compatible and give you a 'FAILED TO APPLY'. Working on them
6.Touchwiz Themes is in Beta,please report with screenshots and also if possible the related png's which are not themed

Hit Thanks and Rate Good if you find it helpful and Motivate

Changelog:

V 1.0
Initial Release

V 1.1
Made script more smart,it'll start again IF recompilation fails
Keeps previous Error apktool.log as apktool_old.log
More readable and Easy Instructions:Check Screenie
Cleanup PlaceApkHere folder when succesfull

V 1.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

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
Removed backup option for POrtCx,coz apk's in PlaceApkHere_portCx remain untouched

V 2.1
Added PortCxMini for ones facing Java Issues
Uses the Genius of PortCx,requires no Java but MANUAL De/Recompiling of the Theme

V 2.2
Added Extra touchwiz redirections

Feedback welcomed! and report Errors,I'll Be happy to Help
Last edited by Madaditya; 26th March 2014 at 08:31 PM.
The Following 49 Users Say Thank You to Madaditya For This Useful Post: [ View ]
30th October 2013, 05:45 PM   |  #2  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,005
 
949 posts
Join Date:Joined: Jul 2012
More
ImageRx for NICS Themer
Want to make your own Mini-Themes?

Head here [Guide][NICS Themer] Create Your Own Themed apk & Become a Themer Yourself by saqib nazm


Another script ImageRx that would

1.Add the required prefix to image name and Rename them
2.Also create the required redirection xml


So this Would Automate renaming multiple images with same prefix as needed for NICS themer



Quote:

Download

ToolsX_Madaditya v2.2

Old
ImageRx_Madaditya[/HIDE]

Quote:

Thanks to:
1.@saqib nazm-For this Awesome guide

Hope this will be helpful

Since this is my first script might have errors.Please report
Last edited by Madaditya; 23rd December 2013 at 01:10 PM.
The Following 24 Users Say Thank You to Madaditya For This Useful Post: [ View ]
30th October 2013, 07:27 PM   |  #3  
Senior Member
Flag Hong Kong
Thanks Meter: 43
 
252 posts
Join Date:Joined: Apr 2013
i tried it but it got no files in output
30th October 2013, 07:59 PM   |  #4  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,005
 
949 posts
Join Date:Joined: Jul 2012
More
Quote:
Originally Posted by Frankie_Ho

i tried it but it got no files in output

Did copy framework,Defined java path?

or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!

Could you post the apktool.log created and the command prompt screen?
i'll look into it

and What theme are you trying to port?
Last edited by Madaditya; 30th October 2013 at 08:09 PM.
The Following 3 Users Say Thank You to Madaditya For This Useful Post: [ View ]
30th October 2013, 11:20 PM   |  #5  
Junior Member
Thanks Meter: 2
 
21 posts
Join Date:Joined: Mar 2011
Nooby question here (root explorer is doing a search but I am impatient) where do the APKs download from a Theme from the Plays Store?
31st October 2013, 01:30 AM   |  #6  
Senior Member
Flag Hong Kong
Thanks Meter: 43
 
252 posts
Join Date:Joined: Apr 2013
Quote:
Originally Posted by Madaditya

Did copy framework,Defined java path?

or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!

Could you post the apktool.log created and the command prompt screen?
i'll look into it

and What theme are you trying to port?

I did all that and it has no error in the log
I will post the screen later

btw when it tells there re errors in apktool, is that i just need to use notepad++ to go into apktool and delete that line? that's wt i do to solve the error.
Sent from my LG-E988 using Tapatalk
Last edited by Frankie_Ho; 31st October 2013 at 04:08 AM.
31st October 2013, 04:41 AM   |  #7  
Guest
Thanks Meter: 874
 
0 posts
Join Date:Joined: Jan 1970
Quote:
Originally Posted by Madaditya

Did copy framework,Defined java path?

or you should also check /tmp/apktool.log when prompted to
If it has errors ofcourse it wont recompile!

Could you post the apktool.log created and the command prompt screen?
i'll look into it

and What theme are you trying to port?

It worked! But not on the first try. Okay, so I ported this cm theme:

http://forum.xda-developers.com/show....php?t=2434721

The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth) So I did all the steps over again. The second time it worked like a charm. The problem is that you HAVE to press y to show error log even if there are no errors, or the steps fail. But I worked like a charm other than that! I also put "xthemer" at the end of the line when it ask you to choose apk name: com.xxx.xthemer

My apk xtheme is in the attachments.


Also dev, you need to post pre-requested tools in op. Like the tools the user needs:

  • Java JRE7
  • Notepad++


Awesome Good!!!
Attached Files
File Type: apk holosense_1.1.apk - [Click for QR Code] (2.61 MB, 382 views)
Last edited by Maurice5813; 31st October 2013 at 04:44 AM.
The Following 2 Users Say Thank You to Maurice5813 For This Useful Post: [ View ]
31st October 2013, 04:47 AM   |  #8  
Guest
Thanks Meter: 874
 
0 posts
Join Date:Joined: Jan 1970
BTW, Should make a noob script for Decompiling and Recompile SystemUI.apk And Framework-res.apk. Alot of people do the steps wrong and end up with bootloop. Its simple but useful
31st October 2013, 05:22 AM   |  #9  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,005
 
949 posts
Join Date:Joined: Jul 2012
More
Quote:
Originally Posted by arDroid.99

It worked! But not on the first try. Okay, so I ported this cm theme:

http://forum.xda-developers.com/show....php?t=2434721

The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth) So I did all the steps over again. The second time it worked like a charm. The problem is that you HAVE to press y to show error log even if there are no errors, or the steps fail. But I worked like a charm other than that! I also put "xthemer" at the end of the line when it ask you to choose apk name: com.xxx.xthemer

My apk xtheme is in the attachments.


Also dev, you need to post pre-requested tools in op. Like the tools the user needs:

  • Java JRE7
  • Notepad++


Awesome Good!!!

Thanks for the iNput!Glad you ported a theme !
yead that step(contntinue) will be succesful only if u hit 'y' else it'll exit
At that moment you expected to minimize,check log,if its empty hit 'y'
Or any other key and it'll exit.
And that's why users should Read the script carefully :thumbup:

and hope you have permissions from the dev to share?

What about scripts for compiling and de compiling?
Last edited by Madaditya; 31st October 2013 at 05:25 AM.
The Following 2 Users Say Thank You to Madaditya For This Useful Post: [ View ]
31st October 2013, 05:25 AM   |  #10  
Guest
Thanks Meter: 874
 
0 posts
Join Date:Joined: Jan 1970
Quote:
Originally Posted by Madaditya

Thanks for the iNput!Glad you ported a theme !
yead that step(contntinue) will be succesful only if u hit 'y' else it'll exit
At that moment you expected to minimize,check log,if its empty hit 'y'
Or any other key and it'll exit.
And that's why users should Read the script carefully :thumbup:

What about scripts for compiling and de compiling?

Indeed, I'm loving this tool!!! Awesome dev, hopefully you can fix apktool. For some reason it wont fully decompile hybrid rom system apks

Post Reply Subscribe to Thread

Tags
cynogenmod themes, port, theme, xposed framework, xthemer
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes