Disclaimer
Code:
You are using this tutorial by yourself and i'm in no way responsible if your mobile is damaged due to it. I will help you in best way possible to get you out of the worse situation but I can't guarantee anybody. ThankYou!
How to build apps icon pack:
Things you require:
-Base VRTheme-Here!(Don't worry there are no trojans)
-You will find a lot of icons on XDA.
-Required apps from the ROM which you want to modify.
-Notepad++ for changing updater-script.
-Any good photo editing tool.(Even the one that comes with MS-Office will do)
-A brain to avoid mistakes and bother me with stupid questions.
-Kindness to press the THANKS button below.
Click to expand...
Click to collapse
Steps:
1. Download all the things required.
2. Open your ROM and copy all the apps and move them to a seperate folder. Here we will take only 3 apps-Browser, Messaging and Calculator.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Now extract these apps using 7zip or winrar.
4. Now open the app folder, go to res and find the location where the icon of the app is present. These are generally present in mipmap-hdpi/mdpi/xhdpi/ldpi/xxhdpi or drawable-hdpi/mdpi/xhdpi/ldpi/xxhdpi . For e.g. in my case Browser app it's present in mipmap-hdpi named as ic_launcher_browser.png:
5. Now extract the VRTheme base folder and go to vrtheme->system->app and make a new folder their with named as appname.apk(Here appname refers to the name of the app). For e.g. Browser.apk in my case.
6. Now make res folder in it. And under res folder make another folder which contains app icon. For e.g res->mipmap-hdpi in my case:
7. Now place your modified icon in it and rename it to the original icon name. For e.g. ic_launcher_browser.png in my case. And resize it according to your DPI.
Try resizing by percentage if possible.
Also I don't recommend resizing from a lower DPI to a Higher DPI or the icons may seem blur.
8. Do the same for other apps. In my case calculator and messaging.
9. Now give this icon pack your name. Go to META-INF->com->google->android and open updater-script with notepad++ and in second line replace alokbina with your name. You can practically change almost everything under ui_print in updater-script but remember that it should be in the format ui_print("ABCD"); . Here replace ABCD with whatever you like.
10. Now you will be having 4 folders- data, META-INF, system, vrtheme and an image named as preview. Zip all these and rename it to whatever you like and flash it with CWM and you're done! Enjoy your own icon pack Feel free to THANK me :laugh:
Click to expand...
Click to collapse
Important Tip:-Note the size of the original icon and modify the new icon accordingly or else you may not get any icon or smaller icon. For e.g. sometimes the icon present in the app is of size 96X96 though it is hdpi app. But still change the other icon size also to 96X96 to get best result.
Click to expand...
Click to collapse
Credits:
Abhinav2
Sandy7
Add your name if I missed...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Reserved for systemui and framework etc...vrtheming
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2
Just a doubt, when I downloaded the zip, I didnt any signing (signature whatever) files, so shouldn't the zip be signed before flashing??
Simple to the point and yet thorough. Thank you for this. I'm shocked this thread doesn't have more action!:thumbup:
Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/
Cool Thanks for this. Just what i have been looking for
Now i will create the best Icon pack known to man :victory:
how about 9.png ?? is it okay to use vrtheme?
Diaz1999 said:
how about 9.png ?? is it okay to use vrtheme?
Click to expand...
Click to collapse
Pretty much anything in the apk can be flashed into it using a vrtheme script.
Any png/.9.png, fonts, resources.arcs, classes.dex whatever.
The main thing is the name and folder location must match exactly!
There is even some edits to the scripts to automatically create a "restore" zip of the apps before they get modified so if something doesn't look right or you get force close issues you can simply flash the restore.zip in recovery and get back to normal quickly.
Thanks to @Spannaa for the awesome idea and base script! I've been using it for years.
Good luck friend and happy flashing!
stangdriver44 said:
Pretty much anything in the apk can be flashed into it using a vrtheme script.
Any png/.9.png, fonts, resources.arcs, classes.dex whatever.
The main thing is the name and folder location must match exactly!
There is even some edits to the scripts to automatically create a "restore" zip of the apps before they get modified so if something doesn't look right or you get force close issues you can simply flash the restore.zip in recovery and get back to normal quickly.
Thanks to @Spannaa for the awesome idea and base script! I've been using it for years.
Good luck friend and happy flashing!
Click to expand...
Click to collapse
ikr I mean how about 9.png? is it using its black border or not? because usually if we extracted 9.png from an APK it'll be without borders, while in compile-decompile process it has to be bordered
Verstuurd vanaf mijn HTCONE met Tapatalk
Diaz1999 said:
ikr I mean how about 9.png? is it using its black border or not? because usually if we extracted 9.png from an APK it'll be without borders, while in compile-decompile process it has to be bordered
Verstuurd vanaf mijn HTCONE met Tapatalk
Click to expand...
Click to collapse
I'm know all about patch 9 pngs and vrtheme requires ANY file, rather it be 9.pngs, xml, classes.dex etc to be compiled.
Again, any file you want to push to an apk in recovery using a vrtheme script MUST BE COMPILED!
Pushing a regular png renamed to 9.png can have serious negative results causing the corrupt image to block a button, create force close issues when that image is being call for or even cause a boot loop. Just saying be careful. That's why I use a version that creates a restore.zip that i can flash in case something does happen.
It's a great tool and has many great uses. Just like any time you mod and apk, make sure you understand unexpected things can happen ad be prepared for them if they do.
Good luck and hope this gives you a little info you can use.
Related
I'm having some problems theming it. I want it to be like the one from BlackMod so I've extracted the one from BlackMod and put it in my theme so it should work now right? But it didn't it just showed the widget but not with the correct bagground etc. Then I took the GenieWidget.apk from the original ROM and themed it plus some pngs that is also in it. Something like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
but it's still not working :/ This is what the widget currently looks like BTW:
bro, did you sign it after you modded it to ur liking? from your first picture i just see the .9 borders, which are not supposed to be there after you run it through a compiler like Eclipse.
opasha said:
bro, did you sign it after you modded it to ur liking? from your first picture i just see the .9 borders, which are not supposed to be there after you run it through a compiler like Eclipse.
Click to expand...
Click to collapse
As it is a system apk it does not need to be signed. The borders are because of decompiling and I did recompile again afterwards. Also it does work but it doesn't have the correct layout. That's the issue
C0mpu13rFr34k said:
As it is a system apk it does not need to be signed. The borders are because of decompiling and I did recompile again afterwards. Also it does work but it doesn't have the correct layout. That's the issue
Click to expand...
Click to collapse
send me your images that you want for this geniewidget and power control and ill edit and sign it for you and then upload the apk. or if you want, i can create an update.zip like i did for this fellow in the Post Your Home Screen thread. let me know, i'm always happy to help.
opasha said:
send me your images that you want for this geniewidget and power control and ill edit and sign it for you and then upload the apk. or if you want, i can create an update.zip like i did for this fellow in the Post Your Home Screen thread. let me know, i'm always happy to help.
Click to expand...
Click to collapse
I appreciate that but that is not the problem. The problem is that I have themed it (all pngs that needs theming) but it still stays as the matte Power Control Widget. I ask because someone might know if there are some other pngs in some other apks or if I have to edit some XML files or something. I have already created 2 themes so I know how it works (signing, update.zip etc.)
C0mpu13rFr34k said:
I appreciate that but that is not the problem. The problem is that I have themed it (all pngs that needs theming) but it still stays as the matte Power Control Widget. I ask because someone might know if there are some other pngs in some other apks or if I have to edit some XML files or something. I have already created 2 themes so I know how it works (signing, update.zip etc.)
Click to expand...
Click to collapse
hm, assuming you know that power control widget is in the settings.apk and have edited that, my only other suggestion would be to check the framework because i do not know of any other place where they could be. however, from my experience, i find it always best to edit your apk within your theme (the actual .zip) and then sign that whole .zip if you want to avoid any issues. just my two cents for you. if the xml is stock, there should be no issues as to what is governing the correct .9.png. anyway, good luck .
opasha said:
hm, assuming you know that power control widget is in the settings.apk and have edited that, my only other suggestion would be to check the framework because i do not know of any other place where they could be. however, from my experience, i find it always best to edit your apk within your theme (the actual .zip) and then sign that whole .zip if you want to avoid any issues. just my two cents for you. if the xml is stock, there should be no issues as to what is governing the correct .9.png. anyway, good luck .
Click to expand...
Click to collapse
Thanks man! I did not know that (waow that's stupid BTW) that was exactly what I was looking for Will try it and tell you how it works
@opasha
Now that you've helped me once maybe you would know how to make a transparent .9 png (or maybe you could send me one)? I keep getting an alpha error and I really don't know anything about color profiles
C0mpu13rFr34k said:
@opasha
Now that you've helped me once maybe you would know how to make a transparent .9 png (or maybe you could send me one)? I keep getting an alpha error and I really don't know anything about color profiles
Click to expand...
Click to collapse
how transparent and for what png exactly? details bro....details....=P
opasha said:
how transparent and for what png exactly? details bro....details....=P
Click to expand...
Click to collapse
Hehe it's for the Facebook app I took a themed version for some ROM I can't remember but it wasn't fully themed so I themed the rest myself and of course a lot of the 9 pngs was "broken" from the other themer so I need a totally transparent 9 png for the top thing (appwidget_top_white.9.png). Whenever I do it I just get an alpha error. I've attached the Facebook.apk (the original themed version not the one I themed) if you need more details
Thanks in advance I'll be sure to include you in the release notes hehe
C0mpu13rFr34k said:
Hehe it's for the Facebook app I took a themed version for some ROM I can't remember but it wasn't fully themed so I themed the rest myself and of course a lot of the 9 pngs was "broken" from the other themer so I need a totally transparent 9 png for the top thing (appwidget_top_white.9.png). Whenever I do it I just get an alpha error. I've attached the Facebook.apk (the original themed version not the one I themed) if you need more details
Thanks in advance I'll be sure to include you in the release notes hehe
Click to expand...
Click to collapse
ok sure no problem man. ive attached a fully transparent .9.png with that name. if you want to use it for other pngs, just make copies of the one i attached and rename it to whatever name you choose. good luck . it's there but you can't see it since it's totally transparent. to download it, just right click in the left corner or a little towards the middle of the left corner until you get the option to save image.
opasha said:
ok sure no problem man. ive attached a fully transparent .9.png with that name. if you want to use it for other pngs, just make copies of the one i attached and rename it to whatever name you choose. good luck . it's there but you can't see it since it's totally transparent. to download it, just right click in the left corner or a little towards the middle of the left corner until you get the option to save image.
Click to expand...
Click to collapse
Thanks man! You've been very helpful I'm going to release a new version of my theme now
C0mpu13rFr34k said:
Thanks man! You've been very helpful I'm going to release a new version of my theme now
Click to expand...
Click to collapse
no problem dude
I will guide you into the famous 9.png creation
First rule before to start how to learn to theme your device :
Always make a backup of the files you are about to edit or do a nandroid backup.
If anything goes wrong you will get a bootloop.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
☺ TOOLS you must have ☺
1. PHOTOSHOP / GIMP http://www.gimp.org/downloads
or a good alternative for those who are rookies in Adobe products : PAINT.NET http://www.paint.net
or any other Graphics editor you like to use of your choice.
2. DRAW 9-PATCH http://developer.android.com/sdk/index.html
You will find it in your SDK starter package ( android sdk/tools )
The Draw 9-patch tool allows you to easily create a NinePatch graphic using a WYSIWYG editor.
3. xUltimate-d9pc.exe http://lmgtfy.com/?q=xUltimate-d9pc
Basically you will need to compile the edited 9.png to Draw9Patch Compiler
*****
Now let's play with your pics in the graphic editor of your choice :
your 9.png's files would be in <drawable/drawable-hdpi> folder' apk
When you are done editing your image,
you can open it in the draw9patch tool to verify that it stretches properly.
Here is the most important part of the 9.png creation.
You need to define 2 parts :
* Stretch part ( always left and up side )
* Content part ( always right and bottom side )
When you are done stretching your image,
you can open it in the 9.png compiler tool to compile it properly.
you notice the 1pixel border created for the stretcheable 9.png
Place your files in example1/drawable-hdpi
Execute the xUltimate-d9pc.exe
If you defined properly your 9.png,
you must find no errors and you can hear a "peeep"
Compiled ready files are in /Done folder
When you are done compiling your image,
you can see that the 1pixel border disappeared.
Use 7-ZIP http://www.7-zip.org
(an open source file archiver with a high compression ratio)
to drag your files into the apk !
Source : androidbyyorzua
Congatulations, you can enjoy your work
thanks to "PoorCollegeguy" who featured my thread the XDA Portal )))
and tweeted as well :
spc_hicks09 said:
Thank you soooo much for posting this!
Click to expand...
Click to collapse
A single click on the thank button would make me happy if i helped you
Great tutorial. Thanks for writing it.
But do you happen to know how to do it the other way round?
If you have a single compiled .9.png file, is it possible to decompile it again?
I know apktools do decompile it when decompiling complete apks, but I couldn't figure out how to do it to a single png file.
EddieFAF said:
Great tutorial. Thanks for writing it.
But do you happen to know how to do it the other way round?
If you have a single compiled .9.png file, is it possible to decompile it again?
I know apktools do decompile it when decompiling complete apks, but I couldn't figure out how to do it to a single png file.
Click to expand...
Click to collapse
Thanks for your comments,
Maybe this is what you are looking for :
[UTILITY][TOOL] 9patchPngSuite [Windows&Linux]
Personally never tried/needed it yet
Great tutorial. Nice job making the front page on xda too. I assisted with making a new draw9patch a couple months ago and would highly recommend checking out my thread here on xda. It will literally save you hours of time from using the original draw9patch.
http://forum.xda-developers.com/showthread.php?t=1344909
Guy's please keep the thread clean and on topic and please do not post a thank you post just hit the thanks button in the OP's first post
Thanks
I have a problem with the display of icons .png in Photoshop.
The original icon:
When I paste into Photoshop:
There are many icons that appear in Photoshop in this way. Can anyone help? My version of Photoshop CS5
przemo5020 said:
I have a problem with the display of icons .png in Photoshop.
The original icon:
When I paste into Photoshop:
There are many icons that appear in Photoshop in this way. Can anyone help? My version of Photoshop CS5
Click to expand...
Click to collapse
A little off topic, buddy, as it is not really a 9.png you are trying to work on but doubke check if the png is indexed. You will find many of the pngs indexed and some not.
Answering from my phone, will help you better tomorrow
Freaking awesome dude will try this out. Since I was looking to add some of my costume 9.pngs.
Thank you, as this is a good guide. Took me awhile until it finally clicked. I know you emphasized but I do not think enough, the stretch and content lines are vital. I did not quite get WHAT that meant till messing over and over.
Any one trying fot the first time, definitely play with the examples he provided and you will be all good.
There is an app for Android called "9 Patch Editor" that can load .9.png (compiled or with border) and edit them or remove patches altogether. I hope that helps.
Hi,experts,I'm new to this theming and png editing stuff
Can I create 9.png if I just follow your guide Yorzua? If yes,
I'll give it a try soon!
Orelse, if this is a higher level thing,could you guide me into something basic .so that I learn some things and then jump over here!
Sorry for the questions....! Hope you don't mind!
Sent from my MT11i using xda premium
Do .9.pngs need to be source to resize with the 9patch tool or can they be resized when compiled.
thank you so much for this i was going crazy !
seand88 said:
thank you so much for this i was going crazy !
Click to expand...
Click to collapse
You are welcome,
glad it could help someone
Hi Yorzua,
If you see the sending text message animation on ios or any iphone it is
is awsome and smooth sliding effect and message goes upped side with
sliding... I want to do same animation on my android phone... but the
problem is when i decompile WhatsApp apk i can not found folder of
animation. Can you plz tell me or show me how can I do that???
Plz do needfull.
please help me, I want only this 9.patch colors change to white , can someone do and share to me ? thanks..
http://www106.zippyshare.com/v/FmVNQcCP/file.html
Time to update this
Older data on howto change manually is in the spoiler below
Hi all, this is a copy of my thread for galaxy s2
This guide is split into two parts as of now , part 1 is for changing the settings menu background and part 2 is for changing the backgground for dialer and contacts.
Part -1
may be this method is known to few but im posting this to people who dont know how to change the background image of the settings menu and other few.
Sample screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Like it?
here is the method to do this.
Software needed :
1.7zip (to replace the image)
2.android sdk(to use adb commands to push/pull the files)
How it works:
We are modifying/replacing an image called "background_holo_dark.png" in the "framework-res.apk" which is responsible for displaying background images in menu.
Step 1:
Use the following adb command below to pull the "framework-res.apk" from your mobile to pc.
Code:
adb pull system/framework/framework-res.apk
Step 2:
Open the framework-res.apk via 7zip and navigate to the following directory
"framework-res.apk\res\drawable-nodpi\", you will see a file called "background_holo_dark.png". Delete the image and dont close the 7zip.
Preparing your own image:
Now use any png image you want to set as background , resize it to 512 x 512 via mspaint or any other image editing software and rename the file to "background_holo_dark.png".
Drag the newly created image file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push the file back to mobile, type the following command in the same command prompt
Code:
adb remount
now type the following
Code:
adb push framework-res.apk system/framework
Step 4:
Now reboot your mobile, you will have the new background image enabled
Part-2
Wanna change the background of the dialer and contacts?? well read below,
Step 1:
Use the adb command (or u can use root explorer) to pull the "Contacts.apk" from your mobile to pc.
Step 2:
Open the Contacts.apk via 7zip and navigate to the following directory
"Contacts.apk\res\drawable-nodpi\", you will see a file called "background_dial_holo_dark.png". Delete the image and dont close the 7zip.
Drag the image (similar to the one created in part 1 of the guide) file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push/copy back the file back to mobile. Copy back the file to the same directory from where it is copied.
Step 4:
Now reboot your mobile, you will have the new background image enabled
Your dialer and contacts shortcut may be missing from your launcher, just drag it back to the homescreen from the app drawer.
Step:5
This step is optional!!! If you do not get those shortcuts, enter cwm and wipe cache and dalvik cache.
Sample screenshots.
Note:
For users who know how to use root explorer can use the same to copy/paste the framework-res.apk before and after editing.
Sample images are taken with 160 dpi, this mod will work with all dpi.
Instructions:
1. Download the zip from the download section below and open it in 7zip.
2. Navigate to the following directory "\mode\system\framework\framework-res.apk\res\drawable-nodpi\".(Sample images on post 2)
3. Change the images "background_holo_dark.png" and "background_holo_dark.png" as per your wish.
4. Flash it
Sample screenshots from aosp rom:
Downloads:
bg mod
credit:
vertimus (thanks to him , he helped finding the right image to replace)
you can find some ready to use backgrounds in this post ... will be updating this post when i find something beautiful for a background
Thanks man, you make my setting look cool
Thanks mate, you're a real champ.
Thread updated with "how to change background for contacts and phone dialer"
Hi sir, what is the image you used to replace?
Sent from my GT-S5830 using XDA
ax3911 said:
Hi sir, what is the image you used to replace?
Sent from my GT-S5830 using XDA
Click to expand...
Click to collapse
You will be replacing the stock background image with the new one you like, there are some sample backgrounds in second post
#*posted on the move *#
If i were you, i will go for the harder way... Which is:
Compile those apk...
Sent from my Nexus S using Tapatalk 2
DaXmax said:
If i were you, i will go for the harder way... Which is:
Compile those apk...
Sent from my Nexus S using Tapatalk 2
Click to expand...
Click to collapse
though i can compile/decompile Harder way dosent suits everyone
This sounds like an Awesome guide but I do have one question, will this work on CM7 as cm9 is not out yet for my T-989 SG2? I have looked for the background_holo_dark.png and I'm not seeing it in the frameworks. I've used 7zip and then decompiled but haven't found it. If not, would you happen to have any other guides for cm7 that may do the same thing?..
Thanks,
Derek
bala_gamer said:
though i can compile/decompile Harder way dosent suits everyone
Click to expand...
Click to collapse
Then, make a morph. Or a Universal Flasher. That will make everyone at ease...
Sent from my Nexus S using Tapatalk 2 Beta-5
DaXmax said:
Then, make a morph. Or a Universal Flasher. That will make everyone at ease...
Sent from my Nexus S using Tapatalk 2 Beta-5
Click to expand...
Click to collapse
ya sure, will do it soon
Thanks for the "how to" !
Do you think it is possible to set a transparent image ?
I mean 50% transparent, just to keep a correct visibility.
Thanks man
It was just the thing I was looking for :thumbup:
Sent from my HTC Glacier using xda premium
NICE ! now i can edit my crappy background, hmm. Do you mind uploading the png. file on sample pictures that you shown us?
RomelStyle said:
NICE ! now i can edit my crappy background, hmm. Do you mind uploading the png. file on sample pictures that you shown us?
Click to expand...
Click to collapse
Those pictures are already there on second post
#*posted on the move *#
thx for the tutorial ..i have tried it but only change apex setting background, system setting background still the same with before, am i mistake some way?
jojoku said:
thx for the tutorial ..i have tried it but only change apex setting background, system setting background still the same with before, am i mistake some way?
Click to expand...
Click to collapse
yes you are doing some mistake in the process. try wiping cache if you are sure you have followed all the steps correctly
bala_gamer said:
yes you are doing some mistake in the process. try wiping cache if you are sure you have followed all the steps correctly
Click to expand...
Click to collapse
thx..try again
wow sir good tutorials but after replacing framework-res.apk using root explorer my phone is boot looping
So friends, here is a quick and easy guide for changing the status bar icons of your Gingerbread(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
Theory
Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-ldpi (in my case, as our phone is ldpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk
Not even that, you can edit images of any app as I told you
There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)
But be careful as backing up the original file if you do something wrong
And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown
What to do if anything happened to my mobile
We have had a backup of your original file so we can restore it
But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's
Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there
Pre-Requisites
Patience
Mind
A Android (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-ldpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
After you have done replacing the icons and you are satisfied(I am never)
Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
SET PERMISSIONS
Long click on framework-res.apk and click on permissions
You will see three columns
Read Write Execute
You have to set them in the following way
x means you have to tick it
blank means uncheck
Read Write Execute
.....x........x.................
.....x...........................
.....x...........................
Click OK
You will see it as rw-r--r--
Reboot
Do it over again if nothing happens
Enjoy
This way you can edit not only framework-res.apk but any apk
Treat
This section is different from the thread topic
I: Faking Up
Want to make your device show Jelly Bean in About Phone
Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as
ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot
II: Easter Egg
You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone
Wanna change it to look like Jelly Bean?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot
Troubleshooting
Will find and update it
Tell me what problems are you having
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
arpitkh96 said:
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
i don't think so...
arpitkh96 said:
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
No, there is no app on mobile that can do it
As you need Java environment and some applets for back smali and smali extraction
Good guide :thumbup:
Sent from my GT-S5570 using xda app-developers app
very good guide, will surely test........ thanks
to bad thats on jena thats dont work so soon and easy
luki2411 said:
to bad thats on jena thats dont work so soon and easy
Click to expand...
Click to collapse
Please use English
BUMP
how can i make my drawer background and status toolbar transparent i turned back my galaxy mini to 2.3.6 i cant figure out how i tried to examine framework-res.apk ,systemui.apk and touchwiz30launcher.apk but nothing happens, please help me...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As requested by @yandz, here is a pattern-lock screen...with Naruto-inspired sharingan icons !
To do this yourself, you can download the icons attached to this post and put them into the appropriate drawable-?dpi folder in your decompiled framework-res.apk.
Or, if you're not comfortable with decompiling apk files, just flash the attached 'Sharingan_PattenLock_Flashable.zip' in CWM (not TWRP). This zip will push a file called 'android-res.apk' into your 'system/vendor/overlay' folder.
By using an overlay apk, it means that your framework-res.apk isn't touched. So you won't lose any of the mods you may have done to it. Pretty cool, no?
Oh, and this zip will make a flashable backup too! Just in case you don't like the changes. Also pretty cool.
(Or, if you use Tickle My Android, why not just let the tool do it for you? I've just updated it with these icons!)
Enjoy!
wow nice one bro. thank you! Can you make another one if you don't mind?Different types of Mangekyo Sharingan
yandz said:
wow nice one bro. thank you! Can you make another one if you don't mind?Different types of Mangekyo Sharingan
Click to expand...
Click to collapse
I can...or, if you want, I can show you how to make your own?
Ticklefish said:
I can...or, if you want, I can show you how to make your own?
Click to expand...
Click to collapse
ok bro teach me how. Thanks
yandz said:
ok bro teach me how. Thanks
Click to expand...
Click to collapse
These are the images that are used for the pattern lock. They're in the relevant drawable-?dpi folder in your framework-res.apk.
You only need to worry about changing the image files that end in "_holo". Those are the actual image files that are used. The rest you can ignore.
All I did in this mod, and the Lego pattern lock mod, was to make all the images transparent with the exception of the 'btn_code_lock_default_holo.png' and 'btn_code_lock_touched_holo.png'. Those are the images I changed with some sharingan pics I found on the internet.
The challenge was finding pictures that were of good enough quality. The actual mod took about 5 minutes...
Ticklefish said:
These are the images that are used for the pattern lock. They're in the relevant drawable-?dpi folder in your framework-res.apk.
You only need to worry about changing the image files that end in "_holo". Those are the actual image files that are used. The rest you can ignore.
All I did in this mod, and the Lego pattern lock mod, was to make all the images transparent with the exception of the 'btn_code_lock_default_holo.png' and 'btn_code_lock_touched_holo.png'. Those are the images I changed with some sharingan pics I found on the internet.
The challenge was finding pictures that were of good enough quality. The actual mod took about 5 minutes...
Click to expand...
Click to collapse
waaah! i don't get it my head will blow out. Maybe it takes me 5 days to make my mod :crying:
yandz said:
waaah! i don't get it my head will blow out. Maybe it takes me 5 days to make my mod :crying:
Click to expand...
Click to collapse
Once you've done it a few times, this all becomes a lot easier. I promise!
Take a look at the icons attachment. See how those icons compare to the icons in the picture in my last post.
Ticklefish said:
Once you've done it a few times, this all becomes a lot easier. I promise!
Take a look at the icons attachment. See how those icons compare to the icons in the picture in my last post.
Click to expand...
Click to collapse
yeah i'll try this.
cool
Thanks
i change icon
trieu1209 said:
Thanks
i change icon
Click to expand...
Click to collapse
Very cool!
halp
Ticklefish;53751671
These are the images that are used for the pattern lock. They're in the relevant drawable-?dpi folder in your framework-res.apk.
You only need to worry about changing the image files that end in "[b said:
_holo[/b]". Those are the actual image files that are used. The rest you can ignore.
All I did in this mod, and the Lego pattern lock mod, was to make all the images transparent with the exception of the 'btn_code_lock_default_holo.png' and 'btn_code_lock_touched_holo.png'. Those are the images I changed with some sharingan pics I found on the internet.
The challenge was finding pictures that were of good enough quality. The actual mod took about 5 minutes...
Click to expand...
Click to collapse
Can you make a detailed guide on this? Have no idea about what you're talking about
guekzxc said:
Can you make a detailed guide on this? Have no idea about what you're talking about
Click to expand...
Click to collapse
What's the part you're having difficulty with?
--------------------------------
Sent via Tapatalk
---------------------------
Ticklefish said:
These are the images that are used for the pattern lock. They're in the relevant drawable-?dpi folder in your framework-res.apk.
You only need to worry about changing the image files that end in "_holo". Those are the actual image files that are used. The rest you can ignore.
All I did in this mod, and the Lego pattern lock mod, was to make all the images transparent with the exception of the 'btn_code_lock_default_holo.png' and 'btn_code_lock_touched_holo.png'. Those are the images I changed with some sharingan pics I found on the internet.
The challenge was finding pictures that were of good enough quality. The actual mod took about 5 minutes...
Click to expand...
Click to collapse
Ticklefish said:
What's the part you're having difficulty with?
--------------------------------
Sent via Tapatalk
---------------------------
Click to expand...
Click to collapse
Tried flashing the sharingan one and it didn't work.
"They're in the relevant drawable-?dpi folder in your framework-res.apk. how to i locate these files?
guekzxc said:
Tried flashing the sharingan one and it didn't work.
"They're in the relevant drawable-?dpi folder in your framework-res.apk. how to i locate these files?
Click to expand...
Click to collapse
You'll be able to find framework-res.apk in the system/framework folder in your phone's internal memory. Inside that file will be a folder called 'res'. Inside there will be at least one folder called 'drawable-somethingdpi'.
Exactly what that folder will be called varies from phone to phone, depending on what resolution it is. If you have a ldpi, or Low Dots Per Inch, phone, you'll have a folder called 'drawable-ldpi' in your apk. If you have a xxxhdpi, you'll have a folder called 'drawable-xxxhdpi'.
You may have more than one of these folders, so it's important to know what resolution your device actually is.
These drawable folders contain the images that your apk uses. And it's those images that you need to change to do this mod.
Ticklefish said:
You'll be able to find framework-res.apk in the system/framework folder in your phone's internal memory. Inside that file will be a folder called 'res'. Inside there will be at least one folder called 'drawable-somethingdpi'.
Exactly what that folder will be called varies from phone to phone, depending on what resolution it is. If you have a ldpi, or Low Dots Per Inch, phone, you'll have a folder called 'drawable-ldpi' in your apk. If you have a xxxhdpi, you'll have a folder called 'drawable-xxxhdpi'.
You may have more than one of these folders, so it's important to know what resolution your device actually is.
These drawable folders contain the images that your apk uses. And it's those images that you need to change to do this mod.
Click to expand...
Click to collapse
Alright thanks. Found my way through
:good: how about shown different type of sharingan?
Work on aosp MM?
Sent from my Xperia Z using XDA-Developers mobile app
cool app if can have different sharingan will be awesome:good:
Sakuura said:
:good: how about shown different type of sharingan?
Click to expand...
Click to collapse
Hatake. said:
cool app if can have different sharingan will be awesome:good:
Click to expand...
Click to collapse
Well, I can get to work on it for you.
mengxaxau said:
Work on aosp MM?
Click to expand...
Click to collapse
Possibly not.. My MM rom is Xperia-skinned and the pattern lock uses code instead of icons. I would imagine AOSP is much the same.. :crying:
Sent from my Sony Xperia Z3 Compact using XDA Labs