yashsingh1/xdaforums huggingface dataset:
[Android Themes] PanchoPlanet:
Would this work on stock rooted, or do I need a custom rom with aroma baked into it.

Did you incorporate it into your rom?

Can't deal with all the green and white.

Pp.
[Android Themes] Spannaa:
Just build and flash

Yes, although if you're replacing xml files you'll need still need to decompile, edit and recompile

Yes, vrthemes will work on stock, rooted roms
[Android Themes] The Sickness:
I applied it to my rom. Which now allows any vrtheme based mod to be flashed in my Aroma.

Not sure on stock rooted. I don't see why it wouldn't.

Sent from Insane S4

SICK MADE DEVELOPMENT
[Android Themes] DARKCHYLDX101:
Is there an update for 4.4 Roms which includes system/priv-app. I tried to modify vr install script to include those apps but failed.
[Android Themes] Spannaa:
The updater-script should be OK as it is but you need to modify vrtheme\installtheme.sh to include the priv-app folder.

I've made an empty template for the Nexus 7 @ Android 4.4 which may work for you ;)

Grouper_4.4_Empty_VRTheme.zip - 569.57 KB
[Android Themes] DARKCHYLDX101:
I'll give this a try Thanks. Update: Comparing yours to mine. I was close but not on the money. Missed some things here and there. I can see why my script didn't work. Thank you again.
[Android Themes] Spannaa:
No problem - glad it worked for you.
[Android Themes] upndwn4par:
I made some small changes to the theme install script to account for the new /system/priv-app folder found in KitKat for the Nexus 5.

I posted a thread that can be found here:

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

Download:

VRTheme-template_Nexus5_v1.0
[Android Themes] Spannaa:
Pretty much the same as the Grouper_4.4_Empty_VRTheme.zip I posted above ;)

Great to see others are still working on and using VRTheme zips :good:
[Android Themes] upndwn4par:
I wish I had seen your post sooner. I spent a couple of days fixing my own typos. :cyclops:

I put the VR Theme System right up there with Aroma - I can't imagine building a ROM without it. :)
[Android Themes] ineedone:
i was trying to solve this puzzle myself but didn't succeed, somehow it didn't work. glad i found your installtheme.sh which works perfectly :good:

so on to the theming :)
[Android Themes] rodman01:
Many thanks for your empty zip file for kk :good:. It is working great with KK 4.4.2 and my Galaxy S1, but only with twrp recovery. With cwm it doesn't complete and don't get back to the cwm menu. If I power the phone off and reboot it again, the files/pngs included in the zip haven't changed in ui. Has someone an idea and can help?
[Android Themes] Spannaa:
AFAIK, the only difference between the TWRP & normal versions in the first post is \vrtheme\zipalign

Not sure if it makes any difference but you could try swapping the one in my template with the one from Universal-VRTheme-template-v.0.4.1.zip
[Android Themes] rodman01:
Many thanks for the advice. I tried it and copied the universal zipalign from first post in your empty zip file, but unfortunately it doesn't work. Same result on cwm like before: stopped after ui message: cleaning up and rebooting your device. And additional it doesn't work proper with twrp anymore neither. Installation or update is running normal, but after reboot not all of the files/pngs were changed. I also tried it with changing the installtheme.sh, but also with no success...
[Android Themes] Spannaa:
If I get the time, I'll have a go with CWM instead of TWRP on the N7 via Wug's toolkit and see what's occurring...
[Android Themes] spiderio:
awesome - i need to start learning how to use it
[Android Themes] Shaftamle:
Is it possible to use this to theme a user app? I'm guessing no since the apks need to be signed. Anybody?

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/
[Android Themes] Spannaa:
It depends on the app but usually no.
[Android Themes] blulite:
Not sure if someone wants to update installtheme.sh, but I've made it work both with the latest TW updates and should be more flexible for changes in the future.

#!/sbin/sh
# Copyright VillainROM 2011. All Rights Reserved

WKDIR="/sdcard"

# cleanup from last time
[ -d $WKDIR/vrtheme-backup ] && rm -r $WKDIR/vrtheme-backup

cd $WKDIR/vrtheme/
for r in $(ls)
do
if [ -d $WKDIR/vrtheme/$r ]; then
cd $WKDIR/vrtheme/$r
for s in $(ls)
do
echo "Making directories for /$r/$s"
busybox mkdir -p $WKDIR/vrtheme-backup/$r/$s
busybox mkdir -p $WKDIR/vrtheme/apply/$r/$s
cd $WKDIR/vrtheme/$r/$s/
for f in $(ls)
do
echo "Backing up $f"
cp /$r/$s/$f $WKDIR/vrtheme/apply/$r/$s/
cp /$r/$s/$f $WKDIR/vrtheme-backup/$r/$s/
echo "Zipping $f"
cd $WKDIR/vrtheme/$r/$s/$f
$WKDIR/vrtheme/zip -r $WKDIR/vrtheme/apply/$r/$s/$f *
echo "Zip Aligning $f"
cd $WKDIR/vrtheme/apply/$r/$s
mkdir $f.aligned
$WKDIR/vrtheme/zipalign -f 4 $f ./$f.aligned/$f
echo "Copying $f to /$r/$s"
cp ./$f.aligned/$f /$r/$s
chmod 644 /$r/$s/$f
done
done
fi
done

# Do not remove the credits from this, it's called being a douche
echo "VillainTheme is done"
# we are all done now
[Android Themes] jrbxx7:
Thanks for this great bit of knowledge!!:good::good:
[Android Themes] marekboss:
Hi guys, can be used Grouper_4.4_Empty_VRTheme also on user applications? Thank you and have a nice day.
[Android Themes] Spannaa:
See post #357 (three above yours) ;)
[Android Themes] andrewwright:
Can this be use with aosp 4.4.3? System/priv apks/framework?
[Android Themes] Spannaa:
The version I posted here should work on 4.4.3 as there were no changes made to the file system.

Sent from my GT-I9300...
[Android Themes] andrewwright:
[MENTION=2948558]Spannaa[/MENTION] yes thank you I see that zip and downloaded it and will test it today. Can I be cheeky and ask...is there a limit to how many apk or png you can add.
[Android Themes] Spannaa:
No, there's no limit, it'll just take longer to flash.

Sent from my GT-I9300...
[Android Themes] andrewwright:
I just tried you're zip and I can't get it to work on 4.4.3 aosp. I've put files in folder's like this...

Vr theme

System

App

Name of app "latinIME.apk"

Drawable-xhdpi

Then the pngs in here.

Zipped up and flashed but nothing happened to keyboard. Can I ask what I did wrong. Sorry for all the questions :(
[Android Themes] Spannaa:
What device/rom are you running?

Check inside the apk on your device using root explorer - is there now a drawable-xhdpi folder containing your pngs directly inside the apk?

On my Nexus 7/4.4.3 the path to swap pngs in the drawable-xhdpi folder in the keyboard is:

\vrtheme\system\app\LatinImeGoogle.apk\res\drawable-xhdpi

So:

Did you miss out the \res\ in the path?

Are you sure the apk name is correct?

Are you sure the pngs shown on your device are from drawable-xhdpi?
[Android Themes] andrewwright:
Yes the pngs are there in the system/app apk. I'm using aosp keyboard and I copied the name OK from original apk.

Res is there and name is OK and pngs are there and from xhpdi but no joy :( I'm using AOKP 4.4.3 official. Does that matter with vr? I can go to neatrom 4.4.3 slim.
[Android Themes] Spannaa:
Attach your flashable zip and I'll take a look ;)
[Android Themes] andrewwright:
Thank you for you're time.

https://mega.co.nz/#!NgUBmTYa!3G-mH7OQq5p9BSyp4ZDTmRRev3fz3_Z7rf3Udb1eLFY

Please don't point out too much "how" stupid I am.

BTW I'm trying on i9300.
[Android Themes] Spannaa:
The zip itself appears to be OK, with everything in the right place but the pngs are all .9.pngs and they're all decompiled (except one).

.9.pngs need to be compiled before dropping them into a vrtheme (as do xmls).

[EDIT] If this doesn't work, post everything that appears on the screen when you're flashing it. [/EDIT]
[Android Themes] andrewwright:
Sorry I can't take a shot of the screen when its flashing. Script runs OK and says complete I think as its so quick a flash its hard to see what is put. Defo not fail.

For compiled pngs?? How is that done? Pulled from compiled modded apk then added to vr?
[Android Themes] Spannaa:
Yep, pulled from your modded, recompiled apk or compiled with a .9patch compiler

So, did it work with compiled .9.pngs?

If not, do you have a vrtheme-backup folder on your internal sd card containing the original apk?
[Android Themes] andrewwright:
Thank you for the link:thumbup:

Sorry no it didn't work.

No vr back up folder found on int.
[Android Themes] Spannaa:
Maybe a rom issue then...

Are you flashing from internal or external SD (internal recommended)?

What recovery are you flashing it in?
[Android Themes] andrewwright:
Yes from internal SD and cwm 6.0.4.4

Just checked the pngs in system/app latinIME.apk and there now back to stock? I'll try a different apk and test it. Is there and difference if I theme say dialpad in priv-app? So it would be folders..

Vr theme

System

Priv-app

Dialpad.apk

Ect ?

Folders I did was OK before.

Also for XML can I just add values/colours.xml folder or do I make a new colours.xml and ad just the lines I'm changing. I'm sorry to take up so much time and I'm very grateful for you're input and help. :thumbup: top man.
[Android Themes] Spannaa:
Back to stock? If the VRTheme didn't work then they'd still be stock wouldn't they?

Re: dialpad - yes, but make sure the VRTheme folder structure matches the path inside the apk (including res).

xmls have to be recompiled before adding them to a VRTheme so you can't add xmls from the values folder as there is no values folder in a recompiled apk!

The values folder is compiled into resources.arsc so you have to add this instead.

Sent from my GT-I9300...
[Android Themes] andrewwright:
What happened with my zip the apk in system/app changed the colours inside this apk but didn't set on screen. You're zip has set them back to stock colour grey not blue.

I've never messed with compiled apks till there decompiled :( And from what I read on this thread the resources.arsc is put next to res folder.
[Android Themes] Spannaa:
Your zip and my zip contain exactly the same pngs - the only difference is that mine were compiled versions of yours.

If they were changed, it means the vrtheme flashed OK doesn't it?

If the pngs were changed in the apk but don't show on the screen then there must be different pngs, or another set of pngs in another folder that need to be themed.

Yep, resources.arsc goes next to the res folder at the root of each apk.
[Android Themes] andrewwright:
Maybe I was looking in the wrong folder before but now they haven't set inside the apk? I was guessing that klp was right. I'll try ICS png's. I'll post when I have success. Again thank you for all the info.
[Android Themes] ZeuBug:
Reboot and tried with another launcher, no success... :-(

Hope one day it would be possible...

I had enough to theme each app of my phone... :D

I have an UOT kitchen battery theme in my framework/twframework/systemUI apks. I have difficulties to find the good files to add to the template (without speaking of xml/png battery files in framework-res.apk).

I have made tests with all files inside these 3 apks.... f...... % battery theme....

Any idea?

Thanks!
[Android Themes] wewoapsiak:
Works as advertised! Simply put the bootanimation.zip in the /raw/data/local/ folder and it was good to go. Thanks to all of you for this.
[Android Themes] pulser_g2:
Hmmm... We might need to remove /data/app support for theming, as it's a horrendous idea tbh, since it will break market signatures... You need to resign data apps, as they won't work with "broken" sigs, while system apps WILL work (hence this theming method works).

So I think what's best is that we remove /data/app theming support, though insertion of full signed APKs into /raw/data/app would be possible... But doing so needs a new sig, so anyone using the old original APK won't see the newo ne until packages database was purged of the old sig...

So summary? If app is on /data, don't go near it :)
[Android Themes] ZeuBug:
With playing a lot with data/apps for theming, I think same as you.

Not possible to play with that! :-(

Another thing: it will be the same bad result with system apps with market updates, gmail, vending, etc... I have also had the problem because almost each app of my rom is themed....

edit: and for % battery theme too!
[Android Themes] explodingboy70:
First off I love the idea, love it.

Now I'm not sure if this is supposed to work on other phones, in my case Vibrant SGH-T959. If it is supposed to work on different platforms can someone tell me what I'm doing wrong? Heres what I've done...

Decompiled all apk's from the theme I want to use, in this case Matted Blues.

Deleted everything from within the files that I don't want or need including xml's. I did it that way to keep my file structure and names proper.

Next I opened my APk's with 7zip and copied the non-decompiled xmls (basically just the color file) that I wanted to my newly created files.

I then moved all of these files to the template provided.

When in recovery it flashes and tells me that it is doing everything that it says in the updater script. I am not, however, seeing anything related to either of the sh files so no install or cleanup.

Any help would be greatly appreciated. If my problem is the fact that it isn't supported across other devices then how can I do that. BTW I am running the latest leaked I9000 JVR build.
[Android Themes] seshmaru:
What works for most devices is simply grabbing another updater-binary file from another .zip made for your device, since this has given multiple1 issues on multiple devices so far.
[Android Themes] dully79:
I'm running VR2.4.2 on a SGS2 and after ALOT of playing around iv'e come to the conclusion this does'nt support multiple apk's being modified.:(

I tried time and again to flash a theme with no changes what so ever.

I tried flashing just one apk mod and it worked.

Unless i'm being a spacker and missing something blatantly obvious can anyone confirm this please?
[Android Themes] seshmaru:
Multiple APKs in the same folder?
[Android Themes] trailblazer101:
Hmm... I can't quite figure out why, but it is not working right for me.. My framework-res.apk file is exactly the same after flashing....

I managed to do some debugging, and i found out that the file file is actually created, but it doesn't copy it over for some reason...

within the VRTheme folder (which i prevented from being deleted so i could check out the contents) the framework-res.apk file is in apply/system/framework/framework-res.apk...

So i tried editing the install script, all the way down at the bottom, and i changed the code from from cd /cache/vrtheme/apply/system/framework/aligned/ to cd /cache/vrtheme/apply/system/framework/ and it worked!

All i can guess is that the file isn't getting aligned for some reason, so that folder/file is never created, but the script is still calling for it...

Can you please let me know if my fix is acceptable, or if there is something off with it that can be fixed and would allow it to be aligned therefore creating the folder and the file? :)

-trailblazer101
[Android Themes] dully79:
The layout is as follows

vrtheme/system/app/

*Browser.apk/res/drawable-hdpi

*Contacts.apk/res/drawable-hdpi

*Email.apk/res/drawable-hdpi

*Mms.apk/res/drawable-hdpi

etc.

you get the idea

Looking inside the "modified" apk's in the system/app directory there are 2x res folders, each res folder containing 2x drawable-hdpi folders, is this right:confused:
[Android Themes] seshmaru:
What device was this on? On both my SGS2 and transformer only 1 of each folder is present.
[Android Themes] D.O.C:
Sesh, that has happened to me too, and it happens with metamorph aswell....I believe that it is replacing existing pngs on drawablle-hdpi or whatever folder, but, when adding a new one (that previously did nkt exist (ex a new png file) it creates a new res folder with all structures inside the apk, thus duplicating the /res folder.....that is my theory.
[Android Themes] explodingboy70:
Thank you. The tip was a start. I did however have to modify the updater script as well as the installtheme.sh and cleanup.sh. Removed the word "cache" from all three and replaced with "tmp".

The only other thing I'm seeing is that 9.png images aren't working proper, popup windows and such. Not sure if this has to do with the zip or zipalign files or not (they were good pulled from properly decompiled APKs). I'm also getting FCs on a lot, ones that I did like email and galley3D, and ones that I didn't touch, Quickboot.

Like I said this does look very promising. I'm going to play with it more and see if I can eliminate some of my issues. Any input is greatly appreciated.
[Android Themes] seshmaru:
Well that's easy enough to test, I'll check it out if I can find some time :)
[Android Themes] pulser_g2:
If you have issues with actual applying of themes, please post your zip and the device it is for.

Also, if you are testing things, you can set this up in the device and run it via adb shell :)

I think that there is good potential here, but I am not a themer and don't know what you change in a theme, other than some png files...

But afaik the system should work ok with multiple apk files in each folder...

For error 0 things, put in updater-binary from a zip working on your device :)
[Android Themes] wewoapsiak:
Just an FYI, so far I've used this to edit 4 apk files in the /system/app/ directory and the framework-res.apk, also added a bootanimation.zip, all at the same time. This is change png files, xml files, and the resources.arsc files. Everything has went smoothly, no doubles.

As far as running via adb shell, how would one do that?
[Android Themes] pulser_g2:
Unzip your theme zip. Push the entire vrtheme folder, so that inside /cache/vrtheme you see the installtheme.sh and other folders.

Then you can do

adb shell

cd /cache/vrtheme/

./installtheme.sh

:)

That will do the trick I believe, unless seshy has changed anything since I last looked :)
[Android Themes] ZeuBug:
First, here is an updater-script with a different ASCII text, which, I think, appears better while flashing.

I have made some concessions about my theme, especially 1% battery theme, and some system apps as Gmail 2.3.5, MMS, etc... Here is my results:

- "FULL" wipe and fresh install of Villain 2.4.2

- made a 0.3.4 version with only framework-res.apk (318 pngs, 1 xml), twframework.apk (25 pngs) and SystemUI.apk (141 pngs) : SUCCESS !!!

- added in vrtheme/system/app: Contacts.apk, Gallery3D.apk, GoogleQuickSearchBox.apk, MediaProvider.apk, Phone.apk, Settings.apk, SystemUI.apk, Talk2.apk, TouchWizCalendar.apk + some audio UI oggs, bootanimation, camera+video player from villain tweak, KE7 MMS.apk themed: ERRORS !!!

- "FULL" wipe and fresh install of Villain 2.4.2

- ... I spend a dozen of tests...

- made a 0.3.4 version with everything above with the exception of "Talk2.apk" and "Gallery3D.apk": SUCCESS !!!

I am near to post my version in SGS2 Theme thread! ;-)

I'm waiting for your comments about that. PM me if you want to test this theme on your SGS2, before release into the wild...

Cheers!

ZeuBug
[Android Themes] seshmaru:
Nope, that should work fine.

Thanks for the info. Any log?
[Android Themes] ZeuBug:
http://xdaforums.com/showthread.php?p=16523055#post16523055
[Android Themes] Spannaa:
Just a thought:

Are you sure the apk is named latinIME.apk and not LatinIME.apk - it matters ;)

Try the attached zip...
[Android Themes] andrewwright:
Didn't spot that :(

I get what to do with vr theme now and again many thanks for you're time and work into this.
[Android Themes] Spannaa:
Not a problem mate - always happy to help people who want to learn to do stuff for themselves :good:
[Android Themes] andrewwright:
Many thanks mate
[Android Themes] andrewwright:
Edited :(
[Android Themes] parkerj7uc:
If we drop the xmls in? they have to be recompiled. so do we need the resource file?

Deadly Venom Rom cCc Themed S4 AT&T
[Android Themes] andrewwright:
Yes
[Android Themes] Spannaa:
xmls have to be recompiled before they're added. resources.arsc only needs to be added if you've edited any xmls in the values folder.

Sent from my GT-I9300...
[Android Themes] parkerj7uc:
cool. good info. Thank you.

Deadly Venom Rom cCc Themed S4 AT&T
[Android Themes] parkerj7uc:
I have made a aroma but having a problem. In the aroma there is nothing that has to do with email but after themed email.apk starts force closing. Any ideas or pointers.
[Android Themes] upndwn4par:
Some pngs in framework-res are shared with apps. Might have a broken 9-patch png somewhere.

Sent from some device using XDA Premium mobile app
[Android Themes] andrewwright:
With tw 4.3 resources.arsc from systemui all works OK ish. But with aosp 4.4 KitKat it fc every time. Compiled apk is very clean and OK. Anyone have this problem? Like I say tw is OK but not aosp. I've been trying this for weeks and can't get it work not fc. Any help I would really be grateful. BTW I have an i9300 for reference :thumbup:
[Android Themes] Spannaa:
If you're using an up-to-date VRTheme template for AOSP 4.4 then your issue could well be down to the version of apktool that you're using to decompile/recompile SystemUI.apk

Which rom is it from?
[Android Themes] andrewwright:
Neat ROM 4.4 aosp. Didn't think about apktool being the problem as its OK with cm roms. :thumbup: I'll see if a different version help's. Many thank [MENTION=2948558]Spannaa[/MENTION] :D:thumbup::thumbup:
[Android Themes] Spannaa:
You can see if it's an APKtool issue by pushing your modded, recompiled SystemUI.apk straight to your phone (permissions set to rw-r--r--) instead of extracting the modded files from the recompiled apk and flashing them in a VRTheme.

Since NeatROM 4.4 AOSP is based on SlimKat, you probably need to use the Slim APKTool compatible with TRDS and KitKat.
[Android Themes] Shrewdy:
Hi,

I am facing some strange issue with the templates provided in OP.

I have downloaded both types of zips provided in the OP.... now i just opened the zip using 7zip and wanted to drag and drop the files/folders into the zip ..... but it wont let me ... it throws me some "Not Implemented" message !!

Then i extracted the zip to a folder and it extracted all fine ... after placing all the necessary files/folders i tried to zip it (again using 7zip) and it still throws me the same error "Not Implemented"....

I am wondering whats Not Implemented.... any help ??

Thank you
[Android Themes] Spannaa:
Extract & re-zip...

7-Zip: Extract zip from first post to [FolderName] then inside the folder that you've just extracted, 7-Zip: Add to [FolderName].zip

Be aware that the zips in the first post may not work with all roms though ;)
[Android Themes] Shrewdy:
Thanks buddy...and thats pretty much

what i am trying to do...

I extracted the contents to a folder...made necessary folders inside the system folder....added files in respective folders ...

Now when i try to zip it again it gives me that error!!!

Thanks
[Android Themes] Spannaa:
What I meant was for you to extract the zip from the first post & then re-zip the extracted folder to give you a working VRTheme.zip

Do this first and then add your stuff...
[Android Themes] andrewwright:
Yes its fc when pushed. Many thanks for the info and link.
[Android Themes] Shrewdy:
thanks bro ... that worked .... but when i flashed nothing really happened ...(i mean the theme did not take effect)....

will have to analyse what went wrong and where .... coz i got no errors at all......

Thanks anyways :good:
[Android Themes] Spannaa:
What apk(s) were you trying to theme and on which rom?

If you're trying to theme any kitkat apks in \system\priv-app, the VRThemes in the first post won't work as their installtheme.sh doesn't cover this folder.

Try using the VRTheme template attached instead ;)
[Android Themes] Shrewdy:
thanks for the updated info .... i downloaded your attached zip file and tried the same but still nothing happened....no errors....no effects...

here is what i did....

1. Downloaded your zip file and made a copy of it and renamed it as i wanted.

2. Opened the zip file using 7zip and copied my SecSettings.apk folder to the priv-app folder...

3. Files were successfully copied and then i flashed the same on my device...

Sadly none of the icons changed ...

I hope i am not skipping any steps... this should have been simple ... ! Please help :confused: