Hey guys I am trying to edit the mms.apk so that all the text color is cyan. I have NinjaMorph but I don't know which xml file the text part is in. My question is where the xml file is so i can edit it.
The drawables.xml has the following values:
Code:
<item type="drawable" name="text_color">#ffffffff</item>
<item type="drawable" name="text_color_red">#ffff0000</item>
<item type="drawable" name="text_color_black">#ff000000</item>
<item type="drawable" name="text_color_offwhite">#55ffffff</item>
<item type="drawable" name="text_color_green">#ff00ff00</item>
Have you tried those?
wewoapsiak said:
The drawables.xml has the following values:
Code:
<item type="drawable" name="text_color">#ffffffff</item>
<item type="drawable" name="text_color_red">#ffff0000</item>
<item type="drawable" name="text_color_black">#ff000000</item>
<item type="drawable" name="text_color_offwhite">#55ffffff</item>
<item type="drawable" name="text_color_green">#ff00ff00</item>
Have you tried those?
Click to expand...
Click to collapse
Where is that xml file in the .apk?
Mms.apk\res\values
You have to decompile the apk for values subfolder to be viewable. When compiled this along with a bunch of other stuff gets "hidden" and lumped into the resources.arsc file.
wewoapsiak said:
Mms.apk\res\values
You have to decompile the apk for values subfolder to be viewable. When compiled this along with a bunch of other stuff gets "hidden" and lumped into the resources.arsc file.
Click to expand...
Click to collapse
Stupid me forgot to decompile
wewoapsiak said:
The drawables.xml has the following values:
Code:
<item type="drawable" name="text_color">#ffffffff</item>
<item type="drawable" name="text_color_red">#ffff0000</item>
<item type="drawable" name="text_color_black">#ff000000</item>
<item type="drawable" name="text_color_offwhite">#55ffffff</item>
<item type="drawable" name="text_color_green">#ff00ff00</item>
Have you tried those?
Click to expand...
Click to collapse
Just making sure but I edit all of the text colors to the cyan code (#00FFFF) to make all text a cyan text color right?
You have to add transparency (alpha) code to the beginning of the setting. Cyan would be:
#ff00ffff
I've never messed with the mms.apk, but I think these should be the values you need to change.
wewoapsiak said:
You have to add transparency (alpha) code to the beginning of the setting. Cyan would be:
#ff00ffff
I've never messed with the mms.apk, but I think these should be the values you need to change.
Click to expand...
Click to collapse
But do I edit every text code in the xml to #ff00ffff?
Yeah I got nothing on which one to change. Just keep trying until you get what you want.
Woah I can't compile my apk with APK Manager, Im getting an error. Any help?
thor6577 said:
Woah I can't compile my apk with APK Manager, Im getting an error. Any help?
Click to expand...
Click to collapse
What error? I just changed all the values I listed above then recompiled perfectly. Selected yes for system apk, then yes for the error question, deleted the resources.arsc, then continued.
Also the styles.xml has the following value that might help you if the above ones don't
<item name="android:textColor">?android:textColorPrimary</item>
You could try changing the ?android....Primary to the code for your color.
wewoapsiak said:
What error? I just changed all the values I listed above then recompiled perfectly. Selected yes for system apk, then yes for the error question, deleted the resources.arsc, then continued.
Also the styles.xml has the following value that might help you if the above ones don't
<item name="android:textColor">?android:textColorPrimary</item>
You could try changing the ?android....Primary to the code for your color.
Click to expand...
Click to collapse
What did you use to recompile?
Sent from my phone
I use APK Manager 4.9 for decompiling/recompiling. Editpad Lite for editing xml files.
I will try that version. I think I was using 5.2, but its a little glitchy. How large was your compiled apk after the delete of resources file? Mine is only 554 KB and im not sure if that is large enough.
hy
what exactly line in the drawable to change the color of text font i want to change it to yellow thnx
Related
This is my FIRST time trying something like this so bear with me...
So I'm really trying to make my froyo rom look like my old SE 2.1 rom...
I've been trying to add a background to the ORIGINAL SE calculator.apk (ORIGINAL Calculator.apk is below). I used apktool to decomplie it and build it with my modifications.
I edited androidmanifest.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest android:versionCode="7" android:versionName="2.1-update1" package="com.android.calculator2"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7" />
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:theme="@style/calcBackgroundTheme" android:name="Calculator">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
^I put in the line <activity android:theme="@style/calcBackgroundTheme"
and I edited the Styles.xml in the values folder..
Code:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="button_style">
<item name="android:textSize">40.0dip</item>
<item name="android:background">@drawable/transparent_button</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_margin">2.0dip</item>
<item name="android:layout_marginLeft">1.0dip</item>
<item name="android:layout_weight">1.0</item>
</style>
<style name="digit_button_style" parent="@style/button_style">
<item name="android:background">@drawable/transparent_button</item>
</style>
<style name="button_small_style" parent="@style/button_style">
<item name="android:textSize">30.0dip</item>
</style>
<style name="display_style">
<item name="android:textSize">36.0dip</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:gravity">right|center</item>
<item name="android:padding">8.0dip</item>
<item name="android:scrollbars">none</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:maxLines">1</item>
<item name="android:scrollHorizontally">true</item>
</style>
<style name="calcBackgroundTheme" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/calc_bg</item>
</style>
</resources>
^I put in <style name="calcBackgroundTheme" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/calc_bg</item>
</style>
Then I placed my calc_bg.apk in my drawable and drawable_hdpi folders....
Then i built the application and put it on my phone but when I try to install it, it would say application not installed, when i put it through xrecovery it wouldnt show up at all... Did I mess up the background? Is it a signing issue?
The modified Calculator.apk and its decompiled files can be found here
HTML:
http://www.mediafire.com/?i70bh1pzbcmvhbi
Any help is appreciated...please...
Sent from a pyramid in Canadada
egyptshun said:
Any help is appreciated...please...
Sent from a pyramid in Canadada
Click to expand...
Click to collapse
i think its signing issues. not the background issues.
Try that see if its working.
you can't install it as it is a system application. and you should not sign it too.
you need to push it to /system/app through adb or use root explorer and set the right permission.
realunited123 said:
you can't install it as it is a system application. and you should not sign it too.
you need to push it to /system/app through adb or use root explorer and set the right permission.
Click to expand...
Click to collapse
agree with the push it but you should also sign it...
rdannar said:
agree with the push it but you should also sign it...
Click to expand...
Click to collapse
If it's going to /system/app, you don't have to sign it.
I've modified Smart Keyboard Pro and pushed it to /system without signing.
If you are using Root Explorer, copy it into /system/app, replace the original,
then change permissions to rw-r-r (meaning, check all the first column, and the first one from the second) reboot and enjoy!
take the apk file from your froyo rom
open it with 7zip
search in the files to see the backgroung image
change it with anything you want and reinstall the new apk
it's simple
اذا كان هذا قصدك :d
اما اذا انت جالس تبرمج حاجه ثانيه ما اقدر افيدك لووول
لو عاوز اي حاجه تانيه عالبي ام يا مان
Ghaith Alshareef said:
take the apk file from your froyo rom
open it with 7zip
search in the files to see the backgroung image
change it with anything you want and reinstall the new apk
it's simple
Click to expand...
Click to collapse
The original apk points to an image in 2.1 framework-res for the background so he had to add the code that points to an image he added to the apk itself and therefore has to recompile, but not sign since it's a system apk.
It's safe to say My_Immortal knows what she's talking about. If you do what she said & it still doesn't install, check the new code for errors.
Sent from my X10a using XDA App
It still doesn't went to instal with my mods...WTF DO I DO? MY FIRST PROJECT IS LOOKING LIKE MY LAST... GRAHH, STUPID CODES.....
Sent from a pyramid in Canadada
Ghaith Alshareef said:
take the apk file from your froyo rom
open it with 7zip
search in the files to see the backgroung image
change it with anything you want and reinstall the new apk
it's simple
اذا كان هذا قصدك :d
اما اذا انت جالس تبرمج حاجه ثانيه ما اقدر افيدك لووول
لو عاوز اي حاجه تانيه عالبي ام يا مان
Click to expand...
Click to collapse
No bud, thats not what I'm trying to do, thanks tho..
hierarchy666 said:
i think its signing issues. not the background issues.
Try that see if its working.
Click to expand...
Click to collapse
Nope... thanks tho aswell..
egyptshun said:
No bud, thats not what I'm trying to do, thanks tho..
Nope... thanks tho aswell..
Click to expand...
Click to collapse
have you tried addin this
Code:
android:background="@drawable/calc_bg" android:layout_width="fill_parent" android:layout_height="fill_parent"
to styles it mite work lol , but dont give up dude
jase81 said:
have you tried addin this
Code:
android:background="@drawable/calc_bg" android:layout_width="fill_parent" android:layout_height="fill_parent"
to styles it mite work lol , but dont give up dude
Click to expand...
Click to collapse
Isnt it already there?
Sent from a pyramid in Canadada
I can just edit the pngs and the .9.pngs and everything goes fine. I can install and everything works perfectly except the font is too dark on the widget so you cant see it. I am wanting to change the font on the venues widget to white not black. If you look at the styles.xml there are 3 instances that are there and they are as follows:
HTML:
<style name="TextViewStyleVenueActivityTodoHere">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityBold">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityNormal">
<item name="android:textSize">14.0dip</item>
<item name="android:textColor">@color/black_end</item>
</style>
I am changing black_end to white. that is all I am changing. Anyone offer any assistance with this? Attached in the zip is the original apk and the pngs (yes I ran the 9patch on the .9.pngs) that I have edited and the styles.xml file is in res/values
The app compiles, signs, and installs fine, but will FC as soon as I try to open it. I also attached the adb log from trying to open the app if anyone can decipher that. lol
Any help would be GREATLY appreciated.
Tutorial How to change setting background In my themes
http://www.mediafire.com/?49f25u9n0y9s75u
1.download the attached zip
2.Right click the zip open it with winrar
3.A new window open in winrar then browse vrtheme/system/framework/framework-res.apk/res/drawable-hdpi
There you will see a background_own.png now replace it with yours image[make sure it is a.png image and name as background_own]
4.Close the winrar copy this zip to your sd card and flash as always
Thanks tarun for the tutorial.
But can you share the tutorial from scratch? Because just replacing the png on a stock framework-res won't work right?
So if you can then can you explain which xml or smali are to edited?
Sent from my GT-I9003 using xda premium
really thanx buddy. It will help me a lot to play more with my phone
exctngdude said:
Thanks tarun for the tutorial.
But can you share the tutorial from scratch? Because just replacing the png on a stock framework-res won't work right?
So if you can then can you explain which xml or smali are to edited?
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
Try this:
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
9. Create a 240x400 png to your liking, name it mybackground.png and place it in drawable, drawable-ldpi, drawable-mdpi folder
9. Recompile framework-res.apk
NOTE: U can give any color which is available in res/values/color.xml.
Sent from my GT-I9003 using XDA App
Nice work tarunagg
Thanks a lot. which tools do you recommend to decompile the apk and to edit the.xml?
jaskiratsingh said:
Try this:
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
9. Create a 240x400 png to your liking, name it mybackground.png and place it in drawable, drawable-ldpi, drawable-mdpi folder
9. Recompile framework-res.apk
NOTE: U can give any color which is available in res/values/color.xml.
Sent from my GT-I9003 using XDA App
Click to expand...
Click to collapse
Uan_ar said:
Thanks a lot. which tools do you recommend to decompile the apk and to edit the.xml?
Click to expand...
Click to collapse
Use apk manager to decompile
And notepad++ to edit files
send from gt-i9003 using android keyboard
tarunagg said:
Tutorial How to change setting background In my themes
http://www.mediafire.com/?49f25u9n0y9s75u
1.download the attached zip
2.Right click the zip open it with winrar
3.A new window open in winrar then browse vrtheme/system/framework/framework-res.apk/res/drawable-hdpi
There you will see a background_own.png now replace it with yours image[make sure it is a.png image and name as background_own]
4.Close the winrar copy this zip to your sd card and flash as always
Click to expand...
Click to collapse
how about other theme? beside urs.
Followed the steps but i cant change the background...
Thank you very much!! I did everything but didn't work for me...
1. Download .rar
2. Open vrtheme/system/framework/framework-res.apk/res/drawable-hdpi and replace that png with another one with the same size and with the same name
3. Flash in CWM
An advice, you could edit the updater-script, because when u are flashing it, it says "get prepared for ICS world" lol.
luiseteyo said:
Thank you very much!! I did everything but didn't work for me...
1. Download .rar
2. Open vrtheme/system/framework/framework-res.apk/res/drawable-hdpi and replace that png with another one with the same size and with the same name
3. Flash in CWM
An advice, you could edit the updater-script, because when u are flashing it, it says "get prepared for ICS world" lol.
Click to expand...
Click to collapse
i always do same thing. It worked perfectly for me.
really thanx buddy. It will help me a lot to play more with my phone
does it work on xxkpu
Dear Tarunagg,
How i want changed font colour if i used this background
Sent from my GT-I9100G using XDA
Dear Tarunagg,
How i want changed font colour if i used this background
Sent from my GT-I9100G using XDA
Thanks! Worked for me!
Sent From My Galaxy SL
brothers if you can help me to change the color of progress ram in setting.apk base jelly bean unofficial 4.2.2
Hello every one, This is easy way how to hide signal, why hide signal ?? because some people want to hide one off signal, so i share what i can
Steps ::
Decompile your SystemUI
[*]Navigate to res/drawable-hdpi
Delete some signal's png, free, it's up to you (ex :: green signal). So delete ::
Code:
stat_sys_gemini_signal_1_green.png
stat_sys_gemini_signal_2_green.png
stat_sys_gemini_signal_3_green.png
stat_sys_gemini_signal_4_green.png
Navigate to values/drawables and then add this at the bottom
Code:
<item type="drawable" name="stat_sys_gemini_signal_1_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_2_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_3_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_4_green">#00000000</item>
Recompile your SystemUI, Done
So the question :: How to hide signal ??
Go to Settings/Sim Management, and then choose the first or the second sim to the green indicator, look at to your statusbar, your signal will be hidden
Don't say thanks if i help you, but press it :good:
Nice Exploration
bagustinov said:
Hello every one, This is easy way how to hide signal, why hide signal ?? because some people want to hide one off signal, so i share what i can
Steps ::
Decompile your SystemUI
[*]Navigate to res/drawable-hdpi
Delete some signal's png, free, it's up to you (ex :: green signal). So delete ::
Code:
stat_sys_gemini_signal_1_green.png
stat_sys_gemini_signal_2_green.png
stat_sys_gemini_signal_3_green.png
stat_sys_gemini_signal_4_green.png
Navigate to values/drawables and then add this at the bottom
Code:
<item type="drawable" name="stat_sys_gemini_signal_1_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_2_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_3_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_4_green">#00000000</item>
Recompile your SystemUI, Done
So the question :: How to hide signal ??
Go to Settings/Sim Management, and then choose the first or the second sim to the green indicator, look at to your statusbar, your signal will be hidden
Don't say thanks if i help you, but press it :good:
Click to expand...
Click to collapse
kEEp it Up Bro!
good
i ve been searching for this for a long time
saalikrao said:
kEEp it Up Bro!
Click to expand...
Click to collapse
Thanks bro
sharath7610 said:
i ve been searching for this for a long time
Click to expand...
Click to collapse
Haha you get it now :laugh:
wow..very very easy thank bro
Hi, I want to edit a theme.apk that I'm using. In the screenshots I highlighted what I want to edit.
Screenshot 1: I want to edit the colors of the two kind of highlighted text.
Screenshot 2: I want to find and edit (maybe with Paint) highlighted images.
1:
2:
I tried to extract the APK and I think color codes are in ..\res\values\colors.xml but I don't know which code I have to edit.
This is the file: DOWNLOAD ( VIEW VERSION )
Thank you!
riki075 said:
Hi, I want to edit a theme.apk that I'm using. In the screenshots I highlighted what I want to edit.
Screenshot 1: I want to edit the colors of the two kind of highlighted text.
Screenshot 2: I want to find and edit (maybe with Paint) highlighted images.
1:
2:
I tried to extract the APK and I think color codes are in ..\res\values\colors.xml but I don't know which code I have to edit.
This is the file: DOWNLOAD ( VIEW VERSION )
Thank you!
Click to expand...
Click to collapse
2. QS text color is managed by a style from SystemUI. You won't find anything into colors.xml
Primokorn said:
2. QS text color is managed by a style from SystemUI. You won't find anything into colors.xml
Click to expand...
Click to collapse
But It change when I apply the theme
riki075 said:
But It change when I apply the theme
Click to expand...
Click to collapse
The theme changes the tiles. Nothing weird. The color is just defined into styles.xml and not colors.xml
Primokorn said:
The theme changes the tiles. Nothing weird. The color is just defined into styles.xml and not colors.xml
Click to expand...
Click to collapse
I found "folder_icon_title_text" and "folder_title_text" in colors.xml
Code:
<color name="folder_icon_title_text">#ffffffff</color>
<color name="folder_title_text">#ff33b5e5</color>
#ffffffff is white and 33b5e5 is light blue, but in the screenshot the two colors aren't those. What do you think?
riki075 said:
I found "folder_icon_title_text" and "folder_title_text" in colors.xml
Code:
<color name="folder_icon_title_text">#ffffffff</color>
<color name="folder_title_text">#ff33b5e5</color>
#ffffffff is white and 33b5e5 is light blue, but in the screenshot the two colors aren't those. What do you think?
Click to expand...
Click to collapse
Here is how I change the color if the tile text through systemui:
Code:
<style name="TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" parent="@android:style/TextAppearance" />
<style name="TextAppearance" />
<style name="TextAppearance.QuickSettings" parent="@style/TextAppearance" />
<style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ff111111</item>
<item name="android:textAllCaps">true</item>
<item name="android:paddingStart">6.0dip</item>
<item name="android:paddingEnd">6.0dip</item>
</style>