yashsingh1/xdaforums huggingface dataset:
[Android Themes] mattmanwrx:
Correct, see below response! :)

Yes, I have compiled a a SystemUI.apk with the "modified battery" although the end user would not see it. It has the normal battery images, but just to 100. so android starts at (I think 15), but I have images 1-15 which are all image 15, next is 28, so 16-28 is all image 28.. Does that make sense? Basically there are 202 (both 0 images too), with the correct drawable/stat_sys_battery.xml pointing to each individual image!

So I have compiled this seperately, I flash it seperatley, and I can see it has worked (A small edit, it shows the battery then charge icon, instead of just charge!)... So I know that the battery mod is "working" fine. Then open the AROMA installer options, but that makes it crash all the time!

However, there are 3 different battery mods available, so instead of compiling all 3, I thought it be easier to use VRTheme system (as I used it before!)

I have had the battery mod working on another rom/phone, so I know that the battery.xml is fine to change.. In this .zip, I did also have the layout/status_bar.xml and status_bar_expanded.xml working on my phone too, it was just the battery mod that wasn't working!!

So I know they all work, just they dont all work together! When I get home from work, I will try to sort it out and start from a fresh install! Obviously with AROMA it makes it a lot harder, so I will put it all togther not in AROMA, and then split it all up after I know it works! Then I should be able to pinpoint the problem! Hopefully!!
[Android Themes] D.O.C:
Copile it with like you would to use it.modified. then insert the stock xml and pngs.....use that apk for everything to see how it would work out.

If user choose mooded systemui.apk, then insert the pngs and the modded xml.

Dunno if u get me.

Is better to compile with extra, and use less, than to compile with less and then trying to use extra.....lololol

My head hurts, otherwise I would do it for you to test

D.O.C

XDAStaff​
[Android Themes] mattmanwrx:
So compile it with the modified battery / layout xml's, and change them to "stock" if the user wants stock...?

What I didn't want to do, was to compile SystemUI.apk like 6 times for all different options! There are 4 different options for the softkeys, 3 different battery options and and 2 different layout options, so all in all 24 different compiling sessions!! lol!!! Whcih is why I thought VRTheme system would be good here!

I will get to the bottom of this! ;)
[Android Themes] myn:
Just found this thread :)

Outstanding idea. Always been a fan of Metamorph and this seems to achieve the same goal via updater-script which can be more flexible.

Thanks guys :)
[Android Themes] D.O.C:
What? Nonono

Decompile/compile just one time to add extra lines and modify public.xml, resources, etc.

Change xmls and pngs using vrtheme

D.O.C

XDAStaff​
[Android Themes] mattmanwrx:
Yes, that's I've been doing, but it just doesn't work for me.. as said, I'm trying it without the aroma, just to see what happens... And then add the aroma install after...
[Android Themes] D.O.C:
D.O.C

XDAStaff​
[Android Themes] mattmanwrx:
Nope, even with just the VRTheme (No AROMA), and a battery mod already installed, VRTHeme just can't seem to change the images (202 battery images)...

Well, it may change them, but then there is no status bar, no navigation bar, even my background (default with rom) is missing... Have to restore my SystemUI.apk...

Have no idea why it is doing that! Might just be easier for me to compile many times!!
[Android Themes] kalagas:
The most useful staff from Themers I have ever seen...

Thanks Villain Team...
[Android Themes] TaintedByte:
Awesome tool! This is great!

One small thing though, I am having issues with .9.png files, they flash just fine but don't seem properly rendered/aligned/stretched. Here's an example:

https://dl.dropbox.com/u/37252394/2012-07-08%2023.42.18.png

This is what it should look like (and how it looks like when I flash a compiled .apk):

https://dl.dropbox.com/u/37252394/2012-07-08%2006.55.45.png

I tried searching the thread and it looks like one person had a similar issue but doesn't seem like it was ever answered. If it's posssible to get around the problem it would be great and let me use it for my themes :D
[Android Themes] mattmanwrx:
Is the .9 compiled? U need to compile the .9 then take it out of the .apk (with something like winrar/7zip) then place in your folder...
[Android Themes] TaintedByte:
And this kids, is why you have a decent amount of sleep. Stupid mistake, I've been up for almost 24 hours now (not just theming, hehe). Thank you for solving something that was going to prevent me from sleeping if I tried.

This tool really is awesome. Lets people get the best of both worlds. Awesome custom functionality from devs and pretty shiny things from themers .
[Android Themes] Spannaa:
Can I replace .png files with .9.png files in SystemUI.apk using a VRTheme?

I tried, but although the .9.png files appeared in the SystemUI.apk, they don't replace the .png files

Failing that, Is it possible to delete the original .png files and then add the new .9.png files?
[Android Themes] mattmanwrx:
You need to compile the .apk - and then remove the .png you need...

Basically if you image.9.png - compile the apk and the image turns into image.png - open the apk with something like winrar/7zip and then extract the image.png and use that one! The .9 must be compiled! :)
[Android Themes] Spannaa:
But when they're compiled, they're still called example.9.png so thet won't replace example.png in the apk.

Unless you meant I could rename the compiled example.9.png to example.png, add that to the VRTheme and it'll still work like a .9.png in the apk?
[Android Themes] mattmanwrx:
Sorry you're right, they dont change name...

You must still compile them, so the .9 lines don't show!

Example attached! The (2) is compiled and doesn't show the ".9 lines"
[Android Themes] Spannaa:
Awesome - that worked!

I didn't realise that compiled .9.pngs could be renamed without the .9 and would still function as stretchable pngs.

Thanks very much :)

BTW, how did you know it was the tw_btn_default_small pngs I was working on?
[Android Themes] mattmanwrx:
Sorry, bit confused here...

You shouldnt rename them, just compile them and they will replace the already compiled .9.PNG that is in the apk...

And I just chose the first .9 I saw from a systemui.apk... :)
[Android Themes] Spannaa:
But there are no .9.pngs in the original apk - they're just normal .pngs

I want to replace the .png with .9.pngs using a VRTheme but, if I add the compiled .9.pngs, they don't replace them, they just sit alongside them and aren't used.

The xml calling the pngs just asks for "@drawable/tw_btn_default_small_normal" and this picks up the normal png rather than the .9.png

Renaming them does appear to work though...
[Android Themes] mattmanwrx:
Can u upload the .apk so I can take a look? Sounds strange... But u did say it was touch wizz framework, and.I've never really played around with that..
[Android Themes] Spannaa:
Yep, no problem, I've uploaded the original apk - it's a modded apk from the JKay deluxe framework.

The tw_btn_default_small pngs are in \res\drawable-hdpi
[Android Themes] mattmanwrx:
There are the .9.png inside the .apk...

I just downloaded the apk, open with winrar and can see the .9.png straight away... see attachment...

You should compile the .apk, open with 7zip/winrar and then pull those .9 pngs, and place them in the vrtheme folder structure!

EDIT: Sorry, i'm getting confused!! I see where too!! :)

Why would you want to replace them with a .9 if they weren't .9 in the first place?

EDIT2:

VRTheme can only replace the images, it will not add images (as far as I know)... The xml is calling the drawable via a public drawable value, it doesn't really matter what the drawable ends in, it could be a .jpg if you wanted it to be!

If you have the original .png, can you not just move your .9.png image onto that .png and then use VRTheme to cvhange it, instead of adding in the .9.png?

Anyway, if it is working for you I guess it is fine! ;)
[Android Themes] Spannaa:
That's what I thought too but it does appear to be adding images - I've attached a screenie of the contents of my SystemUI.apk after flashing the VRTheme...
[Android Themes] mattmanwrx:
Well as I said, if it works... ;) I guess the drawable public value is just gettign the drawable name (not the file extension), so I'm guessing it is working that way!! :)
[Android Themes] pulser_g2:
VRTheme is a "dumb" utility - it just dumps files into the apk. It has no understanding of 9patch or anything like that!

In some ways this makes it harder to use. In others, this makes it easier! It's as powerful as you can make it, aside from the issue of no editing of stuff within resources.arsc
[Android Themes] alvin551:
hi, Ive made a theme and put in in a normal .zip folder and it works fine but when i add it in to vrtheme template and try to flash through CWM it says bad file. The .apk's that im adding are SystemUI.apk and lidroid-res.apk can anyone help me? Thanks
[Android Themes] mattmanwrx:
Try unzipping the .zip and zipping it up again... I have seen that work for a bad status... Remember to save the compression method as store and to make it a .zip too...
[Android Themes] alvin551:
It worked thanks very much mate
[Android Themes] TaintedByte:
Okay I hate to post here again but I have exhausted all of my options and am out of ideas on how to fix this issue I'm having.

All apks work fine. I've themed SystemUI and com.htc.resources.apk just fine through the vrtheme folder method. However if I try to change anything in framework-res (tried both .9s and .PNGs) I just get my boot animation playing forever.

If I compile the apk with the same changes and flash it that way, then it works perfect. The problem with this is that it obviously becomes ROM specific if another dev changed anything on this ROM.

Thanks for any help in advance and sorry if it's been answered. I've searched and tried everything I can, came up empty.

Sent from my Evo 4G LTE
[Android Themes] TaintedByte:
Okay I have more information to the above post.

At first I thought it was maybe my device or ROM causing the issue. So I tested it on my girlfriends vanilla rooted/deodexed phone. Same issue.

Then I thought it was perhaps Sense. I tried it on my Evo 3D (with Sense 3.6) and it worked just fine.

At that point I thought it was maybe just a sense 4.0 issue, but the folks at the One X forums are having no problem using this.

Thinking it was perhaps user error I did the simplest of tweaks, downloaded the ZIP template, changed only ONE .png file and zipped it back up. Flashed it, same issue. It's very peculiar if this is indeed a device specific issue...

EDIT: Whoops meant to edit :/
[Android Themes] Harsha Raj:
I was trying to patch Mms.apk in CM10 and after flashing the zip via recovery the themeing was visible to me in messaging app. Anyways out of curiosity, I went inside the app through Root Explorer app and found that I have two res folder and two drawable-hdpi folder (my patched files were under vrtheme\system\app\Mss.apk\res\drawable-hdpi)

But when I opened the same patched apk in my PC i did not find the duplicate res folders. Strange? Here I have attached the screenshots.
[Android Themes] mattmanwrx:
From D.O.C four pages back,
[Android Themes] Harsha Raj:
Oh man I had read the whole thread and missed that post. Thanks.

Has as one tried it on CM9/10? My theme on Mms.apk and framework-res.apk works only on stock theme. When I change the theme via theme changer from settings my theme is overwritten. So I flash my zip files again but no luck.
[Android Themes] mattmanwrx:
Cm theme changer makes the image point to a different location, and doesn't change the actual image... So you be able to change a theme changer theme with villain rom themeing system...
[Android Themes] AndroidGX:
Hi guys,

Really pleased with VRTheme and want to make my future AndroidGX-MOD based with.

I have a little question, are smali files not accepted by VRTheme please ? (can't find anything on the whole thread speaking of this).

I'am asking because on my mod I need to remove AM/PM by editing "Clock.smali" located in : SystemUI.apk\smali\com\android\systemui\statusbar\policy

I tried to make the proper tree and adding the file into the correct folder, flashing success but no difference at all, AM/PM is still here.

Any idea ?

Maybe is this planned in future versions ?

Any answer will be appreciated!

Many thanks for this great idea :good:
[Android Themes] mattmanwrx:
I would have to say no... Vrtheme doesn't decompile the apk, it just changes the images/xml files inside of it... So the smali files aren't visible when vrtheme runs...
[Android Themes] AndroidGX:
Ok many thanks for your quick answer :good:

Too bad for me, then I will forget the AM/PM removed ;)
[Android Themes] wewoapsiak:
Hey guys when trying to add to 0.4.1 I get an "Archive is Corrupt" error, doesn't matter if I download from the attachment or the link.

Sooooo I didn't read :eek: like I should have and bricked my SGS3 using 0.4.0 (Which downloads as 1.1). I thought I fat fingered things in CWM (Still not saying I didn't), but then I read and saw other people had bricks earlier. If only I would have read! Oh well, replacement is on the way and I was due for a brick anyway.

I'm assuming the update to 0.4.1 fixed this? Since I'm getting the corrupt error can I just swap over the updater script and delete the bootlogo folder? Or did something else change I'm not seeing?

Thanks as always.
[Android Themes] Lantek23:
The version I'm using is 3.6 its a galaxy s2 template its in the op. I have been using it for over a month on my themes on the galaxy s3 tmo no issue at all.
[Android Themes] wewoapsiak:
Thanks nice to know it works on the S3, I used that version on the G2x for a while. Just though I'd update before I started on the S3
[Android Themes] Lantek23:
You welcome, I'm sorry it bricked you phone
[Android Themes] nizzle1:
Hi :) I use the 0.3.6 version which works fine on my Galaxy S III but however when I updated my CWM version from 5.5.0.4 to 6.0.1.2, I get the this [ERROR] We need at least one sdcard mounted! Please check the MOD.config, What do i need to edit in the MOD.config to get it to work?? :)
[Android Themes] D.O.C:
Use /cache instead of /sdcard at the program.
[Android Themes] nizzle1:
I did that and then I flashed the zip again, now I get the error: [!] Impossible to mount /system!

: [!] Impossible to mount /Utmp!

I'll upload my MOD.config as I don't know what exactly I'm doing wrong :\
[Android Themes] MattBooth:
I've been having a lot of issues with the VRT system using other peoples themes (and thus not being able to even make my own).

I finally figured that using CF-CWM 1.5 works and correctly themes system/apps as per a theme I was trying to use.

With that in mind, I immediately ripped the firefox apk from my phone and set to work changing the icons from the theme to test whether it will work.

It doesn't :(

After flashing, none of the icons change on the app (Firefox) and when I pull the APK from the phone and open it up, none of the changes have been copied over. Also, in the backup folder, there are only backups for the system apk's that, none of the data/apps APK's are in there (in this case, just firefox).

So, I surmise that the VRT system isn't theming data/apps at all :(
[Android Themes] mattmanwrx:
http://xdaforums.com/showpost.php?p=16493912&postcount=23
[Android Themes] MattBooth:
That's a right and proper bugger :(

I just got ti to change the icons too but then it wouldn't run or install, which makes sense according to that post.

Ah well :(

---------- Post added at 05:11 PM ---------- Previous post was at 05:09 PM ----------

Would moving apps to system/app work around that? I only have a couple I want to theme...

---------- Post added at 05:41 PM ---------- Previous post was at 05:11 PM ----------

To answer my own question... yes. Moving them to system/apps lets you theme them :D
[Android Themes] mattmanwrx:
If you open up the installtheme.sh script, and look through it, you can add data/app, however, they obviously took it out for a reason...

Moving it to system/app doesn't overcome the problem of broken signatures as the market apps need a .keystore certificate which the app builder creates, so the certificate would be a mismatch... Just my thoughts though, could be completely wrong...
[Android Themes] MattBooth:
It correctly themes the app and Titanium Backup can backup the app and restore the app. However, I don't backup system apps and it would create problems that way.

I converted the app to a system app

Themed it

it worked perfectly, along with my changes.

I decided not to bother though as I don't know how it'll affect other stuff. So, I'll stick with desktop visualizer.
[Android Themes] mattmanwrx:
D.O.C. - I hope you remember me :) - I had all the difficulties with a battery mod... our conversations are around these pages - http://xdaforums.com/showthread.php?t=1207017&page=19 to refresh your memory :)

Anyway, I stopped trying that, and moved onto my ONE X... But it is giving me the same problems...

I have had a theme/mod that works well with the One X using VRTheme system. That can be found here - http://xdaforums.com/showthread.php?t=1619380

Now that HTC have released a newer base, I wanted to incorporate that with it, and using AROMA made the relevant tweaks to the .zip and added all the necessary files...

I then compiled a SystemUI.apk to have 100 battery images and 100 charging images (so that VRTheme can theme them). That all goes well, I flash that and have a battery mod. No harm done, all is working at this point.

I then flash the AROMA based VRTheme, everything gets installed correctly, and I reboot. Upon the system starting, I have no status bar at all, plus my wallpaper defaults to the ROMS wallpaper...

Looking in root explorer, I can see that the images got themed, but, why does the Status bar not show at all? It is very weird, and I can't make anything of it!! I've tried several different things -

Flashed just battery mod - works fine

Flashed battery mod and VRTheme - Doesn't work

Flashed just the VRTheme - works, but doesn't have the battery mod (only has increments of 10)

~~~~~~~~~~~~~

I have redone the battery mod many times

I have even tried to compile the battery mod and use the drawable/stat_battery.xml (compiled)

All with no luck at all...

Is there anything that you could point me to that might be stopping this from working?

I've tried everything I can think of.

In my VRtheme project, I theme SystemUI, framework-res, Message, GTalk, Gmail, PSCS (USB connectivity for HTC), Mail and Music. And would not like compile all of them for every update...

Any help would be appreciated. I will attach the battery mod, but the AROMA based VRTheme might be too big to upload, so I will link to it..

Kind regards,

Matt

P.S. the SystemUI I modded was for the ViperX Rom from the Venom team for the One X (international Tegra 3 version).

Link to the Status-Bar-Mods1.zip
[Android Themes] _JKay_:
Use it and love it! Thanks!

But how do I go from a .9.png to a .png and vice versa ? (does it support switching from pngs to nine patch pngs? )

Can it delete files ?

Thanks!
[Android Themes] Spannaa:
I also wanted to know this (starting back on page 20) and it looks like you can't switch between .9.pngs and .pngs or delete files.
[Android Themes] _JKay_:
Thanks... I'ts not difficult to add a delete section... where we can put zero length files (file names) of the files we want deleted... But I would like someone else did it.... It's always nice to have someone to blame :)
[Android Themes] silverxbv2:
Any help with getting this to work on sense 4.1 for the EVO LTE. It seems to flash but nothing changes

Sent from my ADR6425LVW
[Android Themes] mattmanwrx:
It does work as my status bar mods work with sense 4.1...

Upload so we can look it over? (i won't be able to look it over until tomorrow morning though).
[Android Themes] silverxbv2:
Well, let me rephrase that. The vrthemes that worked on the last build no longer work on this build

Sent from my ADR6425LVW
[Android Themes] mattmanwrx:
Still, if you upload it I can take a look? Also link to a rom that a user would be flashing this over?

I did have to play around with mine a bit... But mine is AROMA based and can be flashed for the older or newer base... With different colours and battery mods...
[Android Themes] silverxbv2:
Well, the Rom is not done yet. I'll see if I can get someone to post the vr they are trying out. I don't have that phone so I can't test it out personally. You can take a look at any of those. They all work on sense 4.0 but not sense 4.1

Thanks

http://xdaforums.com/showthread.php?p=29311351

Sent from my ADR6425LVW
[Android Themes] Gadgetz:
So I have a GS3 running the ROM and kernel in my sig.....I want to get into simple themeing like circle battery mods and such. So I just flash the zip in the OP and get busy?
[Android Themes] mattmanwrx:
Sorry, you linked to the rom, I actually wanted the vrtheme, or is it in that thread somewhere?

---------- Post added at 08:21 AM ---------- Previous post was at 08:19 AM ----------

If you want to get into theming I suggest doing it the old fashioned way...

I know a good post to get you started on a battery mod - http://xdaforums.com/showpost.php?p=19760562&postcount=3
[Android Themes] silverxbv2:
Sorry. Look at my post. #6 I believe

Sent from my ADR6425LVW
[Android Themes] mattmanwrx:
Just had a really quick look...

I downloaded the ICS_Tranquility_rls2 rom, and the glass battery mod.. Is the glass battery mod to be used with this RLS rom?

If so, that is your problem, the ROM's SystemUI.apk doesn't have a battery mod, so you're replacing images that aren't there... You'd need to create the battery mod, flash it over the top of the rom, and then VRTheme the contents... if that makes sense...

If it isn't thatr, and is something else, please point me in that direction...
[Android Themes] silverxbv2:
That's not it. We have a modded systemui that it works on. But the same vr with the new systemui from 4.1 with the same mods don't work. I think it might be an updater script or binary issue

Sent from my ADR6425LVW
[Android Themes] mattmanwrx:
can you hot link to that one, so I can take a look? Save me looking for the non working one..?
[Android Themes] lichti1901:
Hi guys. Thanks for the awsome Theme System.

I want to use it with Galaxy Nexus. I copied the updater.binary from my actual mods (flashable CWM.zips) and modified the updater.script

But after flashing nothing changed. Can anybody tell me what is my mistake?

Help is much appreciated :D
[Android Themes] mattmanwrx:
Cache size of gnex?

I'll look at it tomorrow when I'm at my PC...
[Android Themes] lichti1901:
what cache size?

system partion has 341mb total space. Do you mean that?

thanks for help :highfive:
[Android Themes] mattmanwrx:
The galaxy nexus, how much cache does it have? I guess it is enough for vrtheme to do its magic?
[Android Themes] lichti1901:
I´m pretty sure it´s enough :laugh:
[Android Themes] mattmanwrx:
Hi,

You 'umount' the sdcard, but you don't actually 'mount' it... that could be your problem...! ;)

ummmm..... secondly... in cleanup.sh, installtheme.sh, zip, and zipalign are all empty... could be my download, but it seems that it could be that...

try downloading from the one on this first post (sdcard version and not cache version)and then just pop your images in there and see if it works...

3rd edit - to make it easier for you - just drop these files in the vrtheme folder - and mount the sdcard in the updater-script... see if it woks then...
[Android Themes] lichti1901:
Thanks. Will try it tomorrow and report back. I have no Laptop today :(

Thanks for help! Really great support here! :highfive:

Edit: dont work. I used the files u sent me, changed the updater script.

Flash went ok without errors, but nothing changed.

I attach the zip what i flashed. I hope you can look into this :)

Edit 2: I changed recovery, from TWRP to CWM and flashed it a 2nd time, now i cant go over the bootani. So something went ok, and something not ...