{request}how to hide alarm and bluetooth icons from status bar - Galaxy S III Themes and Apps

im trying to hide the bluetooth and alarm icons from the status bar. none of the previous methods from gingerbread work.
this is where i am--
in SystemUI>smali>com>android>systemui>ststusbar>policy is alarmcontroller.smali.
i edited the lines:
const-string v5, "alarmSet"
invoke-virtual {p2, v5, v6}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
move-result v2
to be:
const/4 v0, 0x0
const-string v5, "alarmSet"
const/4 v2, 0x0
this doesnt work. I need help if anybody knows how to do it.
For the bluetooth icon, i have no clue where to start looking in smali

Try:
Statusbarpolicy.smali in the systemUI.apk
Decompile that apk and you will find the file in smali/com/android/systemui/statusbar/policy.
Then do this (which looks like what you've been doing anyway):
http://forum.xda-developers.com/showpost.php?p=8104552&postcount=2
I don't know what to do with these info either (I can't decompile Smali), just passing it along.

eiraku said:
Try:
Statusbarpolicy.smali in the systemUI.apk
Decompile that apk and you will find the file in smali/com/android/systemui/statusbar/policy.
Then do this (which looks like what you've been doing anyway):
http://forum.xda-developers.com/showpost.php?p=8104552&postcount=2
I don't know what to do with these info either (I can't decompile Smali), just passing it along.
Click to expand...
Click to collapse
thanks but Statusbarpolicy.smali doesnt exist anymore

Oh mai.
Guess this has to do with all the 4.0.4 changes I keep on hearing about.
I'm extremely interested in doing away with my alarm icon myself, so I'll be keeping a close eye on this thread, while googling around for an answer myself.
As a stopgap measure, I found out that Sleep as Android (my alarm app) can hide the alarm icon partially. There's still a very small gap between the BT icon and the data indicator though, but oh well.

nobody? bueller. bueller.

BUMP

eiraku said:
Try:
Statusbarpolicy.smali in the systemUI.apk
Decompile that apk and you will find the file in smali/com/android/systemui/statusbar/policy.
Then do this (which looks like what you've been doing anyway):
http://forum.xda-developers.com/showpost.php?p=8104552&postcount=2
I don't know what to do with these info either (I can't decompile Smali), just passing it along.
Click to expand...
Click to collapse
Thread has been edited and is now empty. Does anyone have another source?

In jkay mod, you have the option to hide bluetooth icon and also alarm try it out...
Sent from my GT-I9300 using xda premium

Related

change font colors?

im trying to change the font color in the notification bar, how would i go about doing that?
any help would be nice.
thanks.
Search for: colorchanger.jar
Should answer all of your questions.
Or you can edit the xml file that is in framework/status_bar.xml
i'll hijack this thread with my own question. colorchange.jar only works for cyanogen's builds, and not all of us use cyanogen's. I'm trying to change the clock color to white. I know it's in services.jar, and I know that using colorchange wont help because cyanogen's is different from the stock one, so i tried editing it myself, i opened up the dex with baksmali and looked through StatusBarService.smali code but I really can't identify where or how to edit the color for it. There are so many unnamed variables so any of them could be anything, so if somebody could point out what it is I'm looking for, i could do it myself
@jubeh: check out the color changing thread.
I remember putting the two blocks in [code][/code] tags so you could do it yourself. ; )
thanks you mianosm
i saw;
Code:
Line 4115> const v8, -0x1 invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V
and
Code:
Line 86> .line 46 const/high16 v6, -0x100 invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V
but forgive my newbiness on this, i don't understand dalvik disassembled code, i understand java, and i understand that this code is decompiler generated variables that hardly resemble the orginal source, so I can't see where the color information is. My date color is working white, so i'm just looking to change the clock color, that would be
Code:
Line 4115> const v8, -0x1 invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V
right? would you mind explaining the parts of that line to me?
-0x1 is actually the hex variable controlling the color.
0x, and -0x just indicated that it will be a hex color, and the 1 is the shortened form.
Much like when you're working/building up a CSS you can do either:
#000000
or
#000
mianosm said:
-0x1 is actually the hex variable controlling the color.
0x, and -0x just indicated that it will be a hex color, and the 1 is the shortened form.
Much like when you're working/building up a CSS you can do either:
#000000
or
#000
Click to expand...
Click to collapse
alright, thanks, that's where it threw me off. I was looking for the full hex FF000000, so I just need to change that to whatever FFFFFFFF translates to in short hex, or can I just plug FFFFFFFF instead?
Full hex value should work - I just inverted it since it was black/white. YMMV
alright, thanks a lot
it took me a good long while, but i managed to change the clock color from black to red, i wanted it white though >.<
I just couldn't find anything resembling
Code:
const v8, -0x1 invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V
inside StatusBarService.smali. Actually, I searched the whole thing and couldn't find any instance of setTextColor anywhere. I tried several other .smali files and couldn't find anything. I ended up editing
Code:
.line 46 const/high16 v6, -0x100 invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V
in StatusBarIcon instead, when i set it to -0x1, and also when i set it to 0xFFFFFFFF, the clock color changed to red...
I figured out what to do by following what the colorchange jar was doing (thanks for the source, it helped A LOT), and going through it, i think it might be the other way around, the clock color is in StatusBarIcon and the Date color is somewhere else (because, again, i didn't find any setTextColor in StatusBarService). I'm editing a bone-stock services.jar based on crc1, nothing else has been done to it (no stericsson fix or other stuff, it's bone stock), so that might be why it's different, but I'm puzzled by why any change I make to the file that does seem to affect the clock changes it to red, it might be a fallback color, or maybe it's interpreting the color information i enter in a different way than i want it to, I'll keep trying different color codes, but i might just go back to cyanogen and become a measly rom and theme user instead.
You aren't going to find setTextColor - it's added by some as a java call for when it's recompiled.
You can change the variable (v8) to (v7) or (v7) to (v6) if my memory serves me correctly, I honestly do not remember.
do you remember which method this is all under?
---edit---
i edited StatusBarIcon a little more (just that one value), and tried several things, anything 0x gives me a fully translucent clock, anything -0x gives me a red clock, i don't see how it's releated, but i do see that I won't be able to change it here, but in StatusBarService instead.
I'm going to add;
const v8, -0x1 invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V
to that file, but, again, if you can remember which method it is in, that would pretty much get it done
Could you host the services.jar for me - I'll bust it up and peek at it.
Shouldn't be too tough. ; )
jubeh said:
do you remember which method this is all under?
---edit---
i edited StatusBarIcon a little more (just that one value), and tried several things, anything 0x gives me a fully translucent clock, anything -0x gives me a red clock, i don't see how it's releated, but i do see that I won't be able to change it here, but in StatusBarService instead.
I'm going to add;
const v8, -0x1 invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V
to that file, but, again, if you can remember which method it is in, that would pretty much get it done
Click to expand...
Click to collapse
I've been trying to do this since I ported the Hero theme to the CRB43-US rom. But every time I did something to it, it still would show it in black. I thought it was the odex files replacing the original file after my edits. I even had Ohsaka edit me one with the original framework files of the CRB43-US with still no luck. You got red, Its still progress...
mianosm said:
Could you host the services.jar for me - I'll bust it up and peek at it.
Shouldn't be too tough. ; )
Click to expand...
Click to collapse
her it is, thanks a lot for your time
RichieDaze said:
I've been trying to do this since I ported the Hero theme to the CRB43-US rom. But every time I did something to it, it still would show it in black. I thought it was the odex files replacing the original file after my edits. I even had Ohsaka edit me one with the original framework files of the CRB43-US with still no luck. You got red, Its still progress...
Click to expand...
Click to collapse
i didn't really "get" red, because it still won't change to anything but red. I think it's really a fallback font, but then that means there's got to be;
1. a definition for what the fallback color should be and
2. a proper variable to set in order to get a color other than the fallback
Push / bump

[Q] Help with modding In-Sensitive Minimalist 3.1

Does anyone know how to remove the "Quick Settings" text from the header?
I have APK Manager so I can decompile .xml files and make the changes, but I don't know which file to edit. I'd just like to stop the text from appearing over my header in the quick settings drop down. I'm running In-Sensitive Minimalist 3.1 ROM. Thanks
Motor Daddy said:
Does anyone know how to remove the "Quick Settings" text from the header?
I have APK Manager so I can decompile .xml files and make the changes, but I don't know which file to edit. I'd just like to stop the text from appearing over my header in the quick settings drop down. I'm running In-Sensitive Minimalist 3.1 ROM. Thanks
Click to expand...
Click to collapse
yes let me look for the guide
EDIT:
Quick Settings Label
SystemUI\res\drawable-hdpi\layout\quick_settings.xml
Look for:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:gravity="center_vertical"
in the textcolor= change the "ff000000" to "00000000" (-zero not o)
source
Sweet, had never seen this before, hit the Thanks button already for you!
RMarkwald said:
Sweet, had never seen this before, hit the Thanks button already for you!
Click to expand...
Click to collapse
You're welcome.
Sent from my sexy assistant. (AMOLED HTC Incredible)

[APP][CM7] Stock Touchwiz MMS clone for CM7

Just a modification of the MMS app found at this thread: http://forum.xda-developers.com/showthread.php?t=1616499
Modified it to look like the stock Touchwiz MMS as much as possible since there really aren't any decent looking alternatives. Sure I could use Go or Handcent but I wanted the stock look.
Just replace Mms.apk in /system/app and make sure it's chmod is 644 and you should be good to go.
Update:
- Changed color scheme so that it gets colors from values/colors.xml rather than having them hard coded with Touchwiz color scheme. This way it's easier to customize the conversation list to match your theme better if you plan on decompiling and playing with it yourself. See post below for customizing message text, as it isn't quite as obvious.
- Fixed Compose icon in menu... was showing Attachment icon instead for some reason.
- Changed compose and contact buttons to better fit Touchwiz theme.
- Fixed some of the text coloring in white background mode... now it matches better.
- Fixed a nasty layout bug when downloading MMS messages. Downloading was written vertically across the right side of the bubble, taking up the whole screen... very ugly.. now it's laid out horizontally and looks much cleaner.
Can you port to stock? Seems much better than stock mms apk...
I'm not sure how to port to stock... I'm pretty new at all of this... mostly I'm just theming someone else's app for my own personal use and I decided to share it with the world in case anyone else was interested.
Also, in the old thread where the original app was posted, people were having trouble editing message text colors. I've figured this out, and it involves modifying ui/MessageListItem.smali
The following sections of code contain RGB hex values that control the incoming and outgoing text and date colors.
Outgoing text:
Code:
.line 391
new-instance v4, Landroid/text/style/ForegroundColorSpan;
const/16 v5, 0x0
const/16 v6, 0x0
const/16 v7, 0x0
invoke-static {v5, v6, v7}, Landroid/graphics/Color;->rgb(III)I
Incoming text:
Code:
.line 393
:cond_6
new-instance v4, Landroid/text/style/ForegroundColorSpan;
const/16 v5, 0x0
const/16 v6, 0x0
const/16 v7, 0x0
invoke-static {v5, v6, v7}, Landroid/graphics/Color;->rgb(III)I
Outgoing date:
Code:
.line 431
new-instance v2, Landroid/text/style/ForegroundColorSpan;
const/16 v3, 0x5e
const/16 v4, 0x5e
const/16 v5, 0x5e
invoke-static {v3, v4, v5}, Landroid/graphics/Color;->rgb(III)I
Incoming date:
Code:
.line 433
.restart local v1 #startOffset:I
:cond_2
new-instance v2, Landroid/text/style/ForegroundColorSpan;
const/16 v3, 0x5e
const/16 v4, 0x5e
const/16 v5, 0x5e
invoke-static {v3, v4, v5}, Landroid/graphics/Color;->rgb(III)I
The code for this is a little different if you use the mms.apk from the previous thread as a base. Outgoing text/date will have different hex values, and incoming won't use normal RGB values at all. It might be easiest if you want to modify one of the other ones to use my MessageListItem.smali instead.
Thanks worked like charm!
Sent from my m865 using Xparent Blue Tapatalk 2
Pretty cool, yes this is related to CM but like in Stock is there any option to add contact for multiple selection i.e add contact,recent etc. I am using a CM based rom which don't have these options.
Amrao said:
Pretty cool, yes this is related to CM but like in Stock is there any option to add contact for multiple selection i.e add contact,recent etc. I am using a CM based rom which don't have these options.
Click to expand...
Click to collapse
we can't.tried all the way but there is no option to send multiple messages on cm rom.this can be only possible on stock rom
FC when searcing
EvilKing009 said:
we can't.tried all the way but there is no option to send multiple messages on cm rom.this can be only possible on stock rom
Click to expand...
Click to collapse
Hi guys, I get FC everytime I use search on this CM7 MMS apk. why is that? Thanks. any solutions?
Can someone make this MMS.APK with Enter key please ?
Thanxs look so much pretty sugestión ... Can change the botton to send for a arrow ? Sorry for my bad english .
don't have the option "received reports" to sms :/
desde Córdoba, Argentina mil saludos
...
Nice modification, but could it be possible to add a switch that would disable sending language specific letters (with diacritic marks) and reduce them to "standard" ones?

[MOD] Inverted Full Screen KeyBoard/Text edit(Landscape)

Finally tracked this one down, and just have to share this...
This Mod was found by @EMSpilot and @Gunthermic.. emspilot found the routine, and from there we figured the rest.. Give him a big kudos..
This is a MOD for Dev's to incorperate, this is NOT an End User MOD.
I have broken this down to each part of the inversion for those that want complete control over the Full Screen KeyBoard Layout.
1. Text Color
2. Cusor Color
3. BackGround Color
4. HighLight Color
What:
Framework.jar
framework-res.apk
Decompile Framework.jar file
Add/Change
Subtract/Delete
Go to:
smali\android\inputmethodservice\InputMethodService.smali
Search for:
.method startExtractingText(Z)V
Look for this code:
1. Text Color:
Code:
iget-object v8, v2, Landroid/view/inputmethod/EditorInfo;->hintText:Ljava/lang/CharSequence;
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setHint(Ljava/lang/CharSequence;)V
Right under that is:
Code:
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
invoke-static {v8, v9, v10}, Landroid/graphics/Color;->rgb(III)I
move-result v8
invoke-static {v8}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
The above code controls the text coloring on the Text Box. You have two options:
You can change the v8, v9, v10 which is the RGB value (0x0) is Black in this case and change them to -0x1 for each one to make text color white.
The second option you can do if you want a special color without having to figure out RGB color coding is to add:
const v8, smali colorcode (for example -0xCC9934(DarkHorse Blue)) below move-result v8.. like so...
invoke-static {v8, v9, v10}, Landroid/graphics/Color;->rgb(III)I
Code:
move-result v8
[COLOR="Blue"]const v8, -0xCC9934[/COLOR]
invoke-static {v8}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
Okay the next three items are much easier:
Right under the code for Text Coloring is the rest of the Inversion and other Changes
Code:
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setTextColor(Landroid/content/res/ColorStateList;)V
const/high16 v8, -0x100 # Cusor Color
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setCursorColor(I)V
.line 3261
const/4 v8, -0x1 #Background Color
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setBackgroundColor(I)V
.line 3265
const v8, -0x86350e #HighLight Cusor Color
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setHighlightColor(I)V
Code Changes: An Example of my changes
Code:
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setTextColor(Landroid/content/res/ColorStateList;)V
[COLOR="Blue"]const v8, -0x100 [/COLOR]#Cusor Color(Yellow)
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setCursorColor(I)V
[COLOR="Blue"]const v8, -0x1000000 [/COLOR]#BackGround(Black)
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setBackgroundColor(I)V
[COLOR="Blue"]const v8, -0xCC9934[/COLOR] #HighLight Cusor Color.(DarkHorse Blue)
invoke-virtual {v1, v8}, Landroid/inputmethodservice/ExtractEditText;->setHighlightColor(I)V
Okay Save that. One more Item that needs to be done complete the Inversion!!!
framework/res/layout/input_method_extract_view.xml
Line 5 needs to be changed to complete the inversion(makes the black appear around the Send button)
Code:
<FrameLayout android:id="@id/inputExtractAccessories" [COLOR="Blue"]android:background="#ff000000"[/COLOR] android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="8.0dip" android:paddingEnd="8.0dip">
<android.inputmethodservice.ExtractButton android:layout_gravity="center" android:id="@id/inputExtractAction" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<android.inputmethodservice.ExtractButton android:layout_gravity="center" android:id="@id/inputExtractEditButton" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/extract_edit_menu_button" />
</FrameLayout>
Save and Compile framework.jar and framework-res.apk..
Score!!!!
Thanks again for this. Works perfectly
Looks interesting @Gunthermic.
Curious question though, isn't it easier to just change the xml file and png images in the SamsungIME.apk?
Or am I missing what else this is doing?
Sent from my SM-G900T using Tapatalk 2
cbucz24 said:
Looks interesting @Gunthermic.
Curious question though, isn't it easier to just change the xml file and png images in the SamsungIME.apk?
Or am I missing what else this is doing?
Sent from my SM-G900T using Tapatalk 2
Click to expand...
Click to collapse
Sure. Tell me what u changed in samsungime that gets this same thing. I will gladly take thread down if there is a better way... Never found one.
If ya dont know and just asking. Then I say from my knowledge samsungime woild pull from framework jar file..
Sent from my SCH-I545 using Xparent BlueTapatalk 2
Gunthermic said:
Sure. Tell me what u changed in samsungime that gets this same thing. I will gladly take thread down if there is a better way... Never found one.
If ya dont know and just asking. Then I say from my knowledge samsungime woild pull from framework jar file..
Sent from my SCH-I545 using Xparent BlueTapatalk 2
Click to expand...
Click to collapse
OK well, before I get too far into things. Where does this change take effect in the system?
I edited the SamsungIME.apk to change things there. And i edited individual apks and changed things there too.
Here I changed the text colors to everything except the suggestion text.
Link up a pic where the text is changed so I can see if I changed it in the same place with an xml if ya don't mind.
An I hope you didn't take offense to my question. We've talked before, I've used your work and you definitely do a great job!
I was just curious about what this exactly did, and if I could help you then yay me for helping someone as good as you
Sent from my SM-G900T using Tapatalk 2
cbucz24 said:
OK well, before I get too far into things. Where does this change take effect in the system?
I edited the SamsungIME.apk to change things there. And i edited individual apks and changed things there too.
Here I changed the text colors to everything except the suggestion text.
View attachment 2723843
Link up a pic where the text is changed so I can see if I changed it in the same place with an xml if ya don't mind.
An I hope you didn't take offense to my question. We've talked before, I've used your work and you definitely do a great job!
I was just curious about what this exactly did, and if I could help you then yay me for helping someone as good as you
Sent from my SM-G900T using Tapatalk 2
Click to expand...
Click to collapse
Pix was posted in OP sir.
This mod is for landscape and is the text box. Not keyboard layout.
No, no offense taken.. yes we have talked before kind sir
Sent from my SCH-I545 using Xparent BlueTapatalk 2

Customize color of quick settings panel

Hello folks,
I don't quite like the blue color of the quick settings panel background on the Tab S2.
Is there any possibility to customize that color? (E.g., to a blackish or grey one?)
Wanam Xposed lets me customize several colors, but not this one...
Yes. You need to edit xml files in systemui.apk. I have the diffs from the s6 if you want to see. Should be about the same. Pm me, and I'll also try to post here, when I get a chance.
Steve
So, you need to edit values in "status_ bar_expanded_header.xml", found in res/layout, and "colors.xml", found in res/values.
In status bar_exapnded_header.xml, change the value in red (its right at the top) to the hex color of your choice. Your's will be a bit different, as this is from the S6:
Code:
<com.android.systemui.statusbar.phone.StatusBarHeaderView android:layout_gravity="clip_horizontal" android:id="@id/header" android:background="[COLOR="Red"]@drawable/notification_header_bg[/COLOR]" android:descendantFocusability="afterDescendants" android:layout_width="@dimen/notification_panel_width" android:layout_height="@dimen/status_bar_header_height" android:baselineAligned="false" android:paddingStart="@dimen/notification_side_padding" android:paddingEnd="@dimen/notification_side_padding"
In colors, change the value for the following to the color you want:
Code:
<color name="notification_header_bg_tw">
There are more changes you can make in colors.xml (e.g., button color, etc.), and they should be apparent once you get in there...
I attach a status_bar_exanded_header.xml and colors.xml from an "AOSP-style" notification/quick settings area I did for the s6 for your reference.
Please feel free to ask in the thread or via PM if you need help on this. I may release a ROM with some theme options, but I am not sure, as I haven't released one in years and am not sure I have the time to properly maintain it. If I do, or even make one for my own use, I'll post the SystemUI.apk.
Steve
On my T813, the file "status_bar_expanded_header.xml" doesn't have a line like you have in red, and the color.xml file doesn't exist in res/values. Any idea what's up with that?
I'm using GoodLock and mine and I managed to make the status bar completly black. Here's a link: http://www.apkmirror.com/apk/samsung-electronics-co-ltd/good-lock/
Rm4n said:
I'm using GoodLock and mine and I managed to make the status bar completly black. Here's a link: http://www.apkmirror.com/apk/samsung-electronics-co-ltd/good-lock/
Click to expand...
Click to collapse
Hi!
I tried this and I don't really like it, how can I go back to the original?
Thanks.
Nevermind. I found the solution.
Is apkmirror safe?
Hi how do I use it..i install and it restart my phone but then I can find any app or new settings?
Stuck on goodlock
I installed GoodLock as suggested as well, but nothing seems different after restart; no app in drawer, no settings anywhere, can't uninstall it...any help is welcome.
voland34 said:
I installed GoodLock as suggested as well, but nothing seems different after restart; no app in drawer, no settings anywhere, can't uninstall it...any help is welcome.
Click to expand...
Click to collapse
I think there should be a possibility to run this app using any activity manager from playstore.

Categories

Resources