• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.

[06Feb2014][APP][Quantum Themer]Theme Chooser for Stock(Based) ROMs

Adhi1419

New member
Dec 22, 2012
87
519
0
23
Bangalore
Hi all!

Are you making a ROM? Want users to switch between Themes without downloading tons of zips and flashing them and ending up in a mess? Actually I made this App for my upcoming ROM("Quantum Radicle") for Micromax A89 and it turned out to work on all phones. Sharing is caring :cheers:
Here is the solution - Quantum Themer!
You maybe wondering how it works. The answer is:
Based on VillianTheme System! What I did was first tried to run the script on my Phone, ended up with 10-15 errors, fixed them! Now all this App does behind the scenes is Feed the Theme you select to the script and the script does the rest! But if you do see, the VillianTheme Template itself is nearly 600 KB and the App is just 650 KB :)
Let's get Straight into the list of features! :)

Features:
  • Works on all ROMs - Stock, Custom, AOSP, eh, you name it!
  • Preview of Themes before Applying
  • Custom File Extension for themes(Default is .qrt, if you do dig my App, you will find this being set in com.adhi.quantumthemer.ThemeSelector Class. Feel free to change it! But don't kang the App)
  • Single Button, no hassles!
  • In-built File Explorer
  • Theme structure is so simple that, even a "Starter" doesn't take more than a minute to understand
  • You can use it in your ROM. Just copy the APK into your ROM and provide your users with Theme Files, you don't need to ask permissions, just give me credits :p
  • Just include files that need to be replaced/modified, cutting down the size of your themes by a great margin
  • Scroll down and search for the download link, you'll tell me more :p
  • Framework, System Apps, Data Apps support
  • Will modify APKs in a ROM, without changing signatures, and can be used on any ROM where the filenames of themed files is the same.
  • Should not need updated between versions of a ROM
  • Zipaligns all APKs before installation
  • Stores a backup of all files being modified in /sdcard/vrtheme-backup/
  • Requires no coding abilities or editing of files - just drag and drop
Now, this will be "Copy, paste" from a VillianTheme Tutorial on "How to make Themes". You may skip to the last point if you know/understand how it works! I strongly recommend you to have a look at the Attached theme for reference. Open it with your favorite Zip Browser(WinRar, 7-Zip)
Check this thread out as well.

  • Inside the qrt file(Which is to be opened with a Zip Viewer), you can create a folder called "system" and "data" and include a Preview of the theme named "preview.png" or "preview.jpg"(All folders and files without Quotes in their names). The former is required, the latter is not required unless you wanted to theme a data app (strongly not recommended, unless you know the app will be there on every phone)
  • Inside the system or data folder, create a subfolder "app", and in these, make subfolders named EXACTLY after the APK name. For example, to theme the Browser, you need a folder called "Browser.apk", for Statusbar, "SystemUI.apk". It must be correctly capitalised.
  • Within there, place the files you require for your theme, in the relevant locations. So most PNGs will be in res/drawable-hdpi/. You can put in xml files too (those which are not in resources.arsc), if you compile them via apktool, and extract them with a zip tool.
  • If you do make it from scratch and zip it, don't forget to Rename it with extension ".qrt"
Now lets move on to "How to use it" as I have too much time to kill now, I'm including this :p
How to Use:
Just Install the App(System, User doesn't matter). Click on "Select Theme" button and then select the Theme you want to Apply. It will ask for Root Permissions if its the First Launch. Next, you'll get a preview of Theme which is going to be applied and then when you press the "Apply" button, the theme will be applied and a Alert Dialog Box asking you to Reboot will appear. I suggest you to Reboot your phone at this point itself. And after reboot, you will be happy to see the Theme Applied :)
Downloads:
Preview
Sample Theme - Open it with a Zip Viewer, just for reference! Not a theme
Quantum Themer App:
Version 1.1 - Mediafire - Change Log
Version 1.0 - Mediafire - Dev-Host - Change Log
Beta 2 - Mediafire - Dev-Host - Change Log
Beta 1 - Mediafire - Dev-Host
Note: App Version in Settings is always Version 1.0 in Beta releases
Credits:
  1. Villian ROM Team. This wouldn't exist without them!
  2. iPaulPro for his aFileChooser
  3. Stericson for his Roottools Library
  4. Everyone whom the above two owe credits to!
If you face any problems with this App, do the following -
Debugging:
1. Check whether /sdcard/vrtheme exists and contains four or more files/folders.If it doesn't, copy all the contents off vrtheme.zip in the assets folder of the Quantum Themer App.
2. Mount System as R/W before Applying Theme manually.
3. Copy /sdcard/vrtheme/zip and /sdcard/vrtheme/zipalign to /system/bin and CHMod it to 777
4. Type
Code:
sh /sdcard/vrtheme/i*
in Termianl Emulator or ADB and post the result here..
Do hit the "Thanks" Button! I tried my best to help you, hope you'll do it to! :)
And tell me if you want Screenshots. It look pretty dumb even though! :p
If you people like it and want me to do some update/bug-fixes, do keep the thread active. I don't want to end up working for myself.
All kinds of Reviews are welcome :cowboy:
 
Last edited:

zeetwo-raj

New member
Apr 9, 2012
739
160
0
Thnx bro
Will definetly try dis previously I install xposed framework but it was not fully working on my ics device
Hope dis will work......:)

Sent from my Xperia Miro using xda premium
 
  • Like
Reactions: cactu666

rodaven

New member
Jan 17, 2013
747
197
0
Santiago
Sample theme didn't work for my Samsung galaxy s advance stock jb ROM. It made the backup folder on sdcard but didn't change anything.

Sent from my GT-I9070 using xda app-developers app
 
Last edited:
  • Like
Reactions: ZeRoWaR

Adhi1419

New member
Dec 22, 2012
87
519
0
23
Bangalore
Sample theme didn't work for my Samsung galaxy s advance stock jb ROM. It made the backup folder on sdcard but didn't change anything.

Sent from my GT-I9070 using xda app-developers app
Sample Theme is for reference ONLY. My bad should have added in the OP

Will it work for gingerbread devices too?

GREEEEETZ!!!!
It is working on Gingerbread Devices too!
 

rodaven

New member
Jan 17, 2013
747
197
0
Santiago
How can I make this work if, for example, I have a SystemUI.apk or framework-res.apk modified and I want to apply it on my phone using this app? It's possible?
 

Koulis2000

New member
Apr 30, 2011
917
1,199
0
26
Thessaloniki
A friend sent me to this thread. Once I read your description I got sooo many ideas in my mind! I am a big fun of VRT and this app could help me a lot if it's as I imagine it. Your idea is great.

Just one question for now, previews should be .flv? If yes, will it work ok if I make a slideshow-like preview?
 

Koulis2000

New member
Apr 30, 2011
917
1,199
0
26
Thessaloniki
Preview is a PNG static image!
Your post sparkled an idea in my mind too! Thinking of adding a Video Preview + Description :)

Sent from my GT-I9082 using Tapatalk 2
I just said that because your preview was an .flv file and I got confused. I didn't have time to open the .apk or the .qrt. I guess it was a misunderstanding.

Oh, and I'm glad I gave you an idea! Would be cool to see video previews. :good:

---------- Post added at 06:32 PM ---------- Previous post was at 06:27 PM ----------

Preview is a PNG static image!
Your post sparkled an idea in my mind too! Thinking of adding a Video Preview + Description :)

Sent from my GT-I9082 using Tapatalk 2
Also, why are there two preview.png? One in the root of the .qrt and one in /system folder? Which one is used by the Application?
 

Adhi1419

New member
Dec 22, 2012
87
519
0
23
Bangalore
You should add a package ofsome themes like ICS/JB in the OP.
Testing and reporting right away.

edit:: I will use ur sample theme as base for making my own themes.

Good work.
Regards,
Kaustubh
Because the resource files used are device independent, a file available to MOD on one phone may not be available on the other!

I just said that because your preview was an .flv file and I got confused. I didn't have time to open the .apk or the .qrt. I guess it was a misunderstanding.

Oh, and I'm glad I gave you an idea! Would be cool to see video previews. :good:

---------- Post added at 06:32 PM ---------- Previous post was at 06:27 PM ----------



Also, why are there two preview.png? One in the root of the .qrt and one in /system folder? Which one is used by the Application?
The one in the root. An error while Dragging and dropping previews :p
 
  • Like
Reactions: Koulis2000

rodaven

New member
Jan 17, 2013
747
197
0
Santiago
Because the resource files used are device independent, a file available to MOD on one phone may not be available on the other!



The one in the root. An error while Dragging and dropping previews :p
Some ideas:

Would be great if you can add more than one preview pic, in just one is hard to show all things themed.

Other thing is would be nice if themes with their preview remain on the app to just choose one and apply it, I mean like CM themes so you don't have to browse in folders and choose the qrt file each time you want to apply a previously loaded theme.

And finally that the app automatically make a qrt file of the backup that the app make when you apply a theme, so you can easily apply your backup if you didn't like the theme applied.

Sorry for my English :D

Sent from my GT-I9070 using xda app-developers app
 

mattx89

New member
Aug 3, 2013
13
0
0
I tried to change the icon of the music player app but after applying the theme and restarting the icon is still the same ... does anyone know how to do this with the app ?

Sorry for my bad english
 

Koulis2000

New member
Apr 30, 2011
917
1,199
0
26
Thessaloniki
Do hit the "Thanks" Button! I tried my best to help you, hope you'll do it to! :)
And tell me if you want Screenshots. It look pretty dumb even though! :p
If you people like it and want me to do some update/bug-fixes, do keep the thread active. I don't want to end up working for myself.
All kinds of Reviews are welcome :cowboy:
I have some ideas, and it would be great if you could implement those things.

First of all, it would be cool to have a folder where everyone would put those .qrts, a folder in /system (/system/QuantumThemes) maybe for us to be able to create packages of more than one .qrt and once a user flashes this package, those .qrts will be placed in this folder.

Second, another idea would be: when you open Quantum Themer it will automatically show themes from this particular folder(/system/QuantumThemes) without having the users to browse for themes in the mess of an sdcard. This way it would look more like a theme engine.

Third, how about categories or sections like: Toggles (/system/QuantumThemes/Toggles), or more specific categories like Status Bar Mods/Toggles (/system/QuantumThemes/Status Bar Mods/Toggles) those categories would be created and named by themers or ROM developers. There would be basically folders placed inside the /system/QuantumThemes and your application would just.

So, to give you a whole view of what I am thinking...

A user installs the Quantum Themer. The user flashes a CWM mod package created by someone. The user opens the Quantum Themer app. A window with all of the categories opens. The user selects a category. The category opens revealing sub categories. The user selects a sub category. The sub category opens revealing all installed mods for this sub category. The user selects a mod. A small or full screen window opens showing a preview, maybe a small description(taken from a file /.qrt/description.txt) and an Install button.

Well, that's actually a lot of things...:D

I thought it would be good sharing with you since you said you want to keep this active and update it. :highfive:

Hope I helped and I definitely hope to see such a great tool becoming better.
 
  • Like
Reactions: Adhi1419

Adhi1419

New member
Dec 22, 2012
87
519
0
23
Bangalore
Some ideas:

Would be great if you can add more than one preview pic, in just one is hard to show all things themed.

Other thing is would be nice if themes with their preview remain on the app to just choose one and apply it, I mean like CM themes so you don't have to browse in folders and choose the qrt file each time you want to apply a previously loaded theme.

And finally that the app automatically make a qrt file of the backup that the app make when you apply a theme, so you can easily apply your backup if you didn't like the theme applied.

Sorry for my English :D

Sent from my GT-I9070 using xda app-developers app
I'll add Restore feature, but it will not be a QRT file.
Thanks for your suggestion.

I tried to change the icon of the music player app but after applying the theme and restarting the icon is still the same ... does anyone know how to do this with the app ?

Sorry for my bad english
See your PM. It is due to the Binaries not being copied for some strange reason. Its very minor and easy to fix though

I have some ideas, and it would be great if you could implement those things.

First of all, it would be cool to have a folder where everyone would put those .qrts, a folder in /system (/system/QuantumThemes) maybe for us to be able to create packages of more than one .qrt and once a user flashes this package, those .qrts will be placed in this folder.

Second, another idea would be: when you open Quantum Themer it will automatically show themes from this particular folder(/system/QuantumThemes) without having the users to browse for themes in the mess of an sdcard. This way it would look more like a theme engine.

Third, how about categories or sections like: Toggles (/system/QuantumThemes/Toggles), or more specific categories like Status Bar Mods/Toggles (/system/QuantumThemes/Status Bar Mods/Toggles) those categories would be created and named by themers or ROM developers. There would be basically folders placed inside the /system/QuantumThemes and your application would just.

So, to give you a whole view of what I am thinking...

A user installs the Quantum Themer. The user flashes a CWM mod package created by someone. The user opens the Quantum Themer app. A window with all of the categories opens. The user selects a category. The category opens revealing sub categories. The user selects a sub category. The sub category opens revealing all installed mods for this sub category. The user selects a mod. A small or full screen window opens showing a preview, maybe a small description(taken from a file /.qrt/description.txt) and an Install button.

Well, that's actually a lot of things...:D

I thought it would be good sharing with you since you said you want to keep this active and update it. :highfive:

Hope I helped and I definitely hope to see such a great tool becoming better.
Thanks for your detailed feedback mate :)
1. I think /sdcard/QuantumThemer is a better place as messing around with system is not good for our device and there will be memory limitations in low-end devices. However your idea is cool and all your first 3 points were based on categories, I can take it as one great suggestion. Setting default directory to /sdcard/QauntumThemer is not tough either. I'm already working on a separate layout for displaying Description, preview and if possible a Video Playback.
2. Yes. Instead of laboriously setting up arrays for selecting Categories->Sub Caegories, a central folder on SD Card will be neat.

Thanks for your suggestions people! :)
 
Last edited:
  • Like
Reactions: geva28
Our Apps
Get our official app! (coming soon)
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone