Related
Hey,
can someone tell me how i get the white notificationbar like in the older versions (froyo, eclair...)
i can´t find any post on the internet about that and an old theme does´nt work work for me...
sorry for my english
IF you are using CM based roms, the option is inbuilt to change your status bar colours.
IF you want to do it in a stock rom, you need to replace the png file "statusbar_background.9.png" in the /res/drawable-hdpi folder in the Systemui.apk app. You will also need to make xml and smali edits to make your text black so that it shows up on the white statusbar.
This thread will show you how to completely mod your Mms.apk
I will update this thread with time.
This will be a very useful guide, but give me some time to edit it. Right now, it might sound very confusing.
If you want to check the versions of my mms.apk mods visit this: http://forum.xda-developers.com/showthread.php?t=1667615 or this http://forum.xda-developers.com/showthread.php?t=1772124
The mods work on all ICS roms and on various phones.
First of all, you need to know how to decompile and compile apks. So go ahead and download apktool. I will explain this better if it is needed, but there are plenty of tutorials on this already.
Ok then. Let's start.
Basically this is what we will do:
Push your framework-res.apk and Mms.apk from your current phone and rom. Or you can use some previously modded version like mine.
Install the framework-res.apk
Note: If the rom you're using has touchwiz, install the twframework-res,apk instead.
Decompile the Mms.apk you want to edit.
Apply the mods you want.
Compile the Mms.apk again.
Copy the edited files from the Mms-new.apk (the one you compiled) to the original Mms.apk using something like winrar or 7zip, but without extracting or compacting anything!
I will explain this with more detail if needed.
Now, for the detailed guide on how to apply each mod:
1. Change the color scheme. If you want to invert your background or text color read this guide here.
2. To send bigger sms without turning automatically into mms do this:
In /res/xml/mms_config.xml change this line to
Code:
<int name="smsToMmsTextThreshold">400</int>
That way you can type up very long sms and it will only convert to a mms when the lenght is the same as if you wrote 400 sms.
3. In the same folder, change this line as well:
Code:
<int name="recipientLimit">200</int>
This will make it possible to send the message to 200 people at the same time instead of 20 only.
4. To change the time stamps to the original time go to /smali/com/android/mms/transaction/SMSReceiverService.smali and change this line:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to this:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
5. To make the new-line button appear do this:
http://forum.xda-developers.com/showpost.php?p=21956763&postcount=25
Note: in some recent mms.apk you don't need to apply this mod as it already exists.
6. To change the size of the input window (where you type your texts): go to res/layout/compose_message_activity.xml and change this line:
Code:
android:maxLines="3"
to this
Code:
android:maxLines="5"
7. To add bubbles go here: http://rootzwiki.com/topic/21780-how-to-create-a-bubble-mms-app/
8. To change the avatar size or to remove the avatars from the message threads go to: mms/res/layout/message_list_item_recv.xml and change the width and height dimension. For example, to remove the avatar pic change the line to:
Code:
android:id="@id/avatar" android:layout_width="0.0dip" android:layout_height="0.0dip"
Repeat the same to message_list_item_send.xml
Recompile the mms.apk and test it
reserved.
reserved
Hello!
I tried (unsuccessfully) to mod Mms.apk.
I would just like to mod the autoconversion and the actual time of delivery, but I just can not activate them.
decompile, apply the changes to the xml file, the file smali, recompile and apply the reodex (I'm on FW stocks), Flash using .zip in recovery mode:
the apk work without any problem, but as if there is NO change!
Last time I checked that and resouces.arsc class.dex have actually been rebuilt, but the change still does not exist.
I used to deodexare Android kitchen, and autoapktool to decompile / recompile.
you can enlighten me?
thanks
ps: Android 4.0.4 ODEX stocks samsung N7000!
misha84 said:
Hello!
I tried (unsuccessfully) to mod Mms.apk.
I would just like to mod the autoconversion and the actual time of delivery, but I just can not activate them.
decompile, apply the changes to the xml file, the file smali, recompile and apply the reodex (I'm on FW stocks), Flash using .zip in recovery mode:
the apk work without any problem, but as if there is NO change!
Last time I checked that and resouces.arsc class.dex have actually been rebuilt, but the change still does not exist.
I used to deodexare Android kitchen, and autoapktool to decompile / recompile.
you can enlighten me?
thanks
ps: Android 4.0.4 ODEX stocks samsung N7000!
Click to expand...
Click to collapse
I don't use any kitchen, I use apktool and cmd, no complications, never fails if you're not using a vanilla custom rom, that might be your problem though
Will this work on Samsung Galaxy Ace running stock ROM 2.3.6 ?
.....same as title.
Thanks!!!
Hi, I am trying to mod my mms.apk so that my ported Korean ROM can send messages larger than 80 characters, but cannot find the line I need to change.
Could you please help me?
Many thanks.
I'm trying to learn how to decompile and recompile. Can you theme a tw sms for me?
Sent from my SGH-T999 using xda premium
How did you add emoji support?
And how did you replace the S3 smileys with new ones?
1982Strand said:
How did you add emoji support?
And how did you replace the S3 smileys with new ones?
Click to expand...
Click to collapse
I didn't add emoji, I applied my mods to a app that already had emoji support
the smileys are easy to fin, they are in one of the drawable folders
How can I increase the size of fonts in the bubbles. I find they are a bit too small. Font size is find on rest of phone. I am using one of your modded Mms.apk with bubbles and avatars. Thanks in advance and hope you can help.
Difusal,
I'm fairly new to (edit: tweaking) android to set it up how i like it. Before i unlocked my verizon droid incredible, whenever i sent an mms message, it would automatically turn on my 3g data connection to send the message and turn it back off (or leave it on if it was already on). Do you know how i could emulate this behavior in the mms.apk? I have already decompiled it, but i don't even know where to start looking.
thanks.
R: [GUIDE] How to mod your Mms.apk (very easy)
Interesting, it is possible to add a popup when I received message, if mms.apk not have?
My phone have a particular story, I have an LG optimus black, and Korean version of ics have a mms.apk with message popup receiver, European version not have.
What .xml or drawable I need to seen? You know?
Inviato dal mio LG-P970 con Tapatalk 2
can u teach me how to edit my mms.apk to be like that...im on gingerbread
Alright let's see if I can fix the jumbled garbage when we recieve messages over 160 characters that comes to us samsung epic 4g touch users flashed to different carriers
[ IMG]http://img.tapatalk.com/d/13/03/12/nynysypu.jpg[/IMG]
Sent from my SPH-D710 using Xparent Skyblue Tapatalk 2
How do I write a 160 character message?Since my Korean phone manufacturer only write messages up to 80 characters.Show me how to edit and write up to 160 characters.Actually I do not know where to search and edit
Thank you very much and waiting for any solution
Android version I'm using 2.3.x SAMSUNG korea
Help me:crying:
need any solution to edit code, stringxml
Good compilation of MMS mods. Nice for all to be in one thread.
Thanks.
Sent from my GT-I9300 using xda premium
Avatars
Hello, Great Post!!
But, I hate to do this... I can't get to compile my mms.apk, Can someone help me removing the contacts avatars? I can send the apk
Im so sorry and embarrassed... Thanks in advance
Hi there, I currently observe a strange issue with a recompiled SystemUI.apk. Following the guidelines here in the forum, I changed the value of the background colour of the status bar from solid grey to semitransparent black. When I add this recompiled SystemUI.apk to a zip file containing the META-INF folder created by some advanced developer, I can flash the new SystemUI.apk and the statusbar will be semitransparent black after flash and reboot. So far, so good.
Now I tried a bit more and modified eybee1970 stock deodexed ROM. I deleted bloatware, updated Philz new kernel image and added my previously created SystemUI.apk with the semitransparent statusbar. Now the trouble appears. After flashing and rebooting, the statusbar is comepletly off, not visible, no chance to get it back.
In ssummary: My SystemUI.apk flashed to an already running stock deodexed ROM works fine, the same SystemUI.apk implemented in the same stock deodexed ROM zip file results in a non-appearing statusbar.
Can anybody advise me what I am doing wrong? I have attached the SystemUI.apk below if helpful for anyone.
Additional info: I used apktool command line based, JB version is the XXLSZ.
Thx
Have tried to mod the one that comes wiyh the rom instead of the one from the other rom
Sent from my GT-N7000 using XDA Premium HD app
ttibbetts83 said:
Have tried to mod the one that comes wiyh the rom instead of the one from the other rom
Sent from my GT-N7000 using XDA Premium HD app
Click to expand...
Click to collapse
Hi, I could not try the original one as this is ODEXed version. But meanwhile, after several hours of testing, I found my mistake not properly following guidelines and using APKtool. Now I have a good working SystemUI. Took only 3 hours to find...
So this threat can be closed, thx
HOW TO MODIFY THEME CHOOSER APKs (Windows only)
this thread was created to help my HUEsers modify my theme.apk, (may be applicable to other themes as well)
to get familiar and exposed on the contents of it and basic filenames / codes inside the apk,
because some users are not fully satisfied with my releases
some want additional stuffs added, some want to change some parts/areas, some want to remove specific apk being themed,
as much i want to help and provide modified themes for you, i may be busy most of the time,
and i can't even grant all your requests
so i decided to start the thread to help you guys, guide on how to mod it,
and who knows, one of these days
you will become one of the Recognized Themer of XDA,
enjoy and i hope you found this useful
WARNING!!!:
use this guide for your own use only, if you wish to release in public and start a new thread,
PLEASE ASK PERMISSION TO THE DEVELOPER and GIVE PROPER CREDITS AND LINKS
and DON'T modify and release their paid/donate version themes, RESPECT PLEASE!!!
WHAT YOU WILL NEED?
Java Platform (JDK)
Android SDK (included in ADT Bundle)
Notepad++
APK multitool - thanks @raziel23x
modified aapt.exe - thanks @titanic_fanatic
SETTING UP...
1. now that you have downloaded all the tools above, install jdk, sdk, and apk multitool one by one,
(instructions must be on their individual websites) you may want to install them all in the root of your drive C:
2. once you are done installing apk multitool, grab the aapt.exe you downloaded in the link above
(please thanked @titanic_fanatic on his post and work - this is a modified aapt.exe that lets you compile upper case package names)
and put/replaced existing aapt.exe in APK-Multi-Tool/other
LET"S DO IT!
decompiling theme (Hue.apk for ex)
1. put Hue.apk in APK-Multi-Tool/place-apk-here-for-modding
2. double click Script.bat in APK-Multi-Tool
3. press any key
4. press 9 (Decompile apk)
5. go to APK-Multi-Tool/projects and you will find a folder named Hue.apk
6. that's it, you have just successfully decompiled my theme and time to do the edits
7. don't close script.bat
modifying apk
1. this is the time you will do your modifications (changing/adding/deleting images and codes)
2. i will discussed most important parts of apk in post #2 to keep this instruction short and clean
3. don't close script.bat
compiling / signing / installing
1. on your phone, go to settings > developer options > and check usb debugging
2. connect your phone on your pc / laptop
3. now in Script.bat opened, select 15 (this will compile, sign and install your modified theme all at once at your phone)
4. that's it, check your phone using your modified theme
5. congratulations!
6. btw your modified apk is located in APK-Multi-Tool/place-apk-here-for-modding as signed_Hue.apk (you can rename it)
MY THEMES
Hue
Asul
SimpleSoft
HeKi [Hello Kitty]
CREDITS / THANKS
Learned from their threads:
anthonycr
nhnt11
ebs512
BASICS INSIDE THE APK
3 basic file types/extensions we will be dealing with most of the time
1. .xml - color codes, image redirections, are inside this file (use Notepadd++ to open such files)
2. .png - these are the images/icons we usually see on most part of the phone ui (open using photoshop/gimp and dont edit using paint or you will lose its transparency background)
3. .9.png - stretchable pngs that expand or shrink depending on the usage (these images has a black pixel boarder that needs to be preserved, or else you will be having error in compiling)
color codes (hex codes)
quick overview of color hexcodes (range - 0 1 2 3 4 5 6 7 8 9 A B C D E F)
#FF000000 as an example (represents black while white is #FFFFFFFF)
FF or the first two letters of the code represents its transparency 00 means full transparent while FF is opaque (im using 88 or 80 for semi transparent)
next 6 digits are the RGB color code, look at this way #FFRRGGBB
if you want solid red, use #FFFF0000, solid green #FF00FF00, solid blue #FF0000FF
just play with the color codes (im sure you have just played with it in most of the rom options)
decompiled apk
once you decompiled apk, you will noticed a folder named res (this is our main concern, we will be working with this folder all the time)
inside the res folder...
there are lots of drawable-** folder that contains all of our images (.png and .9.png),
most of the icons are located in drawable-xhdpi and drawable-hdpi,
you can also find values folder containing some xmls such as
styles.xml - this xml is where i usually make my inverts of ui (from holo.light to holo for example)
drawables.xml - some color codes were redirected here
colors.xml - some of the hex codes inside styles.xml were redirected here, most color codes inside drawable folder and color folder are also redirected here, so i can only have one place of editing when converting color codes on my color versions of themes
next is the xml folder
xmls inside this folder controls the apps being themed, you can find package names of the apps as the xmls filenames
if you will noticed, there are some xmls here having upper cases, that's why we need the modified aapt.exe (again thanks titanic_fanatic)
last is the mipmap-** folder
this folder contains all the themed launcher icons, i already redirected all my themed app's launcher icons here
file names
how do i named the images? let's put an example
go to res/xml and look for com_android_calculator2.xml
now this is the xml that controls my themed calculator, if you open up the xml via Notepad++ you will notice the original png file names being replaced by my own themed png through a line code
this line for example (this is the delete icon in calculator)
Code:
<item name="drawable/calc_clear_symbol">@drawable/calculator_calc_clear_symbol</item>
the stock/original png which is calc_clear_symbol.png under drawable-xhdpi folder
Code:
<item name="[B][COLOR="Red"]drawable/calc_clear_symbol[/COLOR][/B]">@drawable/calculator_calc_clear_symbol</item>
is now being replaced by my themed icon calculator_calc_clear_symbol.png under drawable-xhdpi folder
Code:
<item name="drawable/calc_clear_symbol">@[B][COLOR="Red"]drawable/calculator_calc_clear_symbol[/COLOR][/B]</item>
i just put a prefix calculator_ so i can easily locate where they are when modifying
**most of the themes out there uses the app's package name as their prefix
for example...
in my theme i use
Code:
<item name="drawable/calc_clear_symbol">@drawable/[B][COLOR="Red"]calculator_[/COLOR][/B]calc_clear_symbol</item>
but others and most of them use
Code:
<item name="drawable/calc_clear_symbol">@drawable/[B][COLOR="Red"]com_android_calculator2_[/COLOR][/B]calc_clear_symbol</item>
i just make it simple the way i can easily search them in my drawables folder
IT'S MODDING TIME!
i will show you some examples and what file to edit with these mods
again file names of images may vary depending on theme,
but package name under res/xml are standard on all theme
before you begin modifying, delete Public.xml in res/values folder
remove themed launcher icons
delete these two folders
res/mipmap-hdpi
res/mipmap-xhdpi
remove themed specific apps
for example you don't want my themed keyboard and prefer stock aosp keyboard look
delete the xml of the apps you want to be removed, in our example keyboard which is
com_android_inputmethod_latin.xml in res/xml folder
change background of system and dialer
prepare your custom background (make sure you have the right size as per your screen resolution)
hdpi - 480x800
xhdpi - 640x960
and name it as
contacts_background_dial_holo_dark.png and framework_background_holo_dark.png
and replaced existing backgrounds in res/drawable-nodpi
change notification background
the image for that is system_notification_panel_bg.9.png located in res/drawable-xhdpi
note that this is a .9.png, be careful in editing and preserve the black 1px boarder of it
however you can bypass the image if you want to make it the stock look or pure black look
open com_android_systemui.xml in res/xml
look for the line
Code:
<item name="drawable/notification_panel_bg">@drawable/system_notification_panel_bg</item>
you can see that it was redirected to my themed image system_notification_panel_bg.9.png
if you prefer the stock background look, just delete that entire line
if you want it to be pure black, remove the redirection to the custom image and this time redirect it to hex code instead
Code:
<item name="drawable/notification_panel_bg">#FF000000</item>
change (non connected to google server) signal back to grey
download HueSilver.apk, rightclick and open archive using 7zip
go to res/drawable-xhdpi (for phone ui only, for tablet ui, go to res/drawable-sw720dp-xhdpi)
drag these icons outside the apk and replaced it on the apk you were modifying
(dragging existing images from the apk is only applicable to .png and not to .9.png)
system_stat_sys_data_connected_1x.png
system_stat_sys_data_connected_3g.png
system_stat_sys_data_connected_4g.png
system_stat_sys_data_connected_e.png
system_stat_sys_data_connected_g.png
system_stat_sys_data_connected_h.png
system_stat_sys_data_connected_hp.png
system_stat_sys_signal_1.png
system_stat_sys_signal_2.png
system_stat_sys_signal_3.png
system_stat_sys_signal_4.png
system_stat_sys_wifi_signal_1.png
system_stat_sys_wifi_signal_2.png
system_stat_sys_wifi_signal_3.png
system_stat_sys_wifi_signal_4.png
i will update this post on my free time and depending on users concern
just ask here and i will see if i can answer all areas, sometimes i can't remember what file/png i've changed
---
Looks good
Keep up the good work
Edit: Added to the RootBox Jelly Bean Mods thread http://forum.xda-developers.com/showthread.php?t=1806577
Very nice, thank you
Sent from my Nexus 7 using Tapatalk HD
Bookmarked for the weekend! Thanks, kroz!
thanks guys, i hope you'll learn something in this thread
thanks a lot for your guide. it will help us A LOT.
but i tried to decompile "hue_2.8.apk" twice, but it showed error.
i decompile some other apps' apk files and it's ok.
yaibakt said:
thanks a lot for your guide. it will help us A LOT.
but i tried to decompile "hue_2.8.apk" twice, but it showed error.
i decompile some other apps' apk files and it's ok.
Click to expand...
Click to collapse
what error?
can you try to rename first Hue_2.8.apk to Hue.apk and decompile again
kroz said:
what error?
can you try to rename first Hue_2.8.apk to Hue.apk and decompile again
Click to expand...
Click to collapse
the 2nd time i tried, i renamed it to Hue.apk already.
ive been using this software to mod some other apps before. but this is error on mine:
yaibakt said:
the 2nd time i tried, i renamed it to Hue.apk already.
ive been using this software to mod some other apps before. but this is error on mine:
Click to expand...
Click to collapse
try to update your framework-res.apk in /other folder
replaced it with your rom's framework-res.apk (android 4.2.2)
Salamat.
How about the clock? If I want to make it the default one. Thanks
JeraldPenus said:
Salamat.
How about the clock? If I want to make it the default one. Thanks
Click to expand...
Click to collapse
which clock?
kroz said:
try to update your framework-res.apk in /other folder
replaced it with your rom's framework-res.apk (android 4.2.2)
Click to expand...
Click to collapse
still no luck. i get framework-res.apk from my phone at folder /system/framework/ and copy to the other/ folder of apk multi tool, and try to decompile again, but still error.
Just changed background for dialer and settings:laugh:
Wow. I knew before its a lot of work what you do... but its huge work(after I saw how many .png`s there)!!!:good:
Thanks for lesson Mark
yaibakt said:
still no luck. i get framework-res.apk from my phone at folder /system/framework/ and copy to the other/ folder of apk multi tool, and try to decompile again, but still error.
Click to expand...
Click to collapse
hmmm, maybe you can try to check this thread
http://forum.xda-developers.com/showthread.php?t=1310151
i am not expert on the tool itself, maybe the developer could give some suggestions
rtimoff said:
Just changed background for dialer and settings:laugh:
Wow. I knew before its a lot of work what you do... but its huge work(after I saw how many .png`s there)!!!:good:
Thanks for lesson Mark
Click to expand...
Click to collapse
there are lots of images, and i already deleted thousands of repeated images and just redirect those
to make the file smaller,
5 months in existence
kroz said:
there are lots of images, and i already deleted thousands of repeated images and just redirect those
to make the file smaller,
5 months in existence
Click to expand...
Click to collapse
yeah, titanic work
Mercado_Negro said:
@kroz
I just noticed that the signal bars are always blue (using HueLite2.8), which is weird because I've been using your theme for a couple of versions and this is the first time I notice this. You can read my specs on my signature below.
I follow the color change from grey to blue and viceversa to check if there's Internet on my phone.
Could you please tell me if I can edit this using your guide and what should I change if that's the case? It would be great if it followed the color conventions in the official version, though.
Thanks in advance, sir.
Click to expand...
Click to collapse
download HueSilver.apk, rightclick and open archive using 7zip
go to res/drawable-xhdpi (for phone ui only, for tablet ui, go to res/drawable-sw720dp-xhdpi)
drag these icons outside the apk and replaced it on the apk you were modifying
(dragging existing images from the apk is only applicable to .png and not to .9.png)
system_stat_sys_data_connected_1x.png
system_stat_sys_data_connected_3g.png
system_stat_sys_data_connected_4g.png
system_stat_sys_data_connected_e.png
system_stat_sys_data_connected_g.png
system_stat_sys_data_connected_h.png
system_stat_sys_data_connected_hp.png
system_stat_sys_signal_1.png
system_stat_sys_signal_2.png
system_stat_sys_signal_3.png
system_stat_sys_signal_4.png
system_stat_sys_wifi_signal_1.png
system_stat_sys_wifi_signal_2.png
system_stat_sys_wifi_signal_3.png
system_stat_sys_wifi_signal_4.png
kroz said:
download HueSilver.apk, rightclick and open archive using 7zip
go to res/drawable-xhdpi (for phone ui only, for tablet ui, go to res/drawable-sw720dp-xhdpi)
drag these icons outside the apk and replaced it on the apk you were modifying
(dragging existing images from the apk is only applicable to .png and not to .9.png)
system_stat_sys_data_connected_1x.png
system_stat_sys_data_connected_3g.png
system_stat_sys_data_connected_4g.png
system_stat_sys_data_connected_e.png
system_stat_sys_data_connected_g.png
system_stat_sys_data_connected_h.png
system_stat_sys_data_connected_hp.png
system_stat_sys_signal_1.png
system_stat_sys_signal_2.png
system_stat_sys_signal_3.png
system_stat_sys_signal_4.png
system_stat_sys_wifi_signal_1.png
system_stat_sys_wifi_signal_2.png
system_stat_sys_wifi_signal_3.png
system_stat_sys_wifi_signal_4.png
Click to expand...
Click to collapse
Grrr... I'm limited to 8 thanks per day.... Thanks a ton, kroz! You're da man!
i have to make change in gdx31b framework to have kitkat style in this rom
but i am not professional in this side or other of develop for android
all i do i replaced images with other
but i have faced some problems
and i can not deal with it
can any one help me
the latest framework res apk at attachment
pls help
and the images of problems at attachment
i want to make progress line like kitkat and the problem of some fonts color
for changing font colors you need to decompile framework-res file and edit some values
search changing fonts cm 7 and you will find more
for decompiling you can use apk multi tool