FORUMS

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, … more

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Voices Of XDA: Orbiting The Earth With Android

Editor’s note: This week’s feature has been written by forum … more

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

 View Poll Results: Like my Noob Scripts?

Should i make some more?
 
72 Vote(s)
98.63%
No! I Dont like your work
 
1 Vote(s)
1.37%

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

970 posts
Thanks Meter: 1,045
 
Post Reply Subscribe to Thread Email Thread
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:	836
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 07:31 PM.
The Following 51 Users Say Thank You to Madaditya For This Useful Post: [ View ]
 
 
30th October 2013, 04:45 PM |#2  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,045
 
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 12:10 PM.
The Following 25 Users Say Thank You to Madaditya For This Useful Post: [ View ]
30th October 2013, 06:27 PM |#3  
Senior Member
Flag Hong Kong
Thanks Meter: 44
 
More
i tried it but it got no files in output
30th October 2013, 06:59 PM |#4  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,045
 
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 07:09 PM.
The Following 3 Users Say Thank You to Madaditya For This Useful Post: [ View ]
30th October 2013, 10:20 PM |#5  
Junior Member
Thanks Meter: 2
 
More
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, 12:30 AM |#6  
Senior Member
Flag Hong Kong
Thanks Meter: 44
 
More
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 03:08 AM.
31st October 2013, 03:41 AM |#7  
Guest
Thanks Meter: 880
 
More
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, 468 views)
Last edited by Maurice5813; 31st October 2013 at 03:44 AM.
The Following 2 Users Say Thank You to Maurice5813 For This Useful Post: [ View ]
31st October 2013, 03:47 AM |#8  
Guest
Thanks Meter: 880
 
More
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, 04:22 AM |#9  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,045
 
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 04:25 AM.
The Following 2 Users Say Thank You to Madaditya For This Useful Post: [ View ]
31st October 2013, 04:25 AM |#10  
Guest
Thanks Meter: 880
 
More
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
31st October 2013, 04:37 AM |#11  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,045
 
More
Quote:
Originally Posted by arDroid.99

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

Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though

Quote:
Originally Posted by mrbig012

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?

Try using android assistant to backup apks,and then you'll find them on your sdcard

post your feedback :thumbup:



Quote:
Originally Posted by Frankie_Ho

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

You mean you have no recompilation errors? In /tmp/apktool.log and you find nothing in output?
Did you clean the 'PlaceApkHere' folder and placed just one apk there before you could start?

exactly,when it says
"Script will wait till you remover errors
CONTINE?"
just browse to that xml and line,delete it or modify if you can,dont leave a blank line and continue...
If you still have errors,tellme the ThemeName,i'll try

Quote:
Originally Posted by arDroid.99

Thanks dude! I'm making a rom for the N4, and this tool just made my day!!!

thanks mate
And that's a good news!
Last edited by Madaditya; 31st October 2013 at 04:57 AM.
The Following 2 Users Say Thank You to Madaditya For This Useful Post: [ View ]

Read More
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