[MOD] Villain Theme System ( VRtheme ) for XXLSJ/XWLS8 - Galaxy S II Themes and Apps

While preparing JB Style for XXLSJ I've seen that we needed a proper VRTheme templatefor the new partitions ( /preload ) in our new systems. This will probably change in the future as Samsung releases the final version... but meanwhile... you can use this template to build mods.
No need to replace the entire SystemUI for battery images. This is not my work, I just simply adapted the original template.
Source:
http://forum.xda-developers.com/showthread.php?t=1207017
http://www.villainrom.co.uk/forum/threads/about-villaintheme-system.4971/
Download:
http://depositfiles.com/files/6lj80t3aa

Crussader said:
While preparing JB Style for XXLSJ I've seen that we needed a proper VRTheme templatefor the new partitions ( /preload ) in our new systems. This will probably change in the future as Samsung releases the final version... but meanwhile... you can use this template to build mods.
No need to replace the entire SystemUI for battery images. This is not my work, I just simply adapted the original template.
Source:
http://forum.xda-developers.com/showthread.php?t=1207017
http://www.villainrom.co.uk/forum/threads/about-villaintheme-system.4971/
Download:
http://depositfiles.com/files/6lj80t3aa
Click to expand...
Click to collapse
Thanks for sharing this Mods for Create new things.

dark_zhero said:
Thanks for sharing this Mods for Create new things.
Click to expand...
Click to collapse
i tried using it but went into boot loop..
all system\app files including systemui.apk which were before in systems\apps will be now in preload\symlink\system\app ??
or will the systemui.apk reside somewhere else ??
and the folders with the modified pngs will be named like systemui.apk ?? with the the extension ??
Thanks

xinfinityoO said:
i tried using it but went into boot loop..
all system\app files including systemui.apk which were before in systems\apps will be now in preload\symlink\system\app ??
or will the systemui.apk reside somewhere else ??
Click to expand...
Click to collapse
exactly... in deodexed ROMs they're located in there ( preload\symlink\system\app ). If I recall correctly, in odexed ( stock fro sammobile source ) they're still on system/app.... check where they are before patching using a root file manager.
xinfinityoO said:
and the folders with the modified pngs will be named like systemui.apk ?? with the the extension ??
Thanks
Click to expand...
Click to collapse
you have to recreate the folder structure of the file you're trying to mod
SystemUI.apk / res / drawable-hdpi ( for example )
Check one of my mods to see what I mean

Crussader said:
exactly... in deodexed ROMs they're located in there ( preload\symlink\system\app ). If I recall correctly, in odexed ( stock fro sammobile source ) they're still on system/app.... check where they are before patching using a root file manager.
you have to recreate the folder structure of the file you're trying to mod
SystemUI.apk / res / drawable-hdpi ( for example )
Check one of my mods to see what I mean
Click to expand...
Click to collapse
i did as what you have said ..but boot loop ..will check the systemui.apk location and try again
thanks

xinfinityoO said:
i did as what you have said ..but boot loop ..will check the systemui.apk location and try again
thanks
Click to expand...
Click to collapse
are you using .9.png files? They must be compiled before so you can use them

Crussader said:
are you using .9.png files? They must be compiled before so you can use them
Click to expand...
Click to collapse
Is that so? I never knew that
So quick question... If I change the hue of. 9 image I can't drop straight into an apk? It has to be recompiled 1st? If that's the case, that explains a lot. Thanks for the heads up on this. Every time I did this previously the image got distorted so i gave up touching them and just changed normal pngs.

Related

[Q] Theming: Including the 9-lock-mod in a theme

Can anyone please point me to a tutorial (or write one) on how I can "inject" the 9-lockscreen-mod into the theme I'm currently running?
I have both the CWM-zip for the theme, as well as the source for the 9-lock-mod.
As I understand it there are 3 files that needs modification:
- framework-res.apk
- framework.jar
- android.policy.jar
I have modded the framework-res.apk using APK Manager (although I haven't tested it). But I'm unsure as to what I'm supposed to do with the .jar-files.
whaave said:
Can anyone please point me to a tutorial (or write one) on how I can "inject" the 9-lockscreen-mod into the theme I'm currently running?
I have both the CWM-zip for the theme, as well as the source for the 9-lock-mod.
As I understand it there are 3 files that needs modification:
- framework-res.apk
- framework.jar
- android.policy.jar
I have modded the framework-res.apk using APK Manager (although I haven't tested it). But I'm unsure as to what I'm supposed to do with the .jar-files.
Click to expand...
Click to collapse
You should be able to decompile them like .apk files. Try renaming their extensions to apk.
Thanks, man!
And it's actually your theme I want to keep (with LockeOn' mod), but I also want the 9-lock. (Specifically the MIUI).
I'll try to rename and decompile. Should I decompile any of the above mentioned files with dependancies?
Sent from my GT-I9000 using XDA App
Well... Im using a galaxy 3 but i believe the method must be somewhat same for all phones... So indirectly... SAME QUESTION HERE...

[MOD][GUIDE] Make your status bar just like Galaxy S4 (All white and transparent)

Hi all, I'm newbie, and I want to share you guys the guide to make our status bar look like the Galaxy S4 (Specialy it has s4 white icon) .
-First you need to download the attachment, then extracted it
-Now you have to decompile ( or change extension to .zip and extracted it i guess) the systemUI.apk
-Next, find the drawable-hdpi folder in your systemUI.apk and replace it which the one you extracted in the attachment
-Recompile ( or compress by zip and change to .apk )
-Copy systemUI.apk mod to system/app ( remember to BACKUP your original apk)
-Use Xposed Tweakbox to make status bar full transparent and the clock to white, reboot and enjoyed
And sorry for my bad english :silly:
flash
longrio2 said:
Hi all, I'm newbie, and I want to share you guys the guide to make our status bar look like the Galaxy S4 (Specialy it has s4 white icon) .
-First you need to download the attachment, then extracted it
-Now you have to decompile ( or change extension to .zip and extracted it i guess) the systemUI.apk
-Next, find the drawable-hdpi folder in your systemUI.apk and replace it which the one you extracted in the attachment
-Recompile ( or compress by zip and change to .apk )
-Copy systemUI.apk mod to system/app ( remember to BACKUP your original apk)
-Use Xposed Tweakbox to make status bar full transparent and the clock to white, reboot and enjoyed
And sorry for my bad english :silly:
Click to expand...
Click to collapse
Does anyone have a flashable version of this for s3 mini ?
I'm newbie, so i didnt know how to make a flashable zip
Sent from my GT-I8190N using xda premium
Great job, guy
I'm a newbie too
can you please provide a step by step procedure on how to do that, coz I try that last night and give me a result of "unfortunately systemUI.apk has stopped". I'm a newbie in modification
sorry for my bad English
xymeth said:
can you please provide a step by step procedure on how to do that, coz I try that last night and give me a result of "unfortunately systemUI.apk has stopped". I'm a newbie in modification
sorry for my bad English
Click to expand...
Click to collapse
may be you have to sign the systemUI.apk before putting it back to your phone?
Maybe someone can help you make flashable zip. Easier to add mod ans people dont need to play with system files manually..
Sent from my GT-I8190 using xda app-developers app
how?
vndnguyen said:
may be you have to sign the systemUI.apk before putting it back to your phone?
Click to expand...
Click to collapse
how can I sign systemUI.apk? btw thanks for your response.
xymeth said:
how can I sign systemUI.apk? btw thanks for your response.
Click to expand...
Click to collapse
Don't sign SystemUI.apk - it's a System File.
Did you clear cach and Dalvik cache after replacing the File ?
please
mkruseonline said:
Don't sign SystemUI.apk - it's a System File.
Did you clear cach and Dalvik cache after replacing the File ?
Click to expand...
Click to collapse
no. is clearing cache/dalvik cache reset my files and installed app in my internal/sdcard? all I do last night is 1copy systemUI.apk from system/app folder.
2rename it to zip them extract
3extract the attached file from 1st post
4copy and replace
5then unzip and rename to apk
6move to tmp folder 1st to change permission
and last move/replace the said file to system/app folder
result = "unfortunately systemUI.apk has stopped"
please help me, I'm a noob in modification like this.
sorry for my bad English
Ah, now I got it.
You can not extract apk Files and change Files.
You have to decompile. -> Try to follow here : http://forum.xda-developers.com/showthread.php?t=2203166
Only copy & past is not possible in this case
thanks
thanks mkruseonline, this link is what I need, already hit the thanks button for you
you make a folder, put everything in that folder and compress it ? What extensions you choose ( rar or zip) ?
longrio2 said:
you make a folder, put everything in that folder and compress it ? What extensions you choose ( rar or zip) ?
Click to expand...
Click to collapse
Read first Post on Page 2
The reply up there I ask you becos' it's wrong, You can do this: Multi Select all the file > compress by zip > change to .apk. That done You need to decompile/recompile when customize the code, but now no need
Never unpack apks! This way you will lose signature.
Just take your apk,open it with WinRAR/7zip without changing the extension,go to res/drawable-hdpi and drag the files there. Then push your SystemUI again to your phone and it should work
If in the drawable-hdpi package there are also .9 pngs decompiling the apk may be necessary
If no one manages to get it working I will make a flashable zip
I think decompile is also necessary if xml Files are changed
---------- Post added at 03:07 PM ---------- Previous post was at 02:46 PM ----------
.9.png Files are inside.
dariolob said:
If no one manages to get it working I will make a flashable zip
Click to expand...
Click to collapse
hope you can do it... better easy way :good:
thanks
mission accomplished for me
i was looking for this mod and i followed instructions on first post, but it doesn't work, because the new compiled systemUI.apk is not recognized by the phone (you can notice it when you see a different icon instead the red one).
The key is DO NOT ESTRACT any file, but only open systemUI.apk with 7zip, go to drawable-hdpi folder and drag files into it, images will be overwritten (i used only 2 files for this test, notification header and panel), then you can close 7zip.
Dariolob suggest is correct, do not extract files from systemUI.
For xposed tweak i followed instructions from youtube, search for "Make Galaxy Note look like the Galaxy S4"
sorry i cant post outside links
here is my mod:
Question
longrio2 said:
Hi all, I'm newbie, and I want to share you guys the guide to make our status bar look like the Galaxy S4 (Specialy it has s4 white icon) .
-First you need to download the attachment, then extracted it
-Now you have to decompile ( or change extension to .zip and extracted it i guess) the systemUI.apk
-Next, find the drawable-hdpi folder in your systemUI.apk and replace it which the one you extracted in the attachment
-Recompile ( or compress by zip and change to .apk )
-Copy systemUI.apk mod to system/app ( remember to BACKUP your original apk)
-Use Xposed Tweakbox to make status bar full transparent and the clock to white, reboot and enjoyed
And sorry for my bad english :silly:
Click to expand...
Click to collapse
Hello, I have a few questions.
Need Root for it?
And it interfere with software update?
Thank you very much !

[MOD][TW KK][Guide][How To]Animated PullDown Background AND/OR Pulldown BAR

An example of what I mean by ANIMATED STATUS BAR PULL DOWN BACKGROUND can be found HERE
Click to expand...
Click to collapse
This is the thread I followed to get a feel for how to do it. ---> http://forum.xda-developers.com/showthread.php?t=1143675
Click to expand...
Click to collapse
Ok, after seeing a few posts a few days ago talking about people having animated status bar pulldown backgrounds, I decided to do some research because I had never heard of this before.
I noticed that for some reason the mod stopped with ICS.
So I decided to create a thread on how to add this feature to your ROM, or the ROM you are currently running.
The edits are very simple, actually, pretty much exact to the GB version of the mod.... however, they can be a little time consuming based on just how many images you would like to add to your animation.
In POST #2, I have posted a guide on how to add add this feature to your TOUCHWIZ KITKAT 4.4.2 ND8/NDC ROM. (other phones also running touchwiz kitkat should be relatively similair, depending on if your systemui.apk is where the background is pulled from.)
Click to expand...
Click to collapse
In POST #3, I have posted a guide for user/themer's, on how to create your own animations and use them with this mod.
Click to expand...
Click to collapse
In POST #4, I have posted a guide on how to add animation to the statusbar PULLDOWN bar.
Click to expand...
Click to collapse
In POST #6 I would like to link to animations posted by you... To make it easier to find the animations... Why not have them posted in the thread explaining how to create them... But I'll need your help on this one.
Click to expand...
Click to collapse
​
I would like to send a thank you to....
@bilgerryan
@tdunham
@dazednconfused
@CNexus
and
@erikalin ...
Without your answers to a few questions I've had or tuts on how to do something... I wouldn't have this mod... Or a few others that I've put out....
So thank you guys for your help.
Dev instructions
Dev instructions on how to add this mod to your touchwiz kitkat 4.4.2 based rom is located below:
Please remember to hit thanks if you like or use this mod.​
NOTE: To get this to work with your rom... Read THIS POST..... To customize the animation read POST #3 and POST #4.
Click to expand...
Click to collapse
Step 1 - Download the AnimatedPulldownMod.zip I have attached below.
Step 2 - Open the zip and extract the two files somewhere on your desktop.
Step 3 - Decompile your systemui.apk from your rom using apktool or what ever tool you use to decompile apps.
Step 4 - Navigate to the res/drawable folder in your decompiled app and the "pulldown.xml" from my zip to this folder.....
Step 5 - Navigate to the res/drawable-xhdpi folder, (or whatever folder your rom uses), and do the same for the "pulldown_animxxxx.png" images into your open folder..... You can now delete my files.
Step 6 - Navigate to "res/layout" folder and open "status_bar_expanded.xml" open it with an xml editor such as notepad++ or virtuos ten studio.
Step 7 - In line 2 of that file you should see this..
<com.android.systemui.statusbar.phone.notificationpanelview android:id="@id/notification_panel" android:background="@drawable/twcustom"................
Click to expand...
Click to collapse
change the background to look like this android:background="@drawable/pulldown" so the image background gets directed to the pulldown.xml file you just put in your res/drawable folder.
Step 8 - Save and close this file now to prevent any conflicts while recompiling the app.
Step 9 - Once you have the images in the proper folder, edited the status_bar_expanded.xml file, and put the pulldown.xml file in your res/drawable folder... Recompile your apk and name it something different, like new.apk...
Step 10 - Open both the original systemui.apk and the new new.apk you just built, with 7-zip (that is what i recommend)
Step 11 - Drag the resourses.arsc and classes.dex file from the new.apk into the original systemui.apk.... Do the same for the res folder in the new.apk
Step 12 - Add to your rom and enjoy!!!
Click to expand...
Click to collapse
Dev/Themer Instructions
THEMER INSTRUCTIONS FOR CREATING YOUR OWN ANIMATIONS AND EDITING THE ABOVE FILES TO WORK WITH YOUR NEW ANIMATIONS.
Please remember to hit thanks if you like or use this mod.​
This guide is assuming you have either performed the DEV MOD in the post above or you are on a rom that has.... AND..... you already have the custom images you would like to use for your animation. If you do not, I recommend reading the guide created by @erikalin on how to create your own images
erikalin said:
If you ever want to learn, the tutorial I made up on another device thread shows the process. I made a video tutorial too - me talking and walking through the process of grabbing a video and turning it into an animation. FWIW, just sharing the love. Link is: written tutorial or video tutorial. Just replace with your own image sizes and file names, same process.
Click to expand...
Click to collapse
As stated above, the process is the same.
You could also search GOOGLE or XDA FORUMS for how to create frame by frame png animations... WARNING!!! It can be time consuming.
NOTE:Read POST #4 to learn how to create a flashable zip for other users of your, and all other roms based on your phone carriers android version that have the mod above, to use.
Click to expand...
Click to collapse
Ok, so if you want to use a different animation than what i have inside the mod, you will have to edit the xml inside of Systemui.apk.
Step 1 - Decompile the SystemUI.apk that already has the mod described in POST #2
Step 2 - Navigate to the res/drawable folder and open pulldown.xml
Step 3 - Count HOW MANY images are in your animation
Step 4 - Add or remove these lines
<item android:duration="100" android:drawable="@drawable/pulldown_animXXXX" />
Click to expand...
Click to collapse
in that xml file you just opened to match the amount of images in your animation (see the next step to see what to name the images)
(THIS FILE ONLY CONTAINS THIS SPECIFIC MOD... DO NOT WORRY ABOUT BREAKING ANYTHING ELSE IF YOU MESS UP...OTHER THAN THE SYSTEMUI FORCE CLOSING WHEN REBOOTING....THIS IS WHERE THE BACKUP COMES IN HANDY.... JUST FOLLOW THE NEXT STEP AND YOU WILL BE OK) (USE THAT FILE AS A TEMPLATE FOR HOW YOURS SHOULD LOOK ONCE FINISHED) (REMEMBER TO HIT SAVE ONCE YOU ARE DONE EDITING THIS XML FILE.)
Step 5 - Rename your images to "pulldown_animXXXX.png" ... replacing the "XXX" with numbers starting at 0 ---> so if you have 10 images, you will start with pulldown_anim0 and end with pulldown_anim9
Step 6 - Move those newly named images to the res/drawable-xhdpi folder
Step 7 - Recompile the app and name it something else other than SystemUI.apk
Step 8 - Open BOTH the original SystemUI.apk and the new apk you just created with 7-zip
Step 9 - Drag the "resources.arsc" file, "classes.dex" file and the entire "res" folder from the NEW apk INTO THE ORIGINAL SYSTEMUI.APK
Step 10 - Push the MODIFIED systemui.apk (NOT THE NEW ONE YOU JUST CREATED) into the priv/app folder on you phone with a root explorer and reboot..... or remove the systemui from my zip above and replace with yours and flash.....
Step 11 - ENJOY!!!
Click to expand...
Click to collapse
instructions for adding animated pulldown bar​
Follow this if you are on the STOCK systemui.apk
Step 1 - Download the zip below.
Step 2 - In your decompiled systemui.apk, Navigate to the res/drawable folder and drop all 3 xmls from the zip, into this folder.
Step 3 - Navigate to the res/drawable-xhdpi and drop the images from the zip into this folder.
Step 4 - Recompile the apk and enjoy.
Note: Use the same methods for the previous posts to customize your own animation.... what i did was put the same animation on both the close and open animations.... but you can have one for opening and one for closing... your choice.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
These are instructions courtesy of @talkingmonkeys for how to add the mod if you are using @dazednconfused single bar pulldown mod.
talkingmonkeys said:
Open drawable/tw_close_handle_bg.xml and look for these 3 lines
Code:
<item android:state_pressed="true" android:drawable="@drawable/tw_close_handle_bg_press" />
<item android:state_focused="true" android:drawable="@drawable/tw_close_handle_bg_press" />
<item android:drawable="@drawable/tw_close_handle_bg_normal" />
Replace the above with this
Code:
<item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
<item android:drawable="@drawable/pulldown_bar_off" />
Click to expand...
Click to collapse
Click to expand...
Click to collapse
reserved
This is where I would like to post links to flashable animations that you guys make using this guide.
As long as it is for a NDC (virgin/boost mobile) or ND8 (sprint) TOUCHWIZ KITKAT 4.4.2 based rom for the Galaxy S3, simply post your zip here with an ANIMATED pic of your animation, I will link it here in this post.
If you follow step 12 in @erikalin tutorial here
you can create an animated preview of the animation to post here for the screenshot....
Click to expand...
Click to collapse
I would like to thank anyone who creates and posts a zip for us to use in advance.... Thank you.
Awesome! I love this mod! I just modified my systemui to include 111 images of the transformer in the other thread ... Changes d from Autobot to decepticon. Thanks for all of your work on this:thumbup::thumbup:
Sent from my SPH-L710 using xda premium
pharmdeon said:
Awesome! I love this mod! I just modified my systemui to include 111 images of the transformer in the other thread ... Changes d from Autobot to decepticon. Thanks for all of your work on this:thumbup::thumbup:
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
sweet... just follow the instructions in post 4 and you can create a flashable zip to use on the updated version of wicked x rom... as it will have the mod implemented according to @bilgerryan.... and any other rom for our phone that decides to implement this mod....
also, im going to use post 6 as a place to post links to the animations for this mod on our phone.. if ya wanna post it here i'll link it in post 6....
and if you follow step 12 in @erikalin tutorial here
you can create an animated preview of the animation to post here for the screenshot....
pharmdeon said:
Awesome! I love this mod! I just modified my systemui to include 111 images of the transformer in the other thread ... Changes d from Autobot to decepticon. Thanks for all of your work on this:thumbup::thumbup:
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Sweet... guess my issues going above 30 were isolated.... I WAS playing with the animation duration time so that was prolly my issue.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
I wasnt successful turning the 111 image into a zip though. The systemui I modified works, but once I make a zip out of it and flash it, it breaks the apk as before. I went back to the working nandroid and was able to flash the other 28 image one that I put together (I went back and forth between the Autobot and deception anims)
I may be zipping the 111 image XML and images wrong though?? ... I was pretty tired last night when messing around.
Sent from my SPH-L710 using xda premium
pharmdeon said:
I wasnt successful turning the 111 image into a zip though. The systemui I modified works, but once I make a zip out of it and flash it, it breaks the apk as before. I went back to the working nandroid and was able to flash the other 28 image one that I put together (I went back and forth between the Autobot and deception anims)
I may be zipping the 111 image XML and images wrong though?? ... I was pretty tired last night when messing around.
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
If ya wanna post the systemui ya have with the new animation I'll take a look at it.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
I will send shortly
Sent from my SPH-L710 using xda premium
pharmdeon said:
I will send shortly
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
OK. After thinking about it... I do believe that it is my mod....
I don't think I have it set up to ALLOW FOR flashable zips with different amounts of images....
I may have to remove that post or redo the mod....
I would like to test my theory with what you have before I do that tho...
I would also like to state that i am not a dev... So I think its something that I wasn't aware of.....
But again I would like to test it before I go into all of that...
So when ever ya get a chance would be great.... Won't be able to redo the post or the mid for a few more hours.... So no rush... Just whenever ya get a chance.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
OK. first I have to apologize to you @pharmdeon and I have to thank you for discovering this issue before it became widespread.
Your problem IS MY MOD ITSELF and MY INSTRUCTION....
I truly apologize for this mistake and hope ya don't have any hard feelings ... I will work this out and try to get your animation to be flash able.....
For now just use your entire nodded apk since wicked x is really the only custom ROM right now.....
the_original_teknikl said:
OK. first I have to apologize to you @pharmdeon and I have to thank you for discovering this issue before it became widespread.
Your problem IS MY MOD ITSELF and MY INSTRUCTION....
I truly apologize for this mistake and hope ya don't have any hard feelings ... I will work this out and try to get your animation to be flash able.....
For now just use your entire nodded apk since wicked x is really the only custom ROM right now.....
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
Click to expand...
Click to collapse
No issuses at all:good::good: ... glad to "help". I am happy that this neat mod is around even if its not perfected, YET:fingers-crossed:. If you need help testing anything let me know (I've done my fare share of testing lately, lol:cyclops
ok. so after some testing and failure... i have come to the conclusion that these will not be simply universal....
they will be rom specific.
the_original_teknikl said:
ok. so after some testing and failure... i have come to the conclusion that these will not be simply universal....
they will be rom specific.
Click to expand...
Click to collapse
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR
What I was thinking is the following (for making ANY number of pulldown images work, including a static one)
In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)
Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)
In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.
CNexus said:
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR
What I was thinking is the following (for making ANY number of pulldown images work, including a static one)
In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)
Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)
In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.
Click to expand...
Click to collapse
And that's why ur the boss man....
I wish I had the knowledge to add those edits to smali.... But I have only made edits to smali that you and tdunham directed me to in ur flashlight thread.... When I was trying to workout the missing toggle icon issue....
Other than that I have absolutely no knowledge of CREATING lines in smali or working with strings....
I will have to wait to see what you do with the mod on moar to even get an idea of how to do this... But you would prolly become willing to edit it for wicked x before i could figure that out lol...
I AM a quick learner... As some may have noticed..... But that's a little to high above my current level of knowledge to even have something close this MONTH.....
Can't wait to see what ya do with it man............
And I feel kinda honored to see ya taking this mod even further... Even tho I'm technically not the creator.... Just the modder lol.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
I Literally JUST edited post 4 and then i saw your post... .had to add that info to that post and re edit it lol.... cant wait to see what ya can do on that front man.... again... i will look at it to see if i can figure out what you are referring to (and i say that due to my level of knowledge on smali) but i will prolly not see it until i can compare with yours... but by then we can just use urs... maybe lol
CNexus said:
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR
What I was thinking is the following (for making ANY number of pulldown images work, including a static one)
In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)
Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)
In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.
Click to expand...
Click to collapse
sitting here thinking about it... i had a thought since ya said the pulldown.xml would be placed SOMEWHERE....
how bout seeing if the init.d script can read another location for the images... such as "sdcard/pulldown animation".... and plays the animation from that location outside of the systemui.apk....... then have the smali point to that location on the sdcard.... just remove the background from systemui.apk completely.... then the animation can be changed by a simply placing the images in that folder and reboot without flashing or modding the apk at all....
there would be no need for users to need a computer to zip the file and no need for flashing.. just place and reboot
because (and i could be wrong) each flashable zip to change animations would need to have a script that removed the current images from the apk before placing the new animation.... otherwise, flashing a 30 image ani over a 50 image ani would give part of the old one playing at the end of the new one cause the pulldown.xml still reads that there are 50 images......
again... thats your front.... but was just an idea i had after reading your post again.... ur way would prolly be better.. this is just a thought that popped up, i always trying to mod things... even if it aint here yet apparently lol

[q] need help decompling my apk's.

Been trying this all day with no luck. read many guides and tried various apktools, no dice. i want to port the cm11/ liquidsmooth circle battery to my gpe rom.
I know the location of the battery is in : SystemUI/src/com/android/systemui/BatteryMeterView.java.
I also read its harder to decompile cm based apk's. can anybody help me out? or at least point me to a WORKING apktool i can use?
Ive attached a liquidsmooth systemui and my gpe systemui.
Don't think it's needed to decompile at all ! Are they "normal" PNG format files (no .9.png files) then just replace them in the existing apk file and push the file to the correct system dir.
Battery is normally projected as png picture files in the systemUI - res - drawable xxhdpi folder.
Mr Hofs said:
Don't think it's needed to decompile at all ! Are they "normal" PNG format files (no .9.png files) then just replace them in the existing apk file and push the file to the correct system dir.
Battery is normally projected as png picture files in the systemUI - res - drawable xxhdpi folder.
Click to expand...
Click to collapse
the cm11 battery circle is in a java format now. i did my research lol. no idea why they decided to do that.
Yeah just chipping in my 2 cents. Never done cm themes
Mr Hofs said:
Yeah just chipping in my 2 cents. Never done cm themes
Click to expand...
Click to collapse
appreciate it. im sort of a private themer. love that circle battery but its a pain to get to.
Can imagine now yeah ! Good luck

Oos animations port request

Hello XDA community,
Is there anyone here who could port the oos animations to aosp/caf based roms as a flashable framework mod or a substratum theme since substratum support custom animations. I would do it for myself but I dont know how.
I would even be happy if someone eventually has a explanation/guide how to do it then I can try it for myself.
Thanks
Best Regard CroW_D
The animations are located in res/anims within framework-res.apk
To extract them from OOS you need to grab framework-res.apk from OxygenOS (it's in system/framework). I haven't done any mods for a while now, but replacing the anim files inside the framework-res.apk of your rom with the ones from oxygen os should work. I'd do a backup before trying this. I used to be quite nitty so what I used to do was decompile both framework-res.apk with apktool, replace the anim files after decompiling, then recompile your framework-res.apk
If you have the framework-res.apk from your rom i don't mind doing a test zip for you to try
coldflid said:
The animations are located in res/anims within framework-res.apk
To extract them from OOS you need to grab framework-res.apk from OxygenOS (it's in system/framework). I haven't done any mods for a while now, but replacing the anim files inside the framework-res.apk of your rom with the ones from oxygen os should work. I'd do a backup before trying this. I used to be quite nitty so what I used to do was decompile both framework-res.apk with apktool, replace the anim files after decompiling, then recompile your framework-res.apk
If you have the framework-res.apk from your rom i don't mind doing a test zip for you to try
Click to expand...
Click to collapse
Are you in some way available in Telegramm ?
Edit: i manged to make it but only the closing animations is working the app opening animation is still the same can you help me with that ?
CroW_D said:
Are you in some way available in Telegramm ?
Edit: i manged to make it but only the closing animations is working the app opening animation is still the same can you help me with that ?
Click to expand...
Click to collapse
I tried the same thing and got the same result
Origamiman72 said:
I tried the same thing and got the same result
Click to expand...
Click to collapse
Yeah i did some work withh theming devs and we end in the result it must be some oos closed source stuff.... But really would be nice to have it :/
CroW_D said:
Yeah i did some work withh theming devs and we end in the result it must be some oos closed source stuff.... But really would be nice to have it :/
Click to expand...
Click to collapse
also idk if its just me, but did it also cause some systemui crashes for you?
Origamiman72 said:
also idk if its just me, but did it also cause some systemui crashes for you?
Click to expand...
Click to collapse
No systemui crashes for me. Just replaced the anim folder from oos with the current one you have on the custom ROM but make sure you have to redone this every time you flash an update of the custom rom. Meiby you picked always the old framework res apk. And replaced it can causes the issue.
Did this work. Can anyone share the file.

Categories

Resources