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

Like my Noob Scripts?

  • Should i make some more?

    Votes: 77 98.7%
  • No! I Dont like your work

    Votes: 1 1.3%

  • Total voters
    78
Search This thread

Madaditya

Senior Member
Jul 30, 2012
985
1,054
Pune
referany.com
Hi Geeks :cool:

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

POrt_Cx1_2.jpg


setup.png




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



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! :good:


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



2.PortCx_Mini

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

Instructions:

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

Untitled.jpg


Downloads:

Go to the Second Post

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 :good:
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:

Madaditya

Senior Member
Jul 30, 2012
985
1,054
Pune
referany.com
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




Thanks to:
1.@saqib nazm-For this Awesome guide
Hope this will be helpful :good:

Since this is my first script might have errors.Please report
 
Last edited:

Madaditya

Senior Member
Jul 30, 2012
985
1,054
Pune
referany.com
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:

mrbig012

Member
Mar 16, 2011
22
2
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?
 

Frankie_Ho

Senior Member
Apr 9, 2013
273
44
Hong Kong
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:

Maurice5813

Guest
Jan 1, 1970
0
907
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://xdaforums.com/showthread.php?t=2434721

The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth:confused:) 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!!!:D
 

Attachments

  • holosense_1.1.apk
    2.6 MB · Views: 608
Last edited:

Maurice5813

Guest
Jan 1, 1970
0
907
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;)
 

Madaditya

Senior Member
Jul 30, 2012
985
1,054
Pune
referany.com
It worked! But not on the first try. Okay, so I ported this cm theme:

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

The first time, It gave me a compile error(but before the xtheme compilation started everything was going smooth:confused:) 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!!!:D

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:

Maurice5813

Guest
Jan 1, 1970
0
907
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.:D For some reason it wont fully decompile hybrid rom system apks:confused:
 

Madaditya

Senior Member
Jul 30, 2012
985
1,054
Pune
referany.com
Indeed, I'm loving this tool!!! Awesome dev, hopefully you can fix apktool.:D For some reason it wont fully decompile hybrid rom system apks:confused:

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

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:



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

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:

Frankie_Ho

Senior Member
Apr 9, 2013
273
44
Hong Kong
Try the same with Apk-Multi Tool,also for de and re compiling
Pretty Stable,Uses aptook 1.5.2 though



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

post your feedback :thumbup:




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


thanks mate :)
And that's a good news!

i do clean the folder and i m sure that after i delete the line, i got nth in the apktool.log
 

Top Liked Posts

  • There are no posts matching your filters.
  • 49
    Hi Geeks :cool:

    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

    POrt_Cx1_2.jpg


    setup.png




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



    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! :good:


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



    2.PortCx_Mini

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

    Instructions:

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

    Untitled.jpg


    Downloads:

    Go to the Second Post

    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 :good:
    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
    24
    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




    Thanks to:
    1.@saqib nazm-For this Awesome guide
    Hope this will be helpful :good:

    Since this is my first script might have errors.Please report
    4
    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

    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!
    3
    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?
    3
    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

    setup.png
    [/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