5,595,645 Members 44,478 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][XPOSED][4.0+] XThemeEngine beta5 - Theme engine for any rooted phone

Tip us?
 
ruqqq
Old
(Last edited by ruqqq; 7th May 2013 at 07:31 AM.)
#1  
Senior Member - OP
Thanks Meter 1216
Posts: 526
Join Date: Oct 2008
Phone [MOD][XPOSED][4.0+] XThemeEngine beta5 - Theme engine for any rooted phone

What is XThemeEngine?
XThemeEngine allows you to theme your device similar to how T-Mobile/CM10 Theme Engine. Install theme apk, activate theme from XThemeEngine app. Voila! Forget MetaMorph. Forget flashing zips.

XThemeEngine is powered by Xposed Framework by rovo89. You will be prompted to install if you haven't.

Install Instructions
  1. Install Xposed Installer
  2. Install Xposed Framework (from the Xposed Installer app)
  3. Install XThemeEngine from the link at the bottom of this post
  4. Activate the module in Xposed Installer app
  5. Download SampleTheme (or create your theme!), activate through XThemeEngineApp
  6. Enjoy!

Which device has XThemeEngine been tested on?
Galaxy Nexus (4.2 stock), Xperia V (JB Stock), Galaxy S3 (JB Stock), Galaxy Note 2 (JB Stock).

Confirmed working by XDA members: Xperia U, Xperia P, Xperia T, Xperia TX, Galaxy S Duos, Lenovo A800, Ainol Novo Hero2, HP Touchpad 4.2.2, Cherry Mobile Flare / Karbonn A9+, L9, SIII, Optimus G, Motorola RAZR HD, Galaxy S Advance I9070, Xperia Sola, LG Motion 4G

Does not work: HTC One X(L) Stock, HTC One Stock

Theoretically, XThemeEngine should work with Android 4.0 and above. Only for ARM devices though. x86 devices are NOT supported. To learn more, read Xposed Framework FAQ.

This would further be limited depending on the theme selected (similar to CM10 theme engine). Do report the device you're using if it works for you too.

Current Limitations
  • Does not support ringtones/wallpapers
  • Avoid res/layout at the moment (despite supported)
  • res/values/styles.xml is NOT supported and may never be
  • XThemeEngine and Themes cannot be stored on external storage or /mnt/asec

Screenshot
Running ported LunarUI II theme on Xperia V stock rooted


Download
From G+ Page: https://plus.google.com/communities/...0991587538620/

SampleTheme apk: https://www.dropbox.com/s/quqsjj9e6k...ampleTheme.apk
SampleTheme GitHub: https://github.com/ruqqq/SampleTheme
The SampleTheme only changes your battery icons
Follow me @ruqqq for updates!

Main Phone: Stock/Odexed/Rooted Xperia V - 4.1
The Following 470 Users Say Thank You to ruqqq For This Useful Post: [ Click to Expand ]
 
ruqqq
Old
(Last edited by ruqqq; 22nd April 2013 at 03:23 AM.)
#2  
Senior Member - OP
Thanks Meter 1216
Posts: 526
Join Date: Oct 2008
How To Create Theme

Refer to https://github.com/ruqqq/SampleTheme for SampleTheme project. AndroidManifest.xml has all the info. Essentially, the theme format is 90% similar to CM10 Themes.

How To Port Themes from CM10

ONLY PROCEED IF YOU'RE CONFIDENT OF FINDING SOLUTION TO PROBLEMS AND NOT RELY ON GETTING SPOON FEED.

Prerequisites
  • Basic Knowledge with Intellij/Eclipse + Android SDK (able to create a new project and run it on a phone)
  • Basic Command Line Knowledge
  • apktool
  • Some Intelligence
  • I will not tolerate google-able questions

Steps
  1. apktool d THEME_APK
  2. Create a new Intellij/Eclipse project with the same package name as the theme (can find this out in AndroidManifest.xml)
  3. Copy res and AndroidManifest.xml apktool extracted into the new project, replacing the generated files.
  4. Add
    Code:
    <uses-permission android:name="sg.ruqqq.XThemeEngine.permission.SYSTEM_THEME" />
    just after manifest tag
  5. Delete res/values/public.xml (if any)
  6. Make sure there is a file called res/xml/redirections.xml and the file contents is set up to reflect the theme (refer to SampleTheme or read and understand T-Mobile Theme structure)
  7. Build, Install and Apply Theme!
  8. Soft Reboot!

Porting Themes without Intellij/Eclipse
  • Quote:
    Originally Posted by pier10 View Post
    By the way there's another easier method to port a theme, without IntelliJ or Eclipse.
    I assume you know how to use apktool and how to sign .apk.
    1. Decompile sampletheme.apk
    2. Decompile your desired theme .apk
    3. In sampletheme folder just delete "res" folder, replace it with the "res" folder from your desired theme.
    4. Edit androidmanifest.xml and add the line below (before application tag)
    Code:
    <uses-permission android:name="sg.ruqqq.XThemeEngine.permission.SYSTEM_THEME" />
    (Optional) You may also replace package="com.theme.name" with the ported theme name.
    5. Build, sign. Thats it.


XThemeEngine-only Redirections

Unlike CM Themes which is made just for CM and it's cousins (AOKP etc.), XThemeEngine is made to support various devices. Hence there will be a problem of fragmentation for theme devs.

I implemented an extra functionality to workaround the fragmentation. This require you to add a new file: res/xml/xthemeengine_redirections.xml. This file works the same as res/xml/redirections.xml except with 3 new attributes: deviceManufacturer, deviceModel, deviceId. These attributes defines the condition for which device to do the redirections for. The attribute can have multiple values separated by commas.

Example:
Code:
<package-redirections android:name="com.android.systemui" android:resource="@xml/xthemeengine_com_android_systemui" android:minSdkVersion="16" deviceManufacturer="Sony" deviceModel="LT25i,LT29i,LT30p" deviceId="9.1.A.0.490,9.1.A.1.140" />
xthemeengine_com_android_systemui.xml will be loaded to theme com.android.systemui for Sony LT25i, LT29i, LT30p and only for the specific ROM versions. This way, I can theme status bar layouts for specific device without causing FCs.

FAQ
  • Why does the ported theme not look 100% as the original theme?

    There are 2 reason for this. Firstly, as stated in the previous post, styles.xml is not working for XThemeEngine. Hence, the ported themes would not work 100%. For better success, port a theme which is closer to Holo styles (dark background, bright text). Second reason, which is the most common reason, is that the theme is made for CM10. CM10 is very close to AOSP while your device which is running stock rom only retain some parts of AOSP. The theme need to be properly ported (analyze your stock rom frameworks and redirect the proper files in your ported theme etc.) to fully support your device.
Follow me @ruqqq for updates!

Main Phone: Stock/Odexed/Rooted Xperia V - 4.1
The Following 86 Users Say Thank You to ruqqq For This Useful Post: [ Click to Expand ]
 
[GS]
Old
(Last edited by [GS]; 18th April 2013 at 03:12 PM.)
#3  
[GS]'s Avatar
Senior Member
Thanks Meter 8
Posts: 100
Join Date: Jun 2012
testing now, thank you

can i run Cm theme?
 
ruqqq
Old
#4  
Senior Member - OP
Thanks Meter 1216
Posts: 526
Join Date: Oct 2008
Quote:
Originally Posted by [GS] View Post
testing now, thank you

can i run Cm theme?
No. CM theme has to be ported to XThemeEngine. Porting is really simple though.
Follow me @ruqqq for updates!

Main Phone: Stock/Odexed/Rooted Xperia V - 4.1
The Following 3 Users Say Thank You to ruqqq For This Useful Post: [ Click to Expand ]
 
[GS]
Old
(Last edited by [GS]; 18th April 2013 at 03:36 PM.)
#5  
[GS]'s Avatar
Senior Member
Thanks Meter 8
Posts: 100
Join Date: Jun 2012
Im testing in galaxy S3 mini and work great with sample theme! batery icon change... but work afer normal reboot,no with soft reboot
 
sadiq23
Old
#6  
Guest
Thanks Meter 622
Posts: 0
Join Date: Jan 2013
Awesome!!!
Worked on my Xperia P ICS
Here screenshot(observe battery icon)

Sent from my Xperia P using XDA-premium
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1366296684881.jpg
Views:	40429
Size:	119.1 KB
ID:	1892938  
The Following User Says Thank You to sadiq23 For This Useful Post: [ Click to Expand ]
 
XDA.AGM
Old
#7  
Senior Member
Thanks Meter 731
Posts: 360
Join Date: Dec 2012
Location: Madrid
This is amaaazing many thanks !!

screenshots Xperia U (Stock Ics) sample green theme for framework & systemui

changes - Tabs - Slider - green button system ui - battery 100 step green , green switch , at the moment, all works well

now alot of works for do
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-04-18-16-54-55.jpg
Views:	42291
Size:	29.5 KB
ID:	1892954   Click image for larger version

Name:	Screenshot_2013-04-18-16-55-05.jpg
Views:	38915
Size:	26.3 KB
ID:	1892955   Click image for larger version

Name:	Screenshot_2013-04-18-16-55-42.jpg
Views:	37342
Size:	25.3 KB
ID:	1892956   Click image for larger version

Name:	Screenshot_2013-04-18-16-56-39.jpg
Views:	34328
Size:	20.5 KB
ID:	1892957  
The Following 3 Users Say Thank You to XDA.AGM For This Useful Post: [ Click to Expand ]
 
cartmenicus
Old
#8  
cartmenicus's Avatar
Recognized Contributor
Thanks Meter 1898
Posts: 2,819
Join Date: Nov 2011
Location: British columbia

 
DONATE TO ME
Works great on T already got some themes ported

Sent from my LT30p using xda premium
Device: Nexus 7,Moto X
Rom: N7: PA with faux kernel Moto X:Stock with Faux
 
josephnero
Old
#9  
josephnero's Avatar
Senior Member
Thanks Meter 488
Posts: 1,587
Join Date: Mar 2011
Location: Sanford NC
can you post a small guide on how to do it?
Galaxy S4 9505
The Following User Says Thank You to josephnero For This Useful Post: [ Click to Expand ]
 
sadiq23
Old
(Last edited by sadiq23; 18th April 2013 at 04:56 PM.)
#10  
Guest
Thanks Meter 622
Posts: 0
Join Date: Jan 2013
Quote:
Originally Posted by josephnero View Post
can you post a small guide on how to do it?
It is simple, here:-
1) First download and install Xposed
2) Then open Xposed and there you'll find "Install/update", press that!
3) Now reboot
4) next download and install XThemeEngine
5) Now download any of sample theme and install it
6) Open Xposed and swipe your screen to "Modules"
7) There activate XThemeEngine
8) Now open XThemeEngine
9) There you'll find option "choose theme" press and select "sample theme"
10) below that there will be a option "apply theme", press that
11) Reboot and your done!

Don't forget to hit thanx button!

The Following 75 Users Say Thank You to sadiq23 For This Useful Post: [ Click to Expand ]
Tags
engine, framework, jellybean, theme, xposed
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes