Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,815 Members 39,955 Now Online
XDA Developers Android and Mobile Development Forum
View Poll Results: Like my Noob Scripts?
Should i make some more? 64 98.46%
No! I Dont like your work 1 1.54%
Voters: 65. You may not vote on this poll

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

Tip us?
 
Madaditya
Old
(Last edited by Madaditya; 26th March 2014 at 07:31 PM.)
#1  
Madaditya's Avatar
Recognized Themer - OP
Thanks Meter 979
Posts: 940
Join Date: Jul 2012
Location: No where
Default [Tool][PortCx] Port CM Themes to Xtheme Engine in One Click! v2.2 TouchwizSupportBeta

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:	489
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
You...Me...are all Noobs

Xperia Pro | Xperia Iridescent | Lupus v16
Xperia Sola | White Pepper | Experimental



The Following 48 Users Say Thank You to Madaditya For This Useful Post: [ Click to Expand ]
 
Madaditya
Old
(Last edited by Madaditya; 23rd December 2013 at 12:10 PM.)
#2  
Madaditya's Avatar
Recognized Themer - OP
Thanks Meter 979
Posts: 940
Join Date: Jul 2012
Location: No where
Default 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
You...Me...are all Noobs

Xperia Pro | Xperia Iridescent | Lupus v16
Xperia Sola | White Pepper | Experimental



The Following 24 Users Say Thank You to Madaditya For This Useful Post: [ Click to Expand ]
 
Frankie_Ho
Old
#3  
Senior Member
Thanks Meter 43
Posts: 251
Join Date: Apr 2013
Location: Hong Kong
i tried it but it got no files in output
 
Madaditya
Old
(Last edited by Madaditya; 30th October 2013 at 07:09 PM.)
#4  
Madaditya's Avatar
Recognized Themer - OP
Thanks Meter 979
Posts: 940
Join Date: Jul 2012
Location: No where
Quote:
Originally Posted by Frankie_Ho View Post
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?
You...Me...are all Noobs

Xperia Pro | Xperia Iridescent | Lupus v16
Xperia Sola | White Pepper | Experimental



The Following 3 Users Say Thank You to Madaditya For This Useful Post: [ Click to Expand ]
 
mrbig012
Old
#5  
Junior Member
Thanks Meter 2
Posts: 21
Join Date: 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?
 
Frankie_Ho
Old
(Last edited by Frankie_Ho; 31st October 2013 at 03:08 AM.)
#6  
Senior Member
Thanks Meter 43
Posts: 251
Join Date: Apr 2013
Location: Hong Kong
Quote:
Originally Posted by Madaditya View Post
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
 
Maurice5813
Old
(Last edited by Maurice5813; 31st October 2013 at 03:44 AM.)
#7  
Guest
Thanks Meter 864
Posts: 0
Join Date: Jan 1970
Quote:
Originally Posted by Madaditya View Post
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, 360 views)
The Following 2 Users Say Thank You to Maurice5813 For This Useful Post: [ Click to Expand ]
 
Maurice5813
Old
#8  
Guest
Thanks Meter 864
Posts: 0
Join Date: 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
 
Madaditya
Old
(Last edited by Madaditya; 31st October 2013 at 04:25 AM.)
#9  
Madaditya's Avatar
Recognized Themer - OP
Thanks Meter 979
Posts: 940
Join Date: Jul 2012
Location: No where
Quote:
Originally Posted by arDroid.99 View Post
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?
You...Me...are all Noobs

Xperia Pro | Xperia Iridescent | Lupus v16
Xperia Sola | White Pepper | Experimental



The Following 2 Users Say Thank You to Madaditya For This Useful Post: [ Click to Expand ]
 
Maurice5813
Old
#10  
Guest
Thanks Meter 864
Posts: 0
Join Date: Jan 1970
Quote:
Originally Posted by Madaditya View Post
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

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

Advanced Search
Display Modes